GATE CS 2020 · Question 21 · Operating System · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process's memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statements is TRUE?

  1. (A) The hole created by first fit is always larger than the hole created by next fit.
  2. (B) The hole created by worst fit is always larger than the hole created by first fit.
  3. (C) The hole created by best fit is never larger than the hole created by first fit.
  4. (D) The hole created by next fit is never larger than the hole created by best fit.
Answer

Answer (C)

Answer from the official GATE CS 2020 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes