312 views
Is it necessary that when we are doing a variable length partitioning the partition has to be created continuously i.e.

For example I have $1000k$ of memory and i got two request for $120k$ and $120k$ then ....

Is it must that i have to give two continuous memory allocation of $120K$s or I can also have such policy like:-

$120k$ - Free Space- $120k$ - Free space    i.e. Non continuous.

### Subscribe to GO Classes for GATE CSE 2022

in  variable partition schema memory will allocated in contiguous manner.

memory management technique is of two types contiguous memory allocation and non contiguous memory allocation.

1. contiguous memory allocation have two type - variable partition schema and and fixed partition schema.
2. non-contiguous memory allocation have four type-paging, segmentation,inverted paging, multilevel paging.

So sir according to u this above shown policy i.e. 120k - FreeSpace - 120k  cannot happen in variable length partitioning.

in variable partition schema initially memory will be conitguous free block . when we insert a process 120k and 120k then it should be in contiguous manner.

ok sir but plz refer to this question https://gateoverflow.in/2747/gate1996-2-18 in this question then why is the answer 181 ?? cuz if the two partitions 200 and 260 are continuously allocated then the answer should have been 541 but if we arrange in such a manner like :-    200 - 180 - 260 -180 - 180 OR 200-180-180-260-180

then only the minimum size can be 181 rt?

i am saying in above comment initially memory is in contiguous free block .and we allocate the process in contiguous manner . at the middle of execution it may not be in contiguous . then we use partation allocation method first fit, best fit so on
Ohk Thanku Sir

1 vote