CS FundamentalsModerateProduct-company MCQ pattern
Assertion (A): For FIFO page replacement, increasing the number of frames can increase the number of page faults. Reason (R): FIFO is a stack algorithm, so the pages in memory with n frames are always a subset of those with n + 1 frames.
- A. Both A and R are true, and R explains A
- B. Both A and R are true, but R does not explain A
- C. A is true, R is false
- D. A is false, R is true
Correct answer: C. A is true, R is false
A is Belady's anomaly and is true. R is false: FIFO is NOT a stack algorithm; the inclusion property holds for LRU and OPT, which is exactly why they never show the anomaly.
More Operating Systems questions
- Five processes P0–P4 and three resource types A, B, C. Allocation: P0 (1,0,1), P1 (2,1,1), P2 (0,1,2), P3 (1,1,0), P4 (0,0,2). Max: P0…
- A system has 6 identical tape drives. Each of n processes needs at most 2 drives. What is the maximum n for which the system is guaranteed…
- How many of the following statements about deadlock are correct? 1. Requiring a process to request all its resources at once prevents…
- Semaphores S = 1 and T = 0. Process X runs: wait(S); print('A'); signal(T); Process Y runs: wait(T); print('B'); signal(S); Each runs its…
- Two threads each run the loop for (i = 0; i < 5; i++) count++; on a shared int count = 0, with no synchronisation. count++ is compiled to…
- How many times is "x" printed? (fork() returns 0 in the child and a positive PID in the parent; assume it always succeeds.) c int main() {…