Demand paging is identical to the paging system with swapping. In demand paging, a page is delivered into the memory on demand i.e., only when a reference is made to a location on that page. Demand paging combines the feature of simple paging and implement virtual memory as it has a large virtual memory. Lazy swapper concept is implemented in demand paging in which a page is not swapped into the memory unless it is required.
Segmentation is the arrangement of memory management. According to the segmentation the logical address space is a collection of segments. Each segment has a name and length. Each logical address have two quantities segment name and the segment offset, for simplicity we use the segment number in place of segment name.
The difference between Demand Paging and Segmentation are as follows:
|1.||In demand paging, the pages are of equal size.||While in segmentation, segments can be of different size.|
|2.||Page size is fixed in the demand paging.||Segment size may vary in segmentation as it grants dynamic increase of segments.|
|3.||It does not allows sharing of the pages.||While segments can be shared in segmentation.|
|4.||In demand paging, on demand pages are loaded in the memory.||In segmentation, during compilation segments are allocated to the program.|
|5.||Page map table in demand paging manages record of pages in memory.||Segment map table in segmentation demonstrates every segment address in the memory.|
|6.||It provides large virtual memory and have more efficient use of memory.||It provides virtual memory and maximum size of segment is defined by the size of memory.|
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Difference Between Paging and Segmentation
- Difference between Paging and Swapping in OS
- Two Level Paging and Multi Level Paging in OS
- Paging in Operating System
- Multilevel Paging in Operating System
- Translation Lookaside Buffer (TLB) in Paging
- Segmentation in Operating System
- Difference between DDL and TCL
- Difference between Hue and Pig
- Difference between DFA and NFA
- Difference between IBM DB2 and MS SQL
- Difference between MP4 and MP3
- Difference between IoT and M2M
- Difference Between SMO and SEO
- Difference between MAN and WAN
- Difference between ADO and ADO.NET
- Difference between DFD and ERD
- Difference between C++ and Go
- Difference between ZIP and RAR
- Difference between DVD-R and DVD-RW
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.