Assuming the current disk cylinder to be $50$ and the sequence for the cylinders to be $1, 36, 49, 65, 53, 12, 3, 20, 55, 16, 65$ and $78$ find the sequence of servicing using
@Bikram
in this given sequence 65 are repeated
suppose we are using First come first served when we are calculating seek time two time 65 use ??
using Shortest seek time first (SSTF) on ly one time 65 use ?
because next shortest 65 both are same !!!
please clear
SCAN(Elevator) It scans down towards the nearest end first
SCAN(Elevator)
It scans down towards the nearest end first
In SSTF, it is same as Closest Cylinder First, therefore the sequence will be 50,49,53,55,65,65,78,36,20,16,12,3,1.
In Elevator Disk Scheduling policy, head moves in one direction and goes till the end the process the request of the other end. Head can move in any of the direction first since it is not specified. So there are two possible sequence
Assuming 78 is the extreme right cylinder and 1 be extreme left cylinder.
1st → 50, 49, 36, 20, 16, 12, 3, 1, 53, 55, 65, 65, 78
2nd → 50, 53, 55, 65, 65, 78, 49, 36, 20, 16, 12, 3, 1
64.3k questions
77.9k answers
244k comments
80.0k users