#CLUB5050 | SIZ EDUCATION: MEMORY SEGMENTATION | 20% post payout to @siz-official | by @vectorshore

in Steem Infinity Zone2 years ago (edited)

Hello everyone, today I'll be writing on another memory management technique known as Segmentation. If you have been following my posts, I you'll notice I've been writing memory management techniques.

In my previous post, I wrote about page fault as well as page replacement algorithms. You can check that out here.
https://steemit.com/hive-181430/@vectorshore/siz-education-memory-page-fault-page-replacement-algorithms-or-20-post-payout-to-siz-official-or-by-vectorshore

image.png
source

WHAT IS MEMORY SEGMENTATION


Memory Segmentation is a memory management technique that divides the computer memory into segments and allocate these segments to processes.

Memory Segmentation can also be said to as the partitioning of processes and load them into different non-contiguous address spaces in memory. They are referenced using memory addresses.

Segments are completely independent address spaces. Each segment consists of a linear sequence of addresses, from zero to a maximum number. The length of a segment may be increased whenever something is pushed onto the stack or queue, and decreases when something is popped off the stack or queue.

Segmentation With Paging


If the segments are large, it may be unconvinent to keep them in main memory (RAM) in their entirety which leads to the idea of paging them so that only the pages that are needed will be allowed in the main memory (RAM)

Advantages of Memory Segmentation


  • Memory Segmentation handles and simfies data structure.
  • Memory Segmentation simplifies separately linked up compiled procedures.
  • With segmentation, shairng of data between processes is facilitated.
  • Different segments can be given different data protection such as 'Execute only', 'Read/Write', etc.

Disadvantages of Memory Segmentation


  • A list of free pages are kept my Paging.
  • Segments that are not of equal sizes are not suitable for swapping.
  • Memory Segmentation is costly.
  • There exists external fragmentation.

In my next post, I will be writing on Operating Systems as well as the history of Operating Systems.
I hope you like my content. Thank you for your continuous support.

Cc:
@siz-official
@faran-nabeel
@suboohi

Sort:  
 2 years ago 

Good post dear friend keep it up bro and keep learn with our steem fellows and friends.

Regards, Faran Nabeel

Thank you @faran-nabeel for your continuous support. I really appreciate it.

Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.031
BTC 67803.71
ETH 3800.05
USDT 1.00
SBD 3.66