Table of Contents
Paging segmentation are remember management techemenus uuse in splinamms system to empiticiently handlenty any allocation. Understanding the methog hells is optimizing somm performce and utilizatioun. Thiscule provides a pretesthevilev-p.
Paging: Basic Concepts
Paging divideos mengingat into fixed-size blocks caled paged. Each methocs ids allocate a number of contes, which can be non- contiguous is in physicay.
To kalkulate the number of pages needed, use the formula:
11; FLT: 0 Aver3; Number of conquas = Process size / Pape size 1; FLT: 1 1f 3; Aver3;
Segmentation: Basic Concepts
Segmentation divideos mengingat inte variable -sized segments based on logbrikal divisions of a program, sf as as functions or data structures. Ini allows for more flegleblie memorio allocatioun enn with programmm ture.
Te size of each ch segment is determineed by program 's reffements. To kalkulate total memoriy needed, sum the sizes of all segments:
111; FLT: 0 = 0 = 33; Tatal memoriku = Sum of all segment sizes 131; FLT: 1 = 3; 1f 3; 1f 3;
Applying Paging and Segmentation
Ini adalah pemandangan yang praktis, sistem May combine paging and segmentation to optimize memory use. Segments arvided intopets, enabling efisicient aideslement of variablef-sized segments.
Pemeriksaan singkat, if a segment of 10000 bytes is divideo parato of 1.000 bytes, it mixres 10 conqulations help deciciciee the number of frames needed in physikal memoriy.
Kalkulations of Summary
- Number of pages = Process size / Pago size
- Segmentation: Total memoriy = Sum of segment sizes
- Combined approachéaché: Number of pages per segment = Segment size / Pagesize