SlideShare a Scribd company logo
1 of 22
Disk Scheduling ,
FCFS disk
scheduling algorithms




           http://raj-os.blogspot.in/   1
HOME     PREVIOUS TOPIC NEXT
PREVIOUS QUESTION PAPERS FOR OS
CPP TUTORIALS




        http://raj-os.blogspot.in/   2
Recap

In the last class, you have learnt:
   Various allocation methods

    - Their advantages and disadvantages




                    http://raj-os.blogspot.in/   3
Objectives

On Completion of this period, you would be able to
  know
• The Need for Disk Scheduling

• FCFS disk scheduling algorithm




                  http://raj-os.blogspot.in/   4
Need for Disk Scheduling


• Most jobs depend heavily on disk

• It is important that disk service be as fast as possible for

   – Loading

   – Input

   – Output of files


                       http://raj-os.blogspot.in/          5
Need for Disk Scheduling

• The operating system can improve average disk
  service time

   – By scheduling the requests for disk access




                     http://raj-os.blogspot.in/   6
Need for Disk Scheduling


• Disk speed is composed of three parts

• First

   – To access a block the system must move the head
     to the appropriate track or cylinder



                      http://raj-os.blogspot.in/       7
Need for Disk Scheduling


• This head movement is called a SEEK

• The time to complete it is SEEK TIME




                   http://raj-os.blogspot.in/   8
Need for Disk Scheduling


• Once the head is at the right track

   – It must wait until the desired block rotates under
     read write head
• This operation is called LATENCY(ROTATIOAL)

• The delay is called LATENCY TIME


                       http://raj-os.blogspot.in/         9
Need for Disk Scheduling

• The Transfer Time

   – The time required to transfer of data between the
     disk and main memory
• The total time to service a disk request is the sum of

   – Seek time

   – Latency (rotational) time &

   – Transfer time
                      http://raj-os.blogspot.in/           10
Need for Disk Scheduling

• The disk bandwidth is the ratio of

      The total number of bytes transferred

    The time between the first request of service and
    completion of transfer



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


• Whenever a process needs a I/O from the disk

   – It issues a system call to the OS


• The request has several pieces of information




                         http://raj-os.blogspot.in/   12
Disk Scheduling

• Whether this operation is input or output

• What the disk address for the transfer is

• What is the memory address for the transfer

• What the number of sectors to be transferred


                     http://raj-os.blogspot.in/   13
Disk Scheduling


• If the desired disk drive and controller are available

   – The service can be serviced immediately

• If the drive controller is busy

   – Any new requests will be placed in the queue




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

• Multiprogramming system with many process

• The disk queue may often have several pending
  requests
• Thus when one request is completed

• The operating system chooses which pending request is
  to service next


                      http://raj-os.blogspot.in/    15
Disk Scheduling

• How does operating system makes this choice

   – Any of the disk scheduling algorithms can be used


• We shall discuss various disk scheduling algorithms




                       http://raj-os.blogspot.in/        16
Various Disk Scheduling

• FCFS Scheduling
• SSTF Scheduling
• SCAN Scheduling
• C-SCAN Scheduling
• LOOK Scheduling
• C-LOOK Scheduling


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


• All these algorithms are based on criteria i.e.

   – Minimize seek time


• Seek time ≈ Seek distance




                      http://raj-os.blogspot.in/    18
Quiz

1. The operating system can improve average disk
  service time by scheduling the requests for disk
  access [T/F]
   TRUE
2. The time required to transfer of data between the
  disk and main memory is called
   TRANSFER TIME

                      http://raj-os.blogspot.in/       19
Quiz

3. If the desired disk drive and controller are available

  the service can be serviced immediately [T/F]
      TRUE


4. The disk scheduling algorithms are based on criteria
       Minimize seek time


                      http://raj-os.blogspot.in/            20
Quiz

1. The FCFS algorithm does not provide best (average)
   access [T/F]
   TRUE


2. The head movement in the FCFS algorithm is
   minimal in all cases [T/F]
   FALSE




                    http://raj-os.blogspot.in/          21
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


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

More Related Content

What's hot

Disk scheduling geekssay.com
Disk scheduling geekssay.comDisk scheduling geekssay.com
Disk scheduling geekssay.comHemant Gautam
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms Paresh Parmar
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling AlgorithmsAdarsh Kr Sinha
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2myrajendra
 
Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Adarsh Kr Sinha
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo osRahul Narang
 
Scan scheduling 50 1
Scan scheduling 50 1Scan scheduling 50 1
Scan scheduling 50 1myrajendra
 
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...Safe Software
 
Design of a Light Sport Aircraft
Design of a Light Sport AircraftDesign of a Light Sport Aircraft
Design of a Light Sport AircraftNathan Butt
 
guider: a system-wide performance analyzer
guider: a system-wide performance analyzerguider: a system-wide performance analyzer
guider: a system-wide performance analyzerPeace Lee
 

What's hot (18)

Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk scheduling geekssay.com
Disk scheduling geekssay.comDisk scheduling geekssay.com
Disk scheduling geekssay.com
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo os
 
Disk structure
Disk structureDisk structure
Disk structure
 
Scan scheduling 50 1
Scan scheduling 50 1Scan scheduling 50 1
Scan scheduling 50 1
 
Operating System
Operating SystemOperating System
Operating System
 
ISR
ISRISR
ISR
 
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
 
Design of a Light Sport Aircraft
Design of a Light Sport AircraftDesign of a Light Sport Aircraft
Design of a Light Sport Aircraft
 
guider: a system-wide performance analyzer
guider: a system-wide performance analyzerguider: a system-wide performance analyzer
guider: a system-wide performance analyzer
 
Embedded system -Introduction to hardware designing
Embedded system  -Introduction to hardware designingEmbedded system  -Introduction to hardware designing
Embedded system -Introduction to hardware designing
 

Viewers also liked

Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51myrajendra
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56myrajendra
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44myrajendra
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53myrajendra
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)myrajendra
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3myrajendra
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentationmyrajendra
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58myrajendra
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifomyrajendra
 
File management53(1)
File management53(1)File management53(1)
File management53(1)myrajendra
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocationmyrajendra
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)myrajendra
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocationmyrajendra
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimalmyrajendra
 
36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconceptsmyrajendra
 
Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)myrajendra
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55myrajendra
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60myrajendra
 

Viewers also liked (19)

Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
 
Files concepts.53
Files concepts.53Files concepts.53
Files concepts.53
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3
 
33
3333
33
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentation
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifo
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocation
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimal
 
36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts
 
Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
 

Similar to Disk scheduling.49

Similar to Disk scheduling.49 (20)

Ch9 mass storage systems
Ch9   mass storage systemsCh9   mass storage systems
Ch9 mass storage systems
 
disk sechduling
disk sechdulingdisk sechduling
disk sechduling
 
18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
ch10_massSt.pdf
ch10_massSt.pdfch10_massSt.pdf
ch10_massSt.pdf
 
Disk Management through the Computer Management
Disk Management through the Computer ManagementDisk Management through the Computer Management
Disk Management through the Computer Management
 
11-IOManagement.ppt
11-IOManagement.ppt11-IOManagement.ppt
11-IOManagement.ppt
 
11-IOManagement.ppt
11-IOManagement.ppt11-IOManagement.ppt
11-IOManagement.ppt
 
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
 
File system and Deadlocks
File system and DeadlocksFile system and Deadlocks
File system and Deadlocks
 
Os7
Os7Os7
Os7
 
Io (2)
Io (2)Io (2)
Io (2)
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
Memory Management.pdf
Memory Management.pdfMemory Management.pdf
Memory Management.pdf
 
Viknesh
VikneshViknesh
Viknesh
 
Ch8 main memory
Ch8   main memoryCh8   main memory
Ch8 main memory
 
Tuning for Oracle RAC Wait Events
Tuning for Oracle RAC Wait EventsTuning for Oracle RAC Wait Events
Tuning for Oracle RAC Wait Events
 
Operating system
Operating systemOperating system
Operating system
 
O ssvv72014
O ssvv72014O ssvv72014
O ssvv72014
 
Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 

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
 

Disk scheduling.49

  • 1. Disk Scheduling , FCFS disk scheduling algorithms http://raj-os.blogspot.in/ 1
  • 2. HOME PREVIOUS TOPIC NEXT PREVIOUS QUESTION PAPERS FOR OS CPP TUTORIALS http://raj-os.blogspot.in/ 2
  • 3. Recap In the last class, you have learnt: Various allocation methods - Their advantages and disadvantages http://raj-os.blogspot.in/ 3
  • 4. Objectives On Completion of this period, you would be able to know • The Need for Disk Scheduling • FCFS disk scheduling algorithm http://raj-os.blogspot.in/ 4
  • 5. Need for Disk Scheduling • Most jobs depend heavily on disk • It is important that disk service be as fast as possible for – Loading – Input – Output of files http://raj-os.blogspot.in/ 5
  • 6. Need for Disk Scheduling • The operating system can improve average disk service time – By scheduling the requests for disk access http://raj-os.blogspot.in/ 6
  • 7. Need for Disk Scheduling • Disk speed is composed of three parts • First – To access a block the system must move the head to the appropriate track or cylinder http://raj-os.blogspot.in/ 7
  • 8. Need for Disk Scheduling • This head movement is called a SEEK • The time to complete it is SEEK TIME http://raj-os.blogspot.in/ 8
  • 9. Need for Disk Scheduling • Once the head is at the right track – It must wait until the desired block rotates under read write head • This operation is called LATENCY(ROTATIOAL) • The delay is called LATENCY TIME http://raj-os.blogspot.in/ 9
  • 10. Need for Disk Scheduling • The Transfer Time – The time required to transfer of data between the disk and main memory • The total time to service a disk request is the sum of – Seek time – Latency (rotational) time & – Transfer time http://raj-os.blogspot.in/ 10
  • 11. Need for Disk Scheduling • The disk bandwidth is the ratio of The total number of bytes transferred The time between the first request of service and completion of transfer http://raj-os.blogspot.in/ 11
  • 12. Disk Scheduling • Whenever a process needs a I/O from the disk – It issues a system call to the OS • The request has several pieces of information http://raj-os.blogspot.in/ 12
  • 13. Disk Scheduling • Whether this operation is input or output • What the disk address for the transfer is • What is the memory address for the transfer • What the number of sectors to be transferred http://raj-os.blogspot.in/ 13
  • 14. Disk Scheduling • If the desired disk drive and controller are available – The service can be serviced immediately • If the drive controller is busy – Any new requests will be placed in the queue http://raj-os.blogspot.in/ 14
  • 15. Disk Scheduling • Multiprogramming system with many process • The disk queue may often have several pending requests • Thus when one request is completed • The operating system chooses which pending request is to service next http://raj-os.blogspot.in/ 15
  • 16. Disk Scheduling • How does operating system makes this choice – Any of the disk scheduling algorithms can be used • We shall discuss various disk scheduling algorithms http://raj-os.blogspot.in/ 16
  • 17. Various Disk Scheduling • FCFS Scheduling • SSTF Scheduling • SCAN Scheduling • C-SCAN Scheduling • LOOK Scheduling • C-LOOK Scheduling http://raj-os.blogspot.in/ 17
  • 18. Disk Scheduling • All these algorithms are based on criteria i.e. – Minimize seek time • Seek time ≈ Seek distance http://raj-os.blogspot.in/ 18
  • 19. Quiz 1. The operating system can improve average disk service time by scheduling the requests for disk access [T/F] TRUE 2. The time required to transfer of data between the disk and main memory is called TRANSFER TIME http://raj-os.blogspot.in/ 19
  • 20. Quiz 3. If the desired disk drive and controller are available the service can be serviced immediately [T/F] TRUE 4. The disk scheduling algorithms are based on criteria Minimize seek time http://raj-os.blogspot.in/ 20
  • 21. Quiz 1. The FCFS algorithm does not provide best (average) access [T/F] TRUE 2. The head movement in the FCFS algorithm is minimal in all cases [T/F] FALSE http://raj-os.blogspot.in/ 21
  • 22. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 22