CS FundamentalsModerateGATE CS

Compaction is used to remove external fragmentation. Which condition is required for compaction to be possible?

  1. A. Programs must be compiled with absolute addresses
  2. B. Relocation must be dynamic (done at execution time via base registers or paging)
  3. C. The system must use FIFO page replacement
  4. D. All processes must be the same size

Correct answer: B. Relocation must be dynamic (done at execution time via base registers or paging)

Moving a process requires updating where its addresses point; that is only feasible if addresses are bound at run time (e.g. via a relocation register). Absolute (compile-time) binding forbids moving it.

More Operating Systems questions

Exams that ask this topic