Computer Science EngineeringHardISRO SC

Free partitions (in KB, in address order) are 200, 500, 150, 300, 150. Processes of sizes 420, 350, 420, 350 KB arrive in this order. Using worst-fit (a partition left over after allocation stays available with its reduced size), the partition numbers (1-based) chosen for the four processes in order are (X = cannot be allocated)

  1. A. 1,2,3,4
  2. B. 2,2,3,3
  3. C. X,X,X,X
  4. D. 2,X,X,X

Correct answer: D. 2,X,X,X

Simulating worst-fit while reducing partitions after each allocation gives 2,X,X,X.

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic