Question 71
HardWhat is demand paging's 'pure' form?
- A.
Never bringing a page in until it is referenced, starting a process with no pages loaded
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
What is demand paging's 'pure' form?
Never bringing a page in until it is referenced, starting a process with no pages loaded
Swapping whole processes
Loading pages in advance by prediction
Loading all pages at start-up
Sign up free to see the answer and a step-by-step explanation.
What does a high page-fault rate together with low CPU utilisation suggest?
A CPU-bound workload
Too few processes
The system is idle
Thrashing
Sign up free to see the answer and a step-by-step explanation.
Why can increasing the degree of multiprogramming reduce CPU utilisation past a certain point?
The CPU overheats
Disks become faster
The scheduler stops working
Each process gets too few frames, so page faults dominate (thrashing)
Sign up free to see the answer and a step-by-step explanation.
What does mapping a file with mmap() and the MAP_PRIVATE flag give a process?
Exclusive locking of the file
A read-only view that can never change
A copy of the file on another disk
A copy-on-write view: the process can change its pages, but the changes are not written back to the file
Sign up free to see the answer and a step-by-step explanation.
What does copy-on-write make cheap?
Context switching
fork(), since parent and child share pages until one of them writes
exec()
Disk scheduling
Sign up free to see the answer and a step-by-step explanation.
What is the purpose of the dirty (modify) bit?
To show page size
To mark shared pages
To mark pages to delete
To avoid writing a page back to disk if it hasn't changed since being loaded
Sign up free to see the answer and a step-by-step explanation.
Which is a local replacement policy?
A process can only replace pages from its own set of frames
Pages are replaced at random
Only kernel pages are replaced
A process may take frames from any process
Sign up free to see the answer and a step-by-step explanation.
Why do operating systems lock (pin) some pages in memory?
To save swap space
Pages used for I/O buffers or by the kernel must not be paged out at the wrong moment
To prevent reading
To speed up all programs
Sign up free to see the answer and a step-by-step explanation.
What does prepaging try to reduce?
Thrashing
Disk fragmentation
The burst of page faults when a process starts or resumes
The TLB size
Sign up free to see the answer and a step-by-step explanation.
With LRU and 3 frames, what is the hit ratio for the string 1, 2, 3, 1, 2, 4, 1, 2, 5, 1, 2?
4/11
7/11
6/11
5/11
Sign up free to see the answer and a step-by-step explanation.