GIVE ME A SAMPLE PROGRAM CODE FOR THIS GIVEN IN PICTURE ABOUT
DISK SCHEDULING ALGORITHM IN C LANGUAGE OR JAVA.
DISK SCHEDULING ALGORITHM
Menu
FCFS SSTF SCAN LOOK COMPARATIVE
Inputs:
1. List of requests (request queue); minimum of 5; max of 20
2. Current head position
3. Direction (previous head position)
1. Graph (See sample below)
0 14 -
37 536567 1
98 122124 I
183199
2. Total number of head movements
3. For Comparative Analysis, summarize the total number of head movements in a table, arranged in ascending order.
Techniques: SSTF, SCAN
No of Head movements