In: Computer Science
4. Describe the approach where segmentation is combined paging
1. Paging Segmentation
1. | In paging, program is divided into fixed or mounted size pages. | In segmentation, program is divided into variable size sections. |
2. | For paging operating system is accountable. | For segmentation compiler is accountable. |
3. | Page size is determined by hardware. | Here, the section size is given by the user. |
4. | It is faster in the comparison of segmentation. | Segmentation is slow. |
5. | Paging could result in internal fragmentation. | Segmentation could result in external fragmentation. |
2. Due to memory mangaement RAM not only allows your CPU to access files faster, it can also help your processor run more processes at the same time. The more RAM you have, and the faster the RAM cycles in MHz, the more processes your CPU can run. It also helps to achieve faster i/o and reading and writing to files becomes very fast.
3. Since the number of frames is equal to the size of the memory divided by the page size, increasing the page size will proportionately decrease the number of frames.
4. In a combined paging/segmentation system a user address space is broken up into a number of segments at the discretion of the programmer. Each segment is in turn broken up into a number of fixed-size pages which are equal in length to a main memory frame. If a segment is less than a page in length, the segment occupies just one page.