Contiguous Memory Allocation Techniques

  1. Fixed-size Partition Scheme
  2. Variable-size Partition Scheme
  1. Because all of the blocks are the same size, this scheme is simple to implement. All we have to do now is divide the memory into fixed blocks and assign processes to them.
  2. It is easy to keep track of how many blocks of memory are left, which in turn decides how many more processes can be given space in the memory.
  3. As at a time multiple processes can be kept in the memory, this scheme can be implemented in a system that needs multiprogramming.
  1. As the size of the blocks is fixed, we will not be able to allot space to a process that has a greater size than the block.
  2. The size of the blocks decides the degree of multiprogramming, and only as many processes can remain in the memory at once as the number of blocks.
  3. If the size of the block is greater than the size of the process, we have no other choice but to assign the process to this block, but this will lead to much empty space left behind in the block. This empty space could’ve been used to accommodate a different process. This is called internal fragmentation. Hence, this technique may lead to space wastage.
  1. As the processes have blocks of space allotted to them as per their requirements, there is no internal fragmentation. Hence, there is no memory wastage in this scheme.
  2. The number of processes that can be in the memory at once will depend upon how many processes are in the memory and how much space they occupy. Hence, it will be different for different cases and will be dynamic.
  3. As there are no blocks that are of fixed size, even a process of big size can be allotted space.
  1. Because this approach is dynamic, a variable-size partition scheme is difficult to implement.
  2. It is difficult to keep track of processes and the remaining space in the memory.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Face Recognition with Azure, ASP.NET & Docker — Part II

Artifact Synchronization with GitHub: WSO2 API Manager

Winning and Losing

Developing a performance monitoring component in my fully automated algorithmic trading system

What is BT139 Triac?

Understanding Agile Methodology with an example

Analyze Object Storage bucket data using Oracle Analytics Cloud (OAC)

Learn to always code in Smart Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adith - The Data Guy

Adith - The Data Guy

More from Medium

ReLU Activation Function

No of Pipeline Stages in Verilog coming from an m file (or latency)

Matrix rotation

Gradient Descent Optimization Techniques for Machine Learning Algorithms