CS FundamentalsModerateGATE CS
Compaction is used to remove external fragmentation. Which condition is required for compaction to be possible?
- A. Programs must be compiled with absolute addresses
- B. Relocation must be dynamic (done at execution time via base registers or paging)
- C. The system must use FIFO page replacement
- 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
- The 50-percent rule for first-fit allocation states that, statistically, given N allocated blocks, about 0.5N blocks are lost to…
- Which allocation strategy tends to leave the LARGEST leftover holes, and which tends to produce the most tiny unusable fragments?
- A slab allocator is used inside many kernels. Which statement explains its main advantage?
- Buddy allocation of a 33 KB request from a 1 MB pool gives a block of what size, and how much is internal fragmentation?
- Which file-allocation method supports BOTH efficient direct access and no external fragmentation?
- A directory with 10,000 entries is stored as an unsorted linear list. File creation must check that the name does not already exist. Which…