Question: Consider a memory in which contiguous segments S1, S2, , Sn are placed in their order of creation from one end of the store to

Consider a memory in which contiguous segments S1, S2, …, Sn are placed in their order of creation from one end of the store to the other, as suggested by the following figure:

S2 Sn Hole fi where k= 1 " > 1 + kf


When segment Sn+1 is being created, it is placed immediately after segment Sn even though some of the segments S1, S2, …, Sn may already have been deleted. When the boundary between segments (in use or deleted) and the hole reaches the other end of the memory, the segments in use are compacted.

a. Show that the fraction of time F spent on compacting obeys the following inequality:

2s


Where

s = average length of a segment, in words

t = average lifetime of a segment, in memory references

f = fraction of the memory that is unused under equilibrium conditions

b. Find F for f = 0.2, t = 1,000, and s = 50.

S2 Sn Hole fi where k= 1 " > 1 + kf 2s

Step by Step Solution

3.28 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Observe that a reference occurs to some segment in memory each time uni... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

451-C-S-D-B-O-S (125).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!