CS FundamentalsVery hardGATE CS
Free holes, in address order, are 150, 400, 250, 600 and 300 KB. Requests for 280, 200, 350 and 290 KB arrive in that order. Which placement strategies satisfy all four requests?
- A. First-fit and best-fit only
- B. Best-fit only
- C. All three of first-fit, best-fit and worst-fit
- D. Worst-fit only
Correct answer: A. First-fit and best-fit only
First-fit uses 400, 250, 600, 300 and best-fit uses 300, 250, 400, 600: both succeed. Worst-fit puts 280 into 600 (leaving 320) and 200 into 400, so 350 finds no hole large enough.
More Operating Systems questions
- A segment table has: segment 0 base 1200, limit 500; segment 1 base 3000, limit 150; segment 2 base 800, limit 300. Which logical address…
- A process with 100 private writable pages calls fork() and the system uses copy-on-write; a page is copied only if it is still shared when…
- Three periodic tasks with deadline = period have (C, T) = (1, 4), (2, 6) and (3, 12), scheduled by rate-monotonic priority. Which…
- A low-priority task L holds a mutex needed by high-priority task H. A medium-priority task M, which does not need the mutex, becomes ready…
- In a monitor with Mesa (signal-and-continue) semantics, why must a consumer check its condition with while (count == 0) wait(notEmpty)…
- Five dining philosophers each pick up the left fork and then the right fork. Which change removes the possibility of deadlock without a…