Demand Segmentation

Q1. Explain Demand Segmentation.

Ans. Operating system also uses demand segmentation, which is similar to demand paging. Operating system to uses demand segmentation where there is insufficient hardware available to implement ‘Demand Paging’.

The segment table has a valid bit to specify if the segment is already in physical memory or not. If a segment is not in physical memory then segment fault results, which traps to the operating system and brings the needed segment into physical memory, much like a page fault.

Demand segmentation allows for pages that are often referenced with each other to be brought into memory together, this decreases the number of page faults.

Another space server would be to keep some of a segment’s page tables on disk and swap them into memory when needed.


Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: