SlideShare a Scribd company logo
12
Most read
17
Most read
FCFS Scheduling

• The First Come First Serve Scheduling

Advantages
   – Simplest form of disk scheduling algorithm

   – Easy to program

   – Intrinsically fair




                          http://raj-os.blogspot.in/   1
FCFS Scheduling

• Consider for example an ordered disk queue with
  requests involving
   – Tracks 98, 183, 37, 122, 14, 124, 65, 67

   – “Head pointer” 53

• The request queue (0-199)




                          http://raj-os.blogspot.in/   2
FCFS Scheduling

• If the disk head is initially at cylinder 53,

   – it will first move from 53 to 98,

   – then to 183, 37, 122, 14, 124, 65 and 67 as shown in the
     next slides

• The total head movement of 640 tracks


                          http://raj-os.blogspot.in/            3
FCFS Scheduling




  Initial Position
   http://raj-os.blogspot.in/   4
FCFS Scheduling




  Head is at 98th track
    http://raj-os.blogspot.in/   5
FCFS Scheduling




  Head is at 183rd track
   http://raj-os.blogspot.in/   6
FCFS Scheduling




Head movement from 183 to 37th track

           http://raj-os.blogspot.in/   7
FCFS Scheduling




Head movement from 37 to 122

       http://raj-os.blogspot.in/   8
FCFS Scheduling




Head movement from 122 to 14th track

          http://raj-os.blogspot.in/   9
FCFS Scheduling




Head movement from 14th to 124th track

           http://raj-os.blogspot.in/    10
FCFS Scheduling




Head movement from 124 to 65

        http://raj-os.blogspot.in/   11
FCFS Scheduling




Head movement from 65 to 67th track

          http://raj-os.blogspot.in/   12
http://raj-os.blogspot.in/   13
FCFS Scheduling


Disadvantages:

• It does not provide best service

• Wild swing from 122 to 14 and then back to 124

• If the requests for tracks 37 and 124 could be serviced
  together


                       http://raj-os.blogspot.in/       14
FCFS Scheduling


• Before or after the requests at 122 and 124

• The average head movement would decrease total
  head movement &

• Thus Improving disk throughput



                      http://raj-os.blogspot.in/   15
Summary

In this class , you have learnt
   Disk scheduling-Need
   FCFS disk scheduling algorithm




                      http://raj-os.blogspot.in/   16
Frequently asked questions

1. Define seek time and latency time
2.Explain the need for disk scheduling
3.List different disk scheduling algorithms
4.List the advantages and disadvantages of FCFS disk
  scheduling algorithm
5.List the advantages and disadvantages of FCFS
  algorithm


                       http://raj-os.blogspot.in/      17

More Related Content

What's hot (20)

PPTX
Shortest job first Scheduling (SJF)
ritu98
 
PPTX
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
 
PDF
Monitors
Mohd Arif
 
PPT
process creation OS
Kiran Kumar Thota
 
PPTX
Instruction Pipelining
Raihan Mahmud (RAM)
 
PPT
Operating Systems - "Chapter 4: Multithreaded Programming"
Ra'Fat Al-Msie'deen
 
PPT
Scheduling algorithms
Chankey Pathak
 
PPT
Disk scheduling
Hi-Techpoint
 
PPT
Set model and page fault.44
myrajendra
 
PPT
Flynns classification
Yasir Khan
 
PPTX
Cache memory
Prasenjit Dey
 
PPT
Branch prediction
Aneesh Raveendran
 
PPT
Virtual memory
Mohammad Sadiq
 
PPTX
Cpu scheduling in operating System.
Ravi Kumar Patel
 
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
PPT
Disk scheduling algorithms
Paresh Parmar
 
PPT
Pipelining
Amin Omi
 
PDF
Operating System-Process Scheduling
Shipra Swati
 
PDF
Comparision of scheduling algorithms
Tanya Makkar
 
PPTX
Secondary storage structure
Priya Selvaraj
 
Shortest job first Scheduling (SJF)
ritu98
 
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
 
Monitors
Mohd Arif
 
process creation OS
Kiran Kumar Thota
 
Instruction Pipelining
Raihan Mahmud (RAM)
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Ra'Fat Al-Msie'deen
 
Scheduling algorithms
Chankey Pathak
 
Disk scheduling
Hi-Techpoint
 
Set model and page fault.44
myrajendra
 
Flynns classification
Yasir Khan
 
Cache memory
Prasenjit Dey
 
Branch prediction
Aneesh Raveendran
 
Virtual memory
Mohammad Sadiq
 
Cpu scheduling in operating System.
Ravi Kumar Patel
 
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
Disk scheduling algorithms
Paresh Parmar
 
Pipelining
Amin Omi
 
Operating System-Process Scheduling
Shipra Swati
 
Comparision of scheduling algorithms
Tanya Makkar
 
Secondary storage structure
Priya Selvaraj
 

Similar to Fcfs scheduling (20)

PPT
Disk scheduling.49
myrajendra
 
PPT
9 cm402.18
myrajendra
 
PPT
Sstf scheduling.50
myrajendra
 
PPTX
Disk Scheduling Algorithms
ali jawad
 
PPT
Disk scheduling algorithm.52
myrajendra
 
PPTX
I/O buffering & disk scheduling
Rushabh Shah
 
PPT
Mass Storage Structure Manipal University Jaipur PPT
PrathamAgarwal69
 
PPTX
First Come First Serve
Edwin Makeu
 
PPTX
Cpu scheduling
piku das
 
PPTX
Scheduling algo(by HJ)
Harshit Jain
 
PPTX
Disk Scheduling In Operating System.pptx
Maharshi Dayanand University Rohtak
 
PDF
Os(18 cs43) module5
Shivanand Manjaragi
 
PPTX
Presentiaon task sheduling first come first serve FCFS
Ahmed Salah
 
PPT
dataprocess using different technology.ppt
ssuserf6eb9b
 
PPTX
Cpu scheduling
mohsinalilarik1
 
PPTX
First Come First Serve Scheduling in real time operating system.pptx
KavitaBagewadi2
 
PDF
Packet scheduling
Manuel Pizarro
 
PPTX
Prinsha_Shrestha-Process Scheduling.pptx
PrinshaShrestha
 
PDF
SchedulingAlgorithm_4.pdf
ImranKabir26
 
Disk scheduling.49
myrajendra
 
9 cm402.18
myrajendra
 
Sstf scheduling.50
myrajendra
 
Disk Scheduling Algorithms
ali jawad
 
Disk scheduling algorithm.52
myrajendra
 
I/O buffering & disk scheduling
Rushabh Shah
 
Mass Storage Structure Manipal University Jaipur PPT
PrathamAgarwal69
 
First Come First Serve
Edwin Makeu
 
Cpu scheduling
piku das
 
Scheduling algo(by HJ)
Harshit Jain
 
Disk Scheduling In Operating System.pptx
Maharshi Dayanand University Rohtak
 
Os(18 cs43) module5
Shivanand Manjaragi
 
Presentiaon task sheduling first come first serve FCFS
Ahmed Salah
 
dataprocess using different technology.ppt
ssuserf6eb9b
 
Cpu scheduling
mohsinalilarik1
 
First Come First Serve Scheduling in real time operating system.pptx
KavitaBagewadi2
 
Packet scheduling
Manuel Pizarro
 
Prinsha_Shrestha-Process Scheduling.pptx
PrinshaShrestha
 
SchedulingAlgorithm_4.pdf
ImranKabir26
 
Ad

More from myrajendra (20)

PPT
Fundamentals
myrajendra
 
PPT
Data type
myrajendra
 
PPTX
Hibernate example1
myrajendra
 
PPTX
Jdbc workflow
myrajendra
 
PPTX
2 jdbc drivers
myrajendra
 
PPTX
3 jdbc api
myrajendra
 
PPTX
4 jdbc step1
myrajendra
 
PPTX
Dao example
myrajendra
 
PPTX
Sessionex1
myrajendra
 
PPTX
Internal
myrajendra
 
PPTX
3. elements
myrajendra
 
PPTX
2. attributes
myrajendra
 
PPTX
1 introduction to html
myrajendra
 
PPTX
Headings
myrajendra
 
PPTX
Forms
myrajendra
 
PPT
Css
myrajendra
 
PPTX
Views
myrajendra
 
PPTX
Views
myrajendra
 
PPTX
Views
myrajendra
 
PPT
Starting jdbc
myrajendra
 
Fundamentals
myrajendra
 
Data type
myrajendra
 
Hibernate example1
myrajendra
 
Jdbc workflow
myrajendra
 
2 jdbc drivers
myrajendra
 
3 jdbc api
myrajendra
 
4 jdbc step1
myrajendra
 
Dao example
myrajendra
 
Sessionex1
myrajendra
 
Internal
myrajendra
 
3. elements
myrajendra
 
2. attributes
myrajendra
 
1 introduction to html
myrajendra
 
Headings
myrajendra
 
Forms
myrajendra
 
Views
myrajendra
 
Views
myrajendra
 
Views
myrajendra
 
Starting jdbc
myrajendra
 
Ad

Fcfs scheduling

  • 1. FCFS Scheduling • The First Come First Serve Scheduling Advantages – Simplest form of disk scheduling algorithm – Easy to program – Intrinsically fair http://raj-os.blogspot.in/ 1
  • 2. FCFS Scheduling • Consider for example an ordered disk queue with requests involving – Tracks 98, 183, 37, 122, 14, 124, 65, 67 – “Head pointer” 53 • The request queue (0-199) http://raj-os.blogspot.in/ 2
  • 3. FCFS Scheduling • If the disk head is initially at cylinder 53, – it will first move from 53 to 98, – then to 183, 37, 122, 14, 124, 65 and 67 as shown in the next slides • The total head movement of 640 tracks http://raj-os.blogspot.in/ 3
  • 4. FCFS Scheduling Initial Position http://raj-os.blogspot.in/ 4
  • 5. FCFS Scheduling Head is at 98th track http://raj-os.blogspot.in/ 5
  • 6. FCFS Scheduling Head is at 183rd track http://raj-os.blogspot.in/ 6
  • 7. FCFS Scheduling Head movement from 183 to 37th track http://raj-os.blogspot.in/ 7
  • 8. FCFS Scheduling Head movement from 37 to 122 http://raj-os.blogspot.in/ 8
  • 9. FCFS Scheduling Head movement from 122 to 14th track http://raj-os.blogspot.in/ 9
  • 10. FCFS Scheduling Head movement from 14th to 124th track http://raj-os.blogspot.in/ 10
  • 11. FCFS Scheduling Head movement from 124 to 65 http://raj-os.blogspot.in/ 11
  • 12. FCFS Scheduling Head movement from 65 to 67th track http://raj-os.blogspot.in/ 12
  • 14. FCFS Scheduling Disadvantages: • It does not provide best service • Wild swing from 122 to 14 and then back to 124 • If the requests for tracks 37 and 124 could be serviced together http://raj-os.blogspot.in/ 14
  • 15. FCFS Scheduling • Before or after the requests at 122 and 124 • The average head movement would decrease total head movement & • Thus Improving disk throughput http://raj-os.blogspot.in/ 15
  • 16. Summary In this class , you have learnt Disk scheduling-Need FCFS disk scheduling algorithm http://raj-os.blogspot.in/ 16
  • 17. Frequently asked questions 1. Define seek time and latency time 2.Explain the need for disk scheduling 3.List different disk scheduling algorithms 4.List the advantages and disadvantages of FCFS disk scheduling algorithm 5.List the advantages and disadvantages of FCFS algorithm http://raj-os.blogspot.in/ 17