Another pessimistic designer asks why we go to the trouble of defining a strategy with an official-sounding name like first-fit. This designer claims that a first-fit strategy is equivalent to nothing more than random memory placement.Do you agree? Explain.
What will be an ideal response?
This is another excellent launch point for a class challenge. If, in fact, the first-fit strategy
always begins its search from the start of memory, it would seem that smaller holes will
tend to accumulate in low memory locations. The random strategy would seem to disperse
these holes evenly throughout memory.Again, these problem are difficult, if not impossible,
to model analytically, so a simulation seems appropriate.An interesting challenge to the class
is to come up with a slightly modified version of first-fit that would likely performas randomfit.
One way to achieve this would be to keep a pointer to the first location after the last job
inserted in memory. Then this modified first-fit strategy would begin its search from a new
point each time and would perform essentially the same as random-fit. Simulation is a wonderful
experience for students as they prepare for systems careers, and it helps them refine
their programming and systems development skills.
You might also like to view...
The ____________ method can be used to convert a string to an int.
a. int.Parse b. Parse.int c. Parse.ToString.int d. ToString.Parse.int
What are the five major project management fundamentals?
What will be an ideal response?
The VMM server component is needed on each Hyper-V host that will be managed through VMM.
Answer the following statement true (T) or false (F)
Which of the following statements about streams is false?
A. A stream is a source of, or destination for, data B. A binary stream consists of a sequence of data values such as integer C. A text stream consists of a sequence of characters terminated by newlines D. Because text streams can contain only characters, we cannot send integer data to them E. Because binary streams can store any type of data, we can send real data to them