Numerical on Disk Scheduling Algorithms31 May 2025 | 3 min read Q. Consider a disk with 200 tracks and the queue has random requests from different processes in the order:55, 58, 39, 18, 90, 160, 150, 38, 184 Initially arm is at 100. Find the Average Seek length using FIFO, SSTF, SCAN and C-SCAN algorithm. Solution : ![]() 1. FCFS (First-Come, First-Served)
4989=55.3\frac{498}{9} = 55.39498=55.3 2. SSTF (Shortest Seek Time First)
3. SCAN (Elevator Algorithm)
4. C-SCAN (Circular SCAN)
Q2. There are 200 tracks on a disc (0 to 199). The prior request was at track 50 and the disk head is now at track 53. The following is the queue of pending requests arranged as they were received. [38 122 14 124 98 183 37 65 64]. Utilizing the disk scheduling algorithms listed below determine the total head movement.FCFS stands for First-Come First-Served. Shortest Seek Time First is known as SSTF Elevator Algorithm SCAN LOOK C-Scan C-LOOK Solution: Let's calculate Total Head Movement for each algorithm: 1. FCFS: Sequence: 53 → 98 → 183 → 37 → 122 → 14 → 124 → 65 → 67 2. SSTF: Choose the closest request to the current head. Sequence: 53 → 65 → 67 → 37 → 14 → 98 → 122 → 124 → 183 3. SCAN (Assume moving towards 0 initially): Sequence: 53 → 37 → 14 → 0 → 65 → 67 → 98 → 122 → 124 → 183 4. LOOK (Only go as far as needed): Sequence: 53 → 37 → 14 → 65 → 67 → 98 → 122 → 124 → 183 5. C-SCAN (Assume moving towards higher tracks): Sequence: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 199 → 0 → 14 → 37 6. C-LOOK: Sequence: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 14 → 37 Next TopicApple-mavericks-operating-system |
We request you to subscribe our newsletter for upcoming updates.

We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India
