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
PPTX
Memory Management in OS
PPTX
Demand paging
PPTX
PDF
Process scheduling (CPU Scheduling)
PPTX
Virtual memory management in Operating System
PPTX
Directory structure
PPTX
cpu scheduling
PPTX
Principal Sources of Optimization in compiler design
 
PPTX
Operating Systems: Process Scheduling
PPT
Free space managment46
PPT
15. Transactions in DBMS
PPTX
Computer architecture page replacement algorithms
PPTX
Scheduling
PDF
Deadlock Avoidance - OS
PPTX
Memory management ppt
PPTX
Round Robin Algorithm.pptx
PPTX
File system structure
PPTX
Deadlock ppt
PPTX
CPU Scheduling in OS Presentation
PPTX
Critical section problem in operating system.
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

PPTX
Memory Management in OS
PPTX
Demand paging
PPTX
PDF
Process scheduling (CPU Scheduling)
PPTX
Virtual memory management in Operating System
PPTX
Directory structure
PPTX
cpu scheduling
PPTX
Principal Sources of Optimization in compiler design
 
PPTX
Operating Systems: Process Scheduling
PPT
Free space managment46
PPT
15. Transactions in DBMS
PPTX
Computer architecture page replacement algorithms
PPTX
Scheduling
PDF
Deadlock Avoidance - OS
PPTX
Memory management ppt
PPTX
Round Robin Algorithm.pptx
PPTX
File system structure
PPTX
Deadlock ppt
PPTX
CPU Scheduling in OS Presentation
PPTX
Critical section problem in operating system.
Memory Management in OS
Demand paging
Process scheduling (CPU Scheduling)
Virtual memory management in Operating System
Directory structure
cpu scheduling
Principal Sources of Optimization in compiler design
 
Operating Systems: Process Scheduling
Free space managment46
15. Transactions in DBMS
Computer architecture page replacement algorithms
Scheduling
Deadlock Avoidance - OS
Memory management ppt
Round Robin Algorithm.pptx
File system structure
Deadlock ppt
CPU Scheduling in OS Presentation
Critical section problem in operating system.

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

PDF
ACE Aarhus: Team '25 Europe Recap and latest news
PPTX
tongue and its prosthodontic considerations
PDF
OSMC 2025: Agentic Incident Response by Birol Yildiz.pdf
PDF
OSMC 2025: Auto Discovery with Icinga by Lennart Betz.pdf
PPTX
bussiness communication[1].pptx work and stress
PPTX
Sample Equity research report for Lafarge.pptx
PDF
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
PPTX
History_of_Punjab_by_Arshdeep_Singh (1).pptx
PDF
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
PPTX
Group-6-presentation-Philippine-Politics-and-Governance-Vico-Sotto.pptx
PPTX
All types of topology presentation .pptx
PPTX
Latest Cyber Security Trends and updates in 2025
PDF
92.9 Best Places to Buy Verified Facebook Accounts in ....pdf
PDF
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
DOCX
Capacity Building ,Personal Effectiveness and Service Excellence
PPTX
Esophageal_Varices_Management_Recent_Advances.pptx
PPTX
Toastmasters Updated Contest Season 25 26.pptx
PDF
SIHMA Scalabrini Institute for Human Mobility in Africa(SIHMA) - Annual Repor...
PDF
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
PDF
BUY Verified Binance Accounts for Trading Bitcoin and ....pdf
ACE Aarhus: Team '25 Europe Recap and latest news
tongue and its prosthodontic considerations
OSMC 2025: Agentic Incident Response by Birol Yildiz.pdf
OSMC 2025: Auto Discovery with Icinga by Lennart Betz.pdf
bussiness communication[1].pptx work and stress
Sample Equity research report for Lafarge.pptx
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
History_of_Punjab_by_Arshdeep_Singh (1).pptx
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
Group-6-presentation-Philippine-Politics-and-Governance-Vico-Sotto.pptx
All types of topology presentation .pptx
Latest Cyber Security Trends and updates in 2025
92.9 Best Places to Buy Verified Facebook Accounts in ....pdf
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
Capacity Building ,Personal Effectiveness and Service Excellence
Esophageal_Varices_Management_Recent_Advances.pptx
Toastmasters Updated Contest Season 25 26.pptx
SIHMA Scalabrini Institute for Human Mobility in Africa(SIHMA) - Annual Repor...
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
BUY Verified Binance Accounts for Trading Bitcoin and ....pdf

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