CS FundamentalsModerateGATE CS
Which allocation strategy tends to leave the LARGEST leftover holes, and which tends to produce the most tiny unusable fragments?
- A. Best fit leaves the largest leftovers; worst fit produces tiny fragments
- B. First fit leaves both the largest and the smallest
- C. Worst fit leaves the largest leftovers; best fit tends to produce many tiny fragments
- D. All strategies produce identical fragmentation
Correct answer: C. Worst fit leaves the largest leftovers; best fit tends to produce many tiny fragments
Worst fit carves from the biggest hole, leaving a big remainder; best fit leaves the smallest possible remainder, often too small for future requests. Simulations show first fit and best fit are usually better than worst fit in utilisation.
More Operating Systems questions
- 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…
- A file system uses a buffer cache with write-back. The system crashes right after a program's write() returned. Which statement is correct?
- Which of these is the correct reason that the Unix rename(old, new) within one file system is widely used to update a file safely (write a…