CS FundamentalsModerateAccenture · Capgemini pattern
Segmentation divides a process's address space into logical units (code, stack, heap) of varying size, unlike paging's fixed-size frames. What kind of fragmentation does pure segmentation suffer from that pure paging does not?
- A. Both internal and external fragmentation equally, same as paging
- B. Internal fragmentation inside every segment
- C. External fragmentation: free memory becomes split into scattered holes too small individually for a new segment
- D. No fragmentation at all, since segments map directly to logical units
Correct answer: C. External fragmentation: free memory becomes split into scattered holes too small individually for a new segment
Because segments have varying sizes, memory is allocated and freed in different-sized chunks, leaving external gaps (holes) that no pending segment may fit — the same issue as variable-partition memory allocation. Paging avoids this since every frame is the same size, but wastes space internally in a segment/page's last partial frame.
More Operating Systems questions
- In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The…
- A system uses a two-level page table: a 10-bit outer index, a 10-bit inner index, and a 12-bit offset, for a 32-bit virtual address. What…
- A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page…
- An inverted page table has one entry per physical frame (not per virtual page), shared across all processes, each entry tagged with the…
- Belady's anomaly refers to the surprising fact that:
- The convoy effect in FCFS scheduling describes a situation where: