Question

Problem 8 Given five memory partitions of 100 KB, 200 KB, 600 KB, 450 KB, and...

Problem 8

  1. Given five memory partitions of 100 KB, 200 KB, 600 KB, 450 KB, and 400 KB (in order - shown in figure below), how would the first-fit, best-fit, and worst-fit algorithms place processes of 100 KB, 75 KB, 380 KB, 555 KB and 326 KB (in order)? If one process will not fit you can list their partition as NULL. Which algorithm makes the most efficient use of memory? To make this decision, calculate the total fragmentation (external and internal).

Partition

A

B

C

D

E

Size

100 KB

200 KB

600 KB

450 KB

400 KB

First-fit:

Partition

A

B

C

D

E

Process

(list size)

Processes not scheduled in:

Internal Fragmentation:

External Fragmentation:

Best-fit:

Partition

A

B

C

D

E

Process

(list size)

Processes not scheduled in:

Internal Fragmentation:

External Fragmentation:

Worst-fit:

Partition

A

B

C

D

E

Process

(list size)

            Processes not scheduled in:

Internal Fragmentation:

External Fragmentation:

Homework Answers

Answer #1

a) First-fit

The first-fit algorithm selects the first free partition that is large enough to accommodate the request.
First-fit would allocate in the following manner:

100 KB => 100 KB partition, leaves a 0 KB partition
75 KB => 200 KB partition, leaves a 125 KB partition
380 KB => 600 KB partition, leaves a 220 KB partition
555 KB would not be able to allocate, no partition large enough!
326 KB => 400 KB partition, leaves a 74 KB partition

b) Best-fit

The best-fit algorithm selects the partition whose size is closest in
size (and large enough) to the requested size.
Best-fit would allocate in the following manner:

100 KB => 100 KB, leaving a 0 KB partition
75 KB => 200 KB, leaving a 125 KB partition
380 KB => 400 KB, leaving a 20 KB partition
555 KB => 600 KB, leaving a 45 KB partition
326 KB => 450 KB partition, leaves a 124 KB partition

c) Worst-fit

The worst-fit algorithm effectively selects the largest partition for each request.
Worst-fit would allocate in the following manner:

100 KB => 600 KB, leaving a 500 KB partition
75 KB => 450 KB, leaving a 375 KB partition
380 KB => 400 KB, leaving a 20 KB partition
555 KB would not be able to allocate, no partition large enough!
326 KB would not be able to allocate, no partition large enough!


The best-fit algorithm performed the best of the three algorithms,
as it was the only algorithm to meet all the memory requests.

Know the answer?
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
Similar Questions
52. BMR stands for basic memory retention basal metabolic rate bregmatic myofascial release none of these...
52. BMR stands for basic memory retention basal metabolic rate bregmatic myofascial release none of these 53. The primary (not initial) fuel during endurance exercise is liver glycogen muscle glycogen fatty acids none of these 54. The human body consists of chemicals cells tissues none of these all of these 55. The main purpose of the digestive system is the breakdown of foods and waste elimination to supply oxygen and eliminate carbon dioxide reproduction and maintenance of sexual characteristics none...
BridgeRock is a major manufacturer of tires in the U.S.. The company had five manufacturing facilities...
BridgeRock is a major manufacturer of tires in the U.S.. The company had five manufacturing facilities where tires were made and another 20 facilities for various components and materials used in tires. Each manufacturing facility produced 10,000 tires every hour. Quality had always been emphasized at BridgeRock, but lately quality was a bigger issue because of recent fatal accidents involving tires made by other manufacturers due to tread separation. All tire manufacturers were under pressure to ensure problems did not...
PROBLEM THREE Wilson Beverages bottles two soft drinks under license to Cadbury Schweppes at its Manchester...
PROBLEM THREE Wilson Beverages bottles two soft drinks under license to Cadbury Schweppes at its Manchester plant. All inventory is in direct materials and finished goods at the end of each working day. There is no work-in-process inventory. The two soft drinks bottled by Wilson Beverages are lemonade and diet lemonade. The syrup for both soft drinks is purchased from Cadbury Schweppes. Wilson Beverages uses a lot size of 1,000 cases as the unit of analysis in its budgeting. (Each...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...