Computer Science EngineeringVery hardISRO SC

Free partitions (in KB, in address order) are 400, 150, 400, 600, 100. Processes of sizes 260, 350, 90, 210 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,3,1,4
  2. B. 4,1,3,4
  3. C. 1,3,5,4
  4. D. 1,2,3,4

Correct answer: B. 4,1,3,4

Simulating worst-fit while reducing partitions after each allocation gives 4,1,3,4.

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

Exams that ask this topic