1,231 views
0 0 votes
Given memory partition in the order below:P1:100k P2:500k P3:800k P4:300k P5:600k.How would Worst Fit algo place processes :212k,417k,112k and 426k (in order)

1 Answer

Best answer
1 1 vote
Worst fit algo places the processes in such a way that the maximum possible hole is created out of the various possibilities.

Given : partition sizes-P1:100k P2:500k P3:800k P4:300k P5:600k

Process 1:212k So we will allocate it to P3(it will give us the biggest hole possible) size of hole=800-212=588k

Process2:417k it will be allocated to P5 ,hole=600-417=183.

Process 3:112k it will be allocated to the hole of P3 : new hole=588-112=476

Process 4:426k It will be allocated to P2: hole=500-426=74

order of allocation: P3 P5 P3 P2
• selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
469
469 views
Soumya Tiwari asked Nov 13, 2018
469 views
Que 15?
0 0 votes
0 0 answers
1.2k
1.2k views
Soumya Tiwari asked Nov 13, 2018
1,243 views
Q. 22 Determine the width of Micro-instruction having following Control signal field, in a Vertical Microprogrammed Control Unit1. Next Address field of 7 Bits2. ALU Func...
0 0 votes
0 0 answers
664
664 views
Soumya Tiwari asked Nov 13, 2018
664 views
Statement (I): The data path contains all the circuits to process data within the CPU with the help of which data is suitably transformed.Statement (II): It is the respon...
0 0 votes
2 answers 2 answers
998
998 views
Deepalitrapti asked Jun 10, 2019
998 views