CS FundamentalsModerateGATE CS
Buddy allocation of a 33 KB request from a 1 MB pool gives a block of what size, and how much is internal fragmentation?
- A. 33 KB; 0 KB
- B. 64 KB; 33 KB
- C. 64 KB; 31 KB
- D. 32 KB; 1 KB
Correct answer: C. 64 KB; 31 KB
Buddy blocks are powers of two, so 33 KB rounds up to 64 KB, wasting 31 KB. The scheme trades this internal fragmentation for fast splitting and coalescing.
More Operating Systems questions
- 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…
- A process opens the same file twice with two separate open() calls, getting fd 3 and fd 4, and also calls dup(3) to get fd 5. It then…
- After fork(), a parent and child both write to a file descriptor that was opened before the fork, without OAPPEND. Why do their writes not…