Question

(15 points) Consider a swapping system in which memory consists of the following hole sizes in memory order: 16K, 14K, 4K, 20
1 0
Add a comment Improve this question Transcribed image text
Answer #1

first fit: for every segment to allocate hole ,searching of holes from starting until find hole size greater than or equal to segment.(note: hole should not be allocated before with other segment)

above problem:first fit

s.no segment hole

a)    12k ---> 16k

b) 10k ---> 14k

c) 9k ---> 20k

best fit: for every segment to allocate hole, searching of holes from starting until find minimum hole size greater than or equal to segment.  (note: hole should not be allocated before with other segment)

above problem: best fit

s.no segment hole

a)    12k ---> 12k

b) 10k ---> 14k

c) 9k ---> 9k  

worst fit: for every segment to allocate hole, searching of holes from starting until find maximum hole size greater than or equal to segment.(note: hole should not be allocated before with other segment)

above problem : worst fit

s.no segment   hole

a) 12k ---> 20k

b) 10k ---> 18k

c) 9k ---> 15k

next fit: it is also like as first fit. For every segment to allocate a hole, searching of holes starts next from last allocated hole

above problem:

   s.no segment hole

a) 12k ---> 16k

b) 10k ---> 14k

c) 9k ---> 20k

Add a comment
Know the answer?
Add Answer to:
(15 points) Consider a swapping system in which memory consists of the following hole sizes in memory order: 16K, 1...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT