Lab14 Manual
Lab14 Manual
EXERCISE 1
Helen Hoang
Name ____________________________________ Date ____________________
Section ___________________________________
5) Repeat step 4 after selecting SCAN Disk (elevator). This took about 12 seconds.
6) Which algorithm took the least time?
The first come first serve takes a lot of time because it tends to the one who
came first even though, the time between the request is very large. For a first
come first serve algorithm to consume a lot of time, alternate the requests on
each side so the first come first serve algorithm would have to come back and
forth to consume the most amount of time.
EXERCISE 2
Name ____________________________________
Helen Hoang Date ____________________
Section ___________________________________
1) Some request lists might cause the disk scheduler to act the same when the three different
algorithms are run. Create a request list of five track numbers that will cause all three algorithms to
visit the same tracks in the same order.
50
35
25
15
5
2) If shortest seek time first starts with the disk head positioned at either 0 or 99, instead of at 50 (in the
middle), which algorithm would it resemble: first-come, first-served or SCAN?
Why?
3) Based on your past lab experiences with stacks and queues, is the request list of the disk scheduler
a stack or a queue?
It is a queue.