You are on page 1of 2

Step 1/2

a ) No, job 4 cannot be accommodated, because it requires contiguous memory and at this point no contiguous memory of look is as the memory available are of 80k more 20k and look but .
no chunk look or more is available

b ) Memory becomes contiguous. Since memory becomes contiguous more processes can be loaded to memory

c)

job 1 relocation after compaction :


no relocation takes place after compaction so the content of relocation is 0

job 2 relocation after compaction :


it moves from 50k to 30k after memory compaction so content of relocation register is
= 30k-50k
= -20(1024)
= -20480

job 3 relocation after compaction :


it moves from 75k to 45k after memory compaction so content of its relocation register
=45k-75k
=-30k
= - 30 (1084)
= -30720

Explanation

please go with step 1

Step 2/2

d ) since job 4 has been loaded after memory compaction so for job 4 no relocation took place
.
so its relocation register will contain 0

e ) new location = old location + relocation register conternt


= 22k + 0 = 22k
here new location remains same as relocation register content of job 1 is 0.

new location is = 55k-20k = 35k


here new location changes to 35k as relocation register content of job is = 20k

new location = 80k-30k = 50k


here new location changes to 50k relocation register content of job is = 30k

Final answer

i have answered in a correct manner , do you have any doubts regarding the answer please ask me Sir / Mam

please upvote , dont downvote , Sir / Mam ,. I am in problems , THANK YOU

You might also like