Operating Systems Lab Manual / OS FCFS Disk Scheduling Algorithm

Program Name Write a C Program for Operating System FCFS(First come first serve) Disk Scheduling Algorithm
Theory
In FCFS(First come first serve) the requests are served in the order they arrive in the disk queue.
Program
Input
Enter Number of Requests:8
Enter the Requests Sequence:95 180 34 119 11 123 62 64 
Enter Initial Head Position:50
Output
Total Head Moment: 644


Home     Back