Disk
Scheduling
1
Disk Scheduling
 The operating system is responsible for using
hardware efficiently — for the disk drives, this
means having a fast access time and disk
bandwidth.
2
Disk Scheduling (Cont.)
 Several algorithms exist to schedule
the servicing of disk I/O requests.
 We illustrate them with a request
queue (0-199).
98, 183, 37, 122, 14, 124, 65, 67
Head pointer 53
3
FCFS 4
Illustration shows total head movement of 640 cylinders.
SSTF
 Selects the request with the minimum seek time
from the current head position.
 SSTF scheduling is a form of SJF scheduling; may
cause starvation of some requests.
 Illustration shows total head movement of 236
cylinders.
5
SSTF (Cont.) 6
Total head movement -
12+2+30+23+84+24+2+59=236
(65-53)
SCAN
 The disk arm starts at one end of the
disk, and moves toward the other end,
servicing requests until it gets to the
other end of the disk, where the head
movement is reversed and servicing
continues.
 Sometimes called the elevator
algorithm.
 Illustration shows total head movement
of 208 cylinders.
7
SCAN (Cont.) 8
Total head movement -
16+23+51+2+31+24+2+59=208
(14-53=51)
C-SCAN
 C(Circular)-Scan
 Provides a more uniform wait time than SCAN.
 The head moves from one end of the disk to
the other. servicing requests as it goes. When
it reaches the other end, however, it
immediately returns to the beginning of the
disk, without servicing any requests on the
return trip.
 Treats the cylinders as a circular list that wraps
around from the last cylinder to the first one.
9
C-SCAN (Cont.) 10
LOOK
 Version of C-SCAN
 Arm only goes as far as the last request in each
direction, then reverses direction immediately,
without first going all the way to the end of the
disk.
11
LOOK (Cont.) 12
Selecting a Disk-
Scheduling Algorithm
 SSTF is common and has a natural appeal
 SCAN and C-SCAN perform better for systems
that place a heavy load on the disk.
 Performance depends on the number and
types of requests.
 Either SSTF or LOOK is a reasonable choice for
the default algorithm.
13
Device Management
 Devices are typically physical/hardware devices
such as computers, laptops, servers.
 device management refers to the control of
input/output devices such as keyboards, printers,
magnetic tape, USB ports etc.
 One of the important jobs of an Operating System
is to manage various I/O devices including
mouse, keyboards, touch pad, disk drives.
Features of Device
Management
 The operating system interacts with the device
controllers through device drivers while allocating
the device to the various processes running on
the system.
 Device drivers are system software programs that
connect processes and device controllers.
 The device management in the operating system
is responsible for implementing the APIs.
 The device controller, which is used in device
management operations, consists primarily of
three registers: command, status, and data.
Device Driver
 A device driver is a computer program that operates or
controls a particular device attached to a computer
 A driver provides a software interface to hardware devices,
enabling operating systems and other computer programs to
access hardware functions
 A driver communicates with the device through the
computer bus or communications subsystem to which the
hardware connects. Once the device sends data back to
the driver, the driver may invoke routines in the original
calling program. When a calling program invokes a driver's
routine, the driver issues the commands to the device.
Working of Device driver
 A device driver performs the following jobs, such
as:
 To accept request from the device-independent
software above to it.
 Making sure that the request is executed
successfully.
 Interact with the device controller to take and
give I/O and perform required error handling.

More Related Content

PPT
Operating Systems
PPT
Disk Scheduling
PPTX
Disk scheduling
PPTX
Disk Scheduling concept of Operating System.pptx
PPT
Disk scheduling algorithms
PDF
Ch9 mass storage systems
PPT
Disk Scheduling Algorithms
PDF
Cs8493 unit 4
Operating Systems
Disk Scheduling
Disk scheduling
Disk Scheduling concept of Operating System.pptx
Disk scheduling algorithms
Ch9 mass storage systems
Disk Scheduling Algorithms
Cs8493 unit 4

Similar to Operating System ( Disk Scheduling ).pptx (20)

PPT
PPT
PPT
Disk scheduling
PPT
Disk Management through the Computer Management
PPT
Disk Scheduling Algorithms Mar 30 2024.ppt
PPT
operating system
PPT
Ch10
PPT
Mass storage systems presentation operating systems
PPT
Lecturedevicemanagement
PDF
CH10.pdf
PPTX
Viknesh
PPT
Lecture Notes for Device management in Operating Systems
PPTX
I/O structure slide by Rajalakshmi SKC
PPTX
18CSC205J Operating Systemkooks-Unit-5.pptx
PPTX
Input Output Management in Operating System
PPTX
Device Management
PPTX
Device Management.pptx. Database management system topic presentation
PPT
Disk scheduling
Disk scheduling
Disk Management through the Computer Management
Disk Scheduling Algorithms Mar 30 2024.ppt
operating system
Ch10
Mass storage systems presentation operating systems
Lecturedevicemanagement
CH10.pdf
Viknesh
Lecture Notes for Device management in Operating Systems
I/O structure slide by Rajalakshmi SKC
18CSC205J Operating Systemkooks-Unit-5.pptx
Input Output Management in Operating System
Device Management
Device Management.pptx. Database management system topic presentation
Disk scheduling
Ad

More from skultdedsec (9)

PPTX
Rituraj Singh The Man behind Redbus.pptx
PPTX
Presentation on Parle Somaya .pptx
PPTX
Operating System Unit 4(RTU Syllabus).pptx
PPTX
Operating System Unit 1(RTU Syllabus).pptx
PPTX
chemical reaction and equation class 10.pptx
PPTX
Operating System Presentation papers.pptx
PPT
Bachelor of Technology Computer Networking .ppt
PPTX
Create Awareness of Transfer of Technology.pptx
PPTX
5th Generation (5G) Latest Technology.pptx
Rituraj Singh The Man behind Redbus.pptx
Presentation on Parle Somaya .pptx
Operating System Unit 4(RTU Syllabus).pptx
Operating System Unit 1(RTU Syllabus).pptx
chemical reaction and equation class 10.pptx
Operating System Presentation papers.pptx
Bachelor of Technology Computer Networking .ppt
Create Awareness of Transfer of Technology.pptx
5th Generation (5G) Latest Technology.pptx
Ad

Recently uploaded (20)

PPT
What is a Computer? Input Devices /output devices
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
Five Habits of High-Impact Board Members
PPTX
Configure Apache Mutual Authentication
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
STKI Israel Market Study 2025 version august
PPTX
Benefits of Physical activity for teenagers.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
What is a Computer? Input Devices /output devices
Consumable AI The What, Why & How for Small Teams.pdf
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Microsoft Excel 365/2024 Beginner's training
Convolutional neural network based encoder-decoder for efficient real-time ob...
Five Habits of High-Impact Board Members
Configure Apache Mutual Authentication
Developing a website for English-speaking practice to English as a foreign la...
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Zenith AI: Advanced Artificial Intelligence
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Taming the Chaos: How to Turn Unstructured Data into Decisions
Enhancing plagiarism detection using data pre-processing and machine learning...
STKI Israel Market Study 2025 version august
Benefits of Physical activity for teenagers.pptx
Module 1.ppt Iot fundamentals and Architecture
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Getting started with AI Agents and Multi-Agent Systems
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

Operating System ( Disk Scheduling ).pptx

  • 2. Disk Scheduling  The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk bandwidth. 2
  • 3. Disk Scheduling (Cont.)  Several algorithms exist to schedule the servicing of disk I/O requests.  We illustrate them with a request queue (0-199). 98, 183, 37, 122, 14, 124, 65, 67 Head pointer 53 3
  • 4. FCFS 4 Illustration shows total head movement of 640 cylinders.
  • 5. SSTF  Selects the request with the minimum seek time from the current head position.  SSTF scheduling is a form of SJF scheduling; may cause starvation of some requests.  Illustration shows total head movement of 236 cylinders. 5
  • 6. SSTF (Cont.) 6 Total head movement - 12+2+30+23+84+24+2+59=236 (65-53)
  • 7. SCAN  The disk arm starts at one end of the disk, and moves toward the other end, servicing requests until it gets to the other end of the disk, where the head movement is reversed and servicing continues.  Sometimes called the elevator algorithm.  Illustration shows total head movement of 208 cylinders. 7
  • 8. SCAN (Cont.) 8 Total head movement - 16+23+51+2+31+24+2+59=208 (14-53=51)
  • 9. C-SCAN  C(Circular)-Scan  Provides a more uniform wait time than SCAN.  The head moves from one end of the disk to the other. servicing requests as it goes. When it reaches the other end, however, it immediately returns to the beginning of the disk, without servicing any requests on the return trip.  Treats the cylinders as a circular list that wraps around from the last cylinder to the first one. 9
  • 11. LOOK  Version of C-SCAN  Arm only goes as far as the last request in each direction, then reverses direction immediately, without first going all the way to the end of the disk. 11
  • 13. Selecting a Disk- Scheduling Algorithm  SSTF is common and has a natural appeal  SCAN and C-SCAN perform better for systems that place a heavy load on the disk.  Performance depends on the number and types of requests.  Either SSTF or LOOK is a reasonable choice for the default algorithm. 13
  • 14. Device Management  Devices are typically physical/hardware devices such as computers, laptops, servers.  device management refers to the control of input/output devices such as keyboards, printers, magnetic tape, USB ports etc.  One of the important jobs of an Operating System is to manage various I/O devices including mouse, keyboards, touch pad, disk drives.
  • 15. Features of Device Management  The operating system interacts with the device controllers through device drivers while allocating the device to the various processes running on the system.  Device drivers are system software programs that connect processes and device controllers.  The device management in the operating system is responsible for implementing the APIs.  The device controller, which is used in device management operations, consists primarily of three registers: command, status, and data.
  • 16. Device Driver  A device driver is a computer program that operates or controls a particular device attached to a computer  A driver provides a software interface to hardware devices, enabling operating systems and other computer programs to access hardware functions  A driver communicates with the device through the computer bus or communications subsystem to which the hardware connects. Once the device sends data back to the driver, the driver may invoke routines in the original calling program. When a calling program invokes a driver's routine, the driver issues the commands to the device.
  • 17. Working of Device driver  A device driver performs the following jobs, such as:  To accept request from the device-independent software above to it.  Making sure that the request is executed successfully.  Interact with the device controller to take and give I/O and perform required error handling.