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

PPT
Disk scheduling algorithm.52
PPT
Sstf scheduling.50
PPTX
Disk Scheduling
PPT
Disk scheduling
PPT
Fcfs scheduling
PPT
C look scheduling 51 1
PPTX
Disk Scheduling Algorithms
PPT
Disk scheduling
Disk scheduling algorithm.52
Sstf scheduling.50
Disk Scheduling
Disk scheduling
Fcfs scheduling
C look scheduling 51 1
Disk Scheduling Algorithms
Disk scheduling

What's hot (18)

PPTX
Disk scheduling
PPT
Disk scheduling geekssay.com
PPT
Disk scheduling algorithms
PPT
Disk scheduling
PPT
Disk Scheduling Algorithms
PPT
C scan scheduling 50 2
PPT
Explained Disk Scheduling Algo ...
PPT
Disk scheduling
PPT
Disk scheduling algo os
PPT
Disk structure
PPT
Scan scheduling 50 1
PPT
Operating System
PPTX
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
DOCX
Design of a Light Sport Aircraft
PDF
guider: a system-wide performance analyzer
PPT
Embedded system -Introduction to hardware designing
Disk scheduling
Disk scheduling geekssay.com
Disk scheduling algorithms
Disk scheduling
Disk Scheduling Algorithms
C scan scheduling 50 2
Explained Disk Scheduling Algo ...
Disk scheduling
Disk scheduling algo os
Disk structure
Scan scheduling 50 1
Operating System
Leveraging FME Workbench and Python Scripts to Create Stylized Oil and Gas KM...
Design of a Light Sport Aircraft
guider: a system-wide performance analyzer
Embedded system -Introduction to hardware designing
Ad

Viewers also liked (19)

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

Similar to Disk scheduling.49 (20)

PPT
Operating Systems
PPT
Disk Scheduling Algorithms Mar 30 2024.ppt
PDF
Cs8493 unit 4
PPTX
18CSC205J Operating Systemkooks-Unit-5.pptx
PPTX
FILE SYSTEMS AND ORGANISATION STRUCTURE.pptx
PPT
Mass Storage Structure Manipal University Jaipur PPT
PPT
11-IOManagement.ppt
PPT
11-IOManagement.ppt
PPT
Disk Scheduling
PPT
Disk Management through the Computer Management
PDF
CH10.pdf
PPTX
I/O structure slide by Rajalakshmi SKC
PPT
Mass storage systems presentation operating systems
PPT
PPT
PPT
operating system
PPTX
ch12-gh1.pptx
PPT
Physics.ppt 9th class physics important.
PPTX
18CSC205J-UNIT-5.pptx
Operating Systems
Disk Scheduling Algorithms Mar 30 2024.ppt
Cs8493 unit 4
18CSC205J Operating Systemkooks-Unit-5.pptx
FILE SYSTEMS AND ORGANISATION STRUCTURE.pptx
Mass Storage Structure Manipal University Jaipur PPT
11-IOManagement.ppt
11-IOManagement.ppt
Disk Scheduling
Disk Management through the Computer Management
CH10.pdf
I/O structure slide by Rajalakshmi SKC
Mass storage systems presentation operating systems
operating system
ch12-gh1.pptx
Physics.ppt 9th class physics important.
18CSC205J-UNIT-5.pptx

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
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