CS FundamentalsHardGATE CS
The 50-percent rule for first-fit allocation states that, statistically, given N allocated blocks, about 0.5N blocks are lost to fragmentation. What fraction of memory is then unusable?
- A. About half
- B. About a quarter
- C. About two thirds
- D. About one third
Correct answer: D. About one third
N allocated + 0.5N wasted = 1.5N blocks in total, so 0.5N / 1.5N = 1/3 of memory may be unusable.
More Operating Systems questions
- 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…
- A file system uses a buffer cache with write-back. The system crashes right after a program's write() returned. Which statement is correct?