in Operating System edited by
312 views
0 votes
0 votes
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.
in Operating System edited by
by
312 views

Subscribe to GO Classes for GATE CSE 2022

1 Answer

1 vote
1 vote

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.

5 Comments

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

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.

0
0

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?

0
0
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
0
0
Ohk Thanku Sir
0
0

Related questions

0 votes
0 votes
1 answer
3