SlideShare a Scribd company logo
1 of 17
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

17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria myrajendra
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithmssathish sak
 
Parallel and distributed Computing
Parallel and distributed Computing Parallel and distributed Computing
Parallel and distributed Computing MIANSHOAIB10
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemMeghaj Mallick
 
FCFS scheduling OS
FCFS scheduling OSFCFS scheduling OS
FCFS scheduling OSTotan Banik
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithmsShanu Kumar
 
Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51myrajendra
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OSharini0810
 
cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
Multithreading
Multithreading Multithreading
Multithreading WafaQKhan
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin schedulingRaghav S
 
Instruction Level Parallelism and Superscalar Processors
Instruction Level Parallelism and Superscalar ProcessorsInstruction Level Parallelism and Superscalar Processors
Instruction Level Parallelism and Superscalar ProcessorsSyed Zaid Irshad
 
Process management
Process managementProcess management
Process managementBirju Tank
 
LALR Parser Presentation ppt
LALR Parser Presentation pptLALR Parser Presentation ppt
LALR Parser Presentation pptWPVKP.COM
 

What's hot (20)

17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithms
 
Parallel and distributed Computing
Parallel and distributed Computing Parallel and distributed Computing
Parallel and distributed Computing
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
FCFS scheduling OS
FCFS scheduling OSFCFS scheduling OS
FCFS scheduling OS
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithms
 
Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51
 
Context switching
Context switchingContext switching
Context switching
 
Scheduling
SchedulingScheduling
Scheduling
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OS
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
Multithreading
Multithreading Multithreading
Multithreading
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin scheduling
 
Instruction Level Parallelism and Superscalar Processors
Instruction Level Parallelism and Superscalar ProcessorsInstruction Level Parallelism and Superscalar Processors
Instruction Level Parallelism and Superscalar Processors
 
Process management
Process managementProcess management
Process management
 
LALR Parser Presentation ppt
LALR Parser Presentation pptLALR Parser Presentation ppt
LALR Parser Presentation ppt
 

Similar to Fcfs scheduling

Similar to Fcfs scheduling (20)

Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2
 
I/O buffering & disk scheduling
I/O buffering & disk schedulingI/O buffering & disk scheduling
I/O buffering & disk scheduling
 
Scan scheduling 50 1
Scan scheduling 50 1Scan scheduling 50 1
Scan scheduling 50 1
 
Device Management
Device ManagementDevice Management
Device Management
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
C look scheduling 51 1
C look scheduling 51 1C look scheduling 51 1
C look scheduling 51 1
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Ch9 mass storage systems
Ch9   mass storage systemsCh9   mass storage systems
Ch9 mass storage systems
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
Sucet os module_5_notes
Sucet os module_5_notesSucet os module_5_notes
Sucet os module_5_notes
 
I/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKCI/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKC
 
381 ccs chapter8_updated(1)
381 ccs chapter8_updated(1)381 ccs chapter8_updated(1)
381 ccs chapter8_updated(1)
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms
 
IO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performanceIO Schedulers (Elevater) concept and its affection on database performance
IO Schedulers (Elevater) concept and its affection on database performance
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

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