Tuesday, 19 May 2015

Q 14,paper2 d 12,Given memory partitions of 100 K, 500 K, 200 K, 300 K and 600 K (in order) and processes of 212 K, 417 K, 112 K, and 426 K (in order), using the first-fit algorithm, in which partition would the process requiring 426 K be placed ?


(A) 500 K
(B) 200 K
(C) 300 K
(D) 600 K
Answer(D)
Explanation-
Memory partition are given as (100k,500k,200k, 600k)
First process that arrives is of 212 k. hence given 500k.
Now partition left is (100k,288k,200k,600k) 288k and 200k partition is combined and allotted 417 k.
Partition state is (100k,488k-417k,600k). 100k and 71 k are combined and allotted 112.and 426 k process is allotted to 600k memory partition.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.