Question 61
HardWith 3 frames, initially empty, how many page faults does FIFO cause for: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2?
- A.
7
- B.
11
- C.
9
- D.
10
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
With 3 frames, initially empty, how many page faults does FIFO cause for: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2?
7
11
9
10
Sign up free to see the answer and a step-by-step explanation.
With 3 frames, initially empty, how many page faults does LRU cause for: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2?
7
8
10
9
Sign up free to see the answer and a step-by-step explanation.
With 3 frames, initially empty, how many page faults does the optimal algorithm cause for: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2?
8
7
6
9
Sign up free to see the answer and a step-by-step explanation.
With 4 frames, initially empty, how many more page faults does FIFO cause than LRU for: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6?
6
0
4
2
Sign up free to see the answer and a step-by-step explanation.
With 4 frames, initially empty, how many page faults does OPT cause for: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6?
14
6
8
10
Sign up free to see the answer and a step-by-step explanation.
Memory access takes 200 ns and a page fault takes 8 ms to service on average. What page-fault rate keeps the slowdown below 10%?
Below about 1 in 400,000 accesses
Below 1 in 40,000
Below 1 in 1,000
Below 1 in 10
Sign up free to see the answer and a step-by-step explanation.
A page fault takes 10 ms when the replaced page is clean and 20 ms when it is dirty. 70% of replaced pages are dirty. What is the average fault service time?
17 ms
15 ms
14 ms
20 ms
Sign up free to see the answer and a step-by-step explanation.
With a working-set window of 4, what is the working set after the references 3, 5, 3, 6, 7, 7, 3, 5 (at the end)?
{3, 5, 7}
{3, 5, 6, 7}
{5, 7}
{3, 6, 7}
Sign up free to see the answer and a step-by-step explanation.
Why does adding more frames sometimes increase faults under FIFO but never under LRU?
LRU is a stack algorithm: the pages kept with n frames are always a subset of those with n + 1
FIFO keeps more pages
LRU never replaces pages
LRU uses future knowledge
Sign up free to see the answer and a step-by-step explanation.
What does the 'enhanced second-chance' algorithm use to choose a victim?
The (reference, modify) bit pair, preferring pages that are neither recently used nor dirty
The page's age in seconds
Only the page number
Random selection
Sign up free to see the answer and a step-by-step explanation.