Suppose in the First Come First Served Disk Scheduling Algorithm the order of request is (90, 150, 50, 140, 30, 20) and the current position of read/write head is 40, then the total distance covered by the disk ann would be

This question was previously asked in
Beltron Programmer 1 Oct 2023 Official Paper
View all BELTRON Programmer Papers >
  1. 370
  2. 600
  3. 520
  4. 420

Answer (Detailed Solution Below)

Option 3 : 520
Free
Beltron Programmer Mock Test
0.8 K Users
20 Questions 20 Marks 24 Mins

Detailed Solution

Download Solution PDF

The correct answer is Option 3) 520.

Key Points

  • First Come First Served (FCFS) Disk Scheduling Algorithm serves the requests in the order they arrive.
  • Given:
    • Initial head position = 40
    • Request queue = (90, 150, 50, 140, 30, 20)
  • We calculate the total distance moved by the disk head step-by-step:
From To Distance
40 90 50
90 150 60
150 50 100
50 140 90
140 30 110
30 20 10
Total Distance 50 + 60 + 100 + 90 + 110 + 10 = 520

Additional Information

  • FCFS Characteristics:
    • Simple to implement
    • Processes requests in the order of arrival
    • Does not optimize seek time
  • Other disk scheduling algorithms:
    • SSTF (Shortest Seek Time First): Chooses the request closest to current head position
    • SCAN: Moves head in one direction, servicing requests in order until end is reached, then reverses
    • LOOK: Like SCAN, but stops at last request instead of going to the end of disk
Latest BELTRON Programmer Updates

Last updated on Nov 25, 2024

-> BELTRON Programmer 2024 Notification has been released on the official website.

-> The Bihar State Electronics Development Corporation Limited (BELTRON) has announced a recruitment drive for Programmer positions on a contractual basis.

-> Specific vacancy details will be shared separately.

-> Interested candidates can apply online from November 11, 2024, to December 10, 2024.

-> The Minimum age of the candidates should be 21 years and maximum age should be 59 year of age. 

More Disk Scheduling Questions

More CPU Scheduling Questions

Get Free Access Now
Hot Links: teen patti master plus teen patti master gold apk teen patti cash teen patti master real cash