Question 11
EasyWhy is the optimal page-replacement algorithm not used in real systems?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Why is the optimal page-replacement algorithm not used in real systems?
It needs to know the future sequence of page references
It only works with one frame
It needs too much disk space
It causes too many page faults
Sign up free to see the answer and a step-by-step explanation.
In page replacement, what is a reference string?
The password to the page table
A text string stored in memory
The sequence of page numbers accessed by a process
A list of user names
Sign up free to see the answer and a step-by-step explanation.
Why must a dirty page be written to disk before its frame is reused?
Dirty pages are always faulty
It belongs to the OS
The disk is empty
It has been modified, so the disk copy is out of date
Sign up free to see the answer and a step-by-step explanation.
With FIFO replacement and 3 empty frames, how many page faults does the reference string 1, 2, 3, 1, 4 cause?
5
4
2
3
Sign up free to see the answer and a step-by-step explanation.
With LRU replacement and 3 frames holding pages 1, 2 and 3 (loaded in that order), the references 2 and then 4 occur. Which page does 4 replace?
2
4
1
3
Sign up free to see the answer and a step-by-step explanation.
What is the page-fault rate?
The number of processes
The fraction of memory references that cause page faults
The speed of the disk
The number of pages in memory
Sign up free to see the answer and a step-by-step explanation.
What generally happens to the number of page faults when a process is given more frames?
It always rises
It stays exactly the same
It becomes zero
It falls (although FIFO can occasionally show the opposite)
Sign up free to see the answer and a step-by-step explanation.
Why does virtual memory let more processes run at the same time?
It makes RAM larger physically
It removes the need for a CPU
It runs processes on the disk
Only the parts of each process in use need to be in RAM
Sign up free to see the answer and a step-by-step explanation.
What is a frame-allocation policy?
A policy for buying RAM
The rule that decides how many frames each process gets
The order in which users log in
The rule for naming files
Sign up free to see the answer and a step-by-step explanation.
What is global page replacement?
A process replaces only its own pages
A process may take a frame from any process, including others
Pages are never replaced
Pages are replaced only on Sundays
Sign up free to see the answer and a step-by-step explanation.