Machine-translated by Google. Questions are authored in English.
Top

Discussion

In a system using paging, physical memory is divided into

  • A.fixed-size blocks called frames
  • B.variable-size blocks called segments
  • C.blocks whose size is chosen by each process
  • D.a single contiguous region per process

Answer: B

Correct answer: fixed-size blocks called frames

Physical memory is divided into fixed-size blocks called frames, and logical memory into blocks of the same size called pages. A page is loaded into any available frame, and the page table records which. Keeping the two the same size is what makes the scheme work: any page fits any frame, so allocation never fails for want of a suitably sized hole, and external fragmentation disappears entirely. The terminology is worth being exact about, since examiners rely on it: pages are logical and frames are physical. The size is a power of two, typically 4 KB. The residual waste is internal fragmentation in the last page of each process, averaging half a page - a far smaller cost than the third of memory that external fragmentation can consume under contiguous allocation. The second option describes segmentation, which divides memory along logical lines into variable-size pieces and therefore suffers external fragmentation instead.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.