Home CPU Scheduling Disk Scheduling Page Replacement Deadlock


First Come First Serve Disk Scheduling ( FCFS )

All incoming requests are placed at the end of the queue. Whatever number that is next in the queue will be the next number served. Using this algorithm doesn't provide the best results. To determine the number of head movements you would simply find the number of tracks it took to move from one request to the next. For this case it went from 50 to 95 to 180 and so on. From 50 to 95 it moved 45 tracks. If you tally up the total number of tracks you will find how many tracks it had to go through before finishing the entire request. In this example, it had a total head movement of 640 tracks. The disadvantage of this algorithm is noted by the oscillation from track 50 to track 180 and then back to track 11 to 123 then to 64. As you will soon see, this is the worse algorithm that one can use.

Advantages
  • Every request gets a fair chance.
  • It is simple, easy to understand and implement.
  • It does not cause starvation to any request.
  • No indefinite postponement.

  • Disadvantages
  • Does not try to optimize seek time.
  • It results in increased total seek time.
  • May not provide the best possible service.
  • It is inefficient.
  • EXAMPLE : Lets say we are given with the following queue ==> 95, 180, 34, 119, 11, 123, 62, 64 with the Read-write head initially at the track 50 and the tail track being at 199 let us now discuss the different algorithms.

    FCFS image


    Lets try to Run and Understand how these Disk Scheduling Algorithms actually WORK and even make a COMPARITIVE ANALYSIS.