Movatterモバイル変換


[0]ホーム

URL:


MM
Uploaded byMeghaj Mallick
PPTX, PDF6,552 views

Disk Scheduling Algorithm in Operating System

The document discusses disk scheduling, a process used by operating systems to manage I/O requests for disk access. It explains various disk scheduling algorithms such as FCFS, SSTF, Scan, C-Scan, Look, and C-Look, detailing their advantages and disadvantages. Additionally, it defines important terms related to disk access like seek time, rotational latency, transfer time, and response time.

In this document
Powered by AI

Introduction of the presenter and their details.

Disk scheduling is a function of operating systems for managing I/O requests for disks.

Definitions of key terms: Seek Time, Rotational Latency, Transfer Time, Disk Access Time, and Disk Response Time.

The main purpose of disk scheduling algorithms is to efficiently schedule I/O requests.

FCFS (First Come First Serve), where requests are handled in the order they arrive. Advantages and disadvantages are discussed.

SSTF (Shortest Seek Time First) reduces average response time and increases throughput, but can cause starvation.

SCAN algorithm services requests in one direction like an elevator but may cause long waiting times for distant requests.

C-SCAN (Circular SCAN) moves in a circular fashion, providing more uniform wait times compared to SCAN.

LOOK and CLOOK algorithms optimize servicing by not traveling to the very end of the disk, thus reducing delays.

Thank you slide.

Embed presentation

Downloaded 26 times
DIVYANSHPARMARTHIROLL NO. :-MCA/25016/18BIRLAINSTITUTEOFTECHNOLOGY
DISK
• Disk scheduling is done by operating systems toschedule I/O requests arriving for disk. Diskscheduling is also known as I/O scheduling.• The technique that operating system uses todetermine the request which is to be satisfied next iscalled disk scheduling.
• some important terms related to disk scheduling –• Seek time - Seek time is the time taken in locatingthe disk arm to a specified track where theread/write request will be satisfied.• Rotational Latency - It is the time taken by thedesired sector to rotate itself to the position fromwhere it can access the R/W heads.
• Transfer Time - It is the time taken to transfer thedata.• Disk Access Time - Disk access time is given as,Disk Access Time = Rotational Latency + Seek Time+ Transfer Time• Disk Response Time - It is the average of timespent by each request waiting for the IOoperation.
• Purpose of Disk Scheduling - The mainpurpose of disk scheduling algorithm is to select adisk request from the queue of IO requests anddecide the schedule when this request will beprocessed.
The Disk scheduling algorithms are as follows –1. FCFS :- FCFS (First come first serve) is thesimplest of all the Disk SchedulingAlgorithms. In FCFS, the requests areaddressed in the order they arrive in the diskqueue.
ADVANTAGES :-1. Every request gets a fair chance.2. No indefinite postponementDISADVANTAGES :-1. Does not try to optimize seek time.2. May not provide the best possible service
2. SSTF :- In SSTF (Shortest Seek Time First),requests having shortest seek time areexecuted first. So, the seek time of everyrequest is calculated in advance in queue andthen they are scheduled according to theircalculated seek time. As a result, the requestnear the disk arm will get executed first. SSTFis certainly an improvement over FCFS as itdecreases the average response time andincreases the throughput of system.
ADVANTAGES :-1. Average Response Time decreases.2. Throughput increases.DISADVANTAGES :-1. Can cause Starvation for a request if it hashigher seek time as compared to incomingrequests
3. SCAN :- In SCAN algorithm the disk armmoves into a particular direction and servicesthe requests coming in its path and afterreaching the end of disk, it reverses itsdirection and again services the requestarriving in its path. So, this algorithm workslike an elevator and hence also knownas elevator algorithm. As a result, the requestsat the midrange are serviced more and thosearriving behind the disk arm will have to wait.
ADVANTAGES :-1. High throughput.2. Average response time.DISADVANTAGES :-1. Long waiting time for requests for locationsjust visited by disk arm
C-SCAN :- In C-SCAN algorithm in which thedisk arm instead of reversing its direction goesto the other end of the disk and starts servicingthe requests from there. So, the disk arm movesin a circular fashion and this algorithm is alsosimilar to SCAN algorithm and hence it isknown as C-SCAN (Circular SCAN).ADVANTAGES :-1. Provides more uniform wait time compared toSCAN
5. LOOK: It is similar to the SCAN diskscheduling algorithm except the differencethat the disk arm in spite of going to the end ofthe disk goes only to the last request to beserviced in front of the head and then reversesits direction from there only. Thus it preventsthe extra delay which occurred due tounnecessary traversal to the end of the disk.
6. CLOOK: As LOOK is similar to SCANalgorithm, in similar way, CLOOK is similar toCSCAN disk scheduling algorithm. InCLOOK, the disk arm inspite of going to theend goes only to the last request to be servicedin front of the head and then from there goesto the other end’s last request. Thus, it alsoprevents the extra delay which occurred dueto unnecessary traversal to the end of the disk.
THANKYOU

Recommended

PPT
Contiguous Memory Allocation.ppt
PPT
Disk scheduling
PPTX
Allocation of Frames & Thrashing
PPT
Thrashing allocation frames.43
PPT
Disk scheduling
PPSX
CPU Scheduling algorithms
PPTX
Page replacement algorithms
PPTX
File Protection in Operating System
PDF
OS - Process Concepts
PPTX
CPU Scheduling in OS Presentation
PPT
Memory Management in OS
PPT
Context Switching
PPTX
Scheduling
PPT
Deadlock
PPT
Classical problem of synchronization
PPTX
SCHEDULING ALGORITHMS
PPTX
Demand paging
PPT
17 cpu scheduling and scheduling criteria
PPTX
Operating system 24 mutex locks and semaphores
PPTX
Deadlock Prevention
PPTX
Round Robin Algorithm.pptx
PPT
Disk scheduling algorithms
PPT
Chapter 7 - Deadlocks
PPTX
Operating system memory management
PPT
Computer architecture pipelining
PPTX
Inter Process Communication
PPTX
DeadLock in Operating-Systems
PPTX
Segmentation in operating systems
PPTX
disk Scheduling explanation hsbsjjsj1.pptx
PPTX
Disk Scheduling In Operating System.pptx

More Related Content

PPT
Contiguous Memory Allocation.ppt
PPT
Disk scheduling
PPTX
Allocation of Frames & Thrashing
PPT
Thrashing allocation frames.43
PPT
Disk scheduling
PPSX
CPU Scheduling algorithms
PPTX
Page replacement algorithms
PPTX
File Protection in Operating System
Contiguous Memory Allocation.ppt
Disk scheduling
Allocation of Frames & Thrashing
Thrashing allocation frames.43
Disk scheduling
CPU Scheduling algorithms
Page replacement algorithms
File Protection in Operating System

What's hot

PDF
OS - Process Concepts
PPTX
CPU Scheduling in OS Presentation
PPT
Memory Management in OS
PPT
Context Switching
PPTX
Scheduling
PPT
Deadlock
PPT
Classical problem of synchronization
PPTX
SCHEDULING ALGORITHMS
PPTX
Demand paging
PPT
17 cpu scheduling and scheduling criteria
PPTX
Operating system 24 mutex locks and semaphores
PPTX
Deadlock Prevention
PPTX
Round Robin Algorithm.pptx
PPT
Disk scheduling algorithms
PPT
Chapter 7 - Deadlocks
PPTX
Operating system memory management
PPT
Computer architecture pipelining
PPTX
Inter Process Communication
PPTX
DeadLock in Operating-Systems
PPTX
Segmentation in operating systems
OS - Process Concepts
CPU Scheduling in OS Presentation
Memory Management in OS
Context Switching
Scheduling
Deadlock
Classical problem of synchronization
SCHEDULING ALGORITHMS
Demand paging
17 cpu scheduling and scheduling criteria
Operating system 24 mutex locks and semaphores
Deadlock Prevention
Round Robin Algorithm.pptx
Disk scheduling algorithms
Chapter 7 - Deadlocks
Operating system memory management
Computer architecture pipelining
Inter Process Communication
DeadLock in Operating-Systems
Segmentation in operating systems

Similar to Disk Scheduling Algorithm in Operating System

PPTX
disk Scheduling explanation hsbsjjsj1.pptx
PPTX
Disk Scheduling In Operating System.pptx
PDF
Operating system notes _ computer science
PPTX
PDF
DOC-20241118-WA0000osdiskschedulingslgoirths.pdf
PPT
Disk scheduling algorithms are used by the operating system to manage the ord...
PPTX
FILE SYSTEMS AND ORGANISATION STRUCTURE.pptx
PPTX
Device Management.pptx. Database management system topic presentation
PPTX
File allocation methods (1)
PDF
fileallocationmethods1-220104151603.pdf
PPTX
Disk Scheduling
PPTX
Disk Scheduling concept of Operating System.pptx
PPT
Disk Scheduling Algorithms Mar 30 2024.ppt
PPTX
Mass storage structure
PPT
Disk scheduling algorithm.52
PPT
Disk scheduling geekssay.com
PPTX
Operating system
PPTX
Disk scheduling
PPT
Disk scheduling
disk Scheduling explanation hsbsjjsj1.pptx
Disk Scheduling In Operating System.pptx
Operating system notes _ computer science
DOC-20241118-WA0000osdiskschedulingslgoirths.pdf
Disk scheduling algorithms are used by the operating system to manage the ord...
FILE SYSTEMS AND ORGANISATION STRUCTURE.pptx
Device Management.pptx. Database management system topic presentation
File allocation methods (1)
fileallocationmethods1-220104151603.pdf
Disk Scheduling
Disk Scheduling concept of Operating System.pptx
Disk Scheduling Algorithms Mar 30 2024.ppt
Mass storage structure
Disk scheduling algorithm.52
Disk scheduling geekssay.com
Operating system
Disk scheduling
Disk scheduling

More from Meghaj Mallick

PPT
24 partial-orderings
PPTX
PORTFOLIO BY USING HTML & CSS
PPTX
Introduction to Software Testing
PPTX
Introduction to System Programming
PPTX
MACRO ASSEBLER
PPTX
Icons, Image & Multimedia
PPTX
Project Tracking & SPC
PPTX
Peephole Optimization
PPTX
Routing in MANET
PPTX
Macro assembler
PPTX
Architecture and security in Vanet PPT
PPTX
Design Model & User Interface Design in Software Engineering
PPTX
Text Mining of Twitter in Data Mining
PPTX
DFS & BFS in Computer Algorithm
PPTX
Software Development Method
PPTX
Secant method in Numerical & Statistical Method
PPTX
Motivation in Organization
PPTX
Communication Skill
PPT
Partial-Orderings in Discrete Mathematics
PPTX
Hashing In Data Structure
24 partial-orderings
PORTFOLIO BY USING HTML & CSS
Introduction to Software Testing
Introduction to System Programming
MACRO ASSEBLER
Icons, Image & Multimedia
Project Tracking & SPC
Peephole Optimization
Routing in MANET
Macro assembler
Architecture and security in Vanet PPT
Design Model & User Interface Design in Software Engineering
Text Mining of Twitter in Data Mining
DFS & BFS in Computer Algorithm
Software Development Method
Secant method in Numerical & Statistical Method
Motivation in Organization
Communication Skill
Partial-Orderings in Discrete Mathematics
Hashing In Data Structure

Recently uploaded

PPTX
Latest Cyber Security Trends and updates in 2025
PPTX
2025-11-23 Moses 08 (shared slides).pptx
PDF
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
PPTX
All types of topology presentation .pptx
PPTX
Media Pitch = The Western Standard.pptx
PDF
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
PPTX
bussiness communication[1].pptx work and stress
PDF
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
PPTX
Sample Equity research report for Lafarge.pptx
PDF
King Khaled university .. Presentation .
DOCX
Capacity Building ,Personal Effectiveness and Service Excellence
PPTX
All types of topology presentation. PPTX
PDF
SIHMA Scalabrini Institute for Human Mobility in Africa(SIHMA) - Annual Repor...
PPTX
History_of_Punjab_by_Arshdeep_Singh (1).pptx
PDF
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
PPTX
Toastmasters Updated Contest Season 25 26.pptx
PDF
ACE Aarhus: Team '25 Europe Recap and latest news
PDF
BUY Verified Binance Accounts for Trading Bitcoin and ....pdf
PDF
OSMC 2025: It’s always DNS: Monitoring dynamic DNS environments with Checkmk ...
PPTX
tongue and its prosthodontic considerations
Latest Cyber Security Trends and updates in 2025
2025-11-23 Moses 08 (shared slides).pptx
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
All types of topology presentation .pptx
Media Pitch = The Western Standard.pptx
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
bussiness communication[1].pptx work and stress
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
Sample Equity research report for Lafarge.pptx
King Khaled university .. Presentation .
Capacity Building ,Personal Effectiveness and Service Excellence
All types of topology presentation. PPTX
SIHMA Scalabrini Institute for Human Mobility in Africa(SIHMA) - Annual Repor...
History_of_Punjab_by_Arshdeep_Singh (1).pptx
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
Toastmasters Updated Contest Season 25 26.pptx
ACE Aarhus: Team '25 Europe Recap and latest news
BUY Verified Binance Accounts for Trading Bitcoin and ....pdf
OSMC 2025: It’s always DNS: Monitoring dynamic DNS environments with Checkmk ...
tongue and its prosthodontic considerations

Disk Scheduling Algorithm in Operating System

  • 1.
  • 2.
  • 3.
    • Disk schedulingis done by operating systems toschedule I/O requests arriving for disk. Diskscheduling is also known as I/O scheduling.• The technique that operating system uses todetermine the request which is to be satisfied next iscalled disk scheduling.
  • 4.
    • some importantterms related to disk scheduling –• Seek time - Seek time is the time taken in locatingthe disk arm to a specified track where theread/write request will be satisfied.• Rotational Latency - It is the time taken by thedesired sector to rotate itself to the position fromwhere it can access the R/W heads.
  • 5.
    • Transfer Time- It is the time taken to transfer thedata.• Disk Access Time - Disk access time is given as,Disk Access Time = Rotational Latency + Seek Time+ Transfer Time• Disk Response Time - It is the average of timespent by each request waiting for the IOoperation.
  • 6.
    • Purpose ofDisk Scheduling - The mainpurpose of disk scheduling algorithm is to select adisk request from the queue of IO requests anddecide the schedule when this request will beprocessed.
  • 7.
    The Disk schedulingalgorithms are as follows –1. FCFS :- FCFS (First come first serve) is thesimplest of all the Disk SchedulingAlgorithms. In FCFS, the requests areaddressed in the order they arrive in the diskqueue.
  • 9.
    ADVANTAGES :-1. Everyrequest gets a fair chance.2. No indefinite postponementDISADVANTAGES :-1. Does not try to optimize seek time.2. May not provide the best possible service
  • 10.
    2. SSTF :-In SSTF (Shortest Seek Time First),requests having shortest seek time areexecuted first. So, the seek time of everyrequest is calculated in advance in queue andthen they are scheduled according to theircalculated seek time. As a result, the requestnear the disk arm will get executed first. SSTFis certainly an improvement over FCFS as itdecreases the average response time andincreases the throughput of system.
  • 11.
    ADVANTAGES :-1. AverageResponse Time decreases.2. Throughput increases.DISADVANTAGES :-1. Can cause Starvation for a request if it hashigher seek time as compared to incomingrequests
  • 12.
    3. SCAN :-In SCAN algorithm the disk armmoves into a particular direction and servicesthe requests coming in its path and afterreaching the end of disk, it reverses itsdirection and again services the requestarriving in its path. So, this algorithm workslike an elevator and hence also knownas elevator algorithm. As a result, the requestsat the midrange are serviced more and thosearriving behind the disk arm will have to wait.
  • 13.
    ADVANTAGES :-1. Highthroughput.2. Average response time.DISADVANTAGES :-1. Long waiting time for requests for locationsjust visited by disk arm
  • 14.
    C-SCAN :- InC-SCAN algorithm in which thedisk arm instead of reversing its direction goesto the other end of the disk and starts servicingthe requests from there. So, the disk arm movesin a circular fashion and this algorithm is alsosimilar to SCAN algorithm and hence it isknown as C-SCAN (Circular SCAN).ADVANTAGES :-1. Provides more uniform wait time compared toSCAN
  • 15.
    5. LOOK: Itis similar to the SCAN diskscheduling algorithm except the differencethat the disk arm in spite of going to the end ofthe disk goes only to the last request to beserviced in front of the head and then reversesits direction from there only. Thus it preventsthe extra delay which occurred due tounnecessary traversal to the end of the disk.
  • 16.
    6. CLOOK: AsLOOK is similar to SCANalgorithm, in similar way, CLOOK is similar toCSCAN disk scheduling algorithm. InCLOOK, the disk arm inspite of going to theend goes only to the last request to be servicedin front of the head and then from there goesto the other end’s last request. Thus, it alsoprevents the extra delay which occurred dueto unnecessary traversal to the end of the disk.
  • 17.

[8]ページ先頭

©2009-2025 Movatter.jp