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

More Related Content

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

What's hot

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

Similar to Disk Scheduling Algorithm in Operating System

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

More from Meghaj Mallick

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

Recently uploaded

PDF
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
PDF
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
PDF
ACE Aarhus: Team '25 Europe Recap and latest news
PDF
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
PPTX
All types of topology presentation. PPTX
PDF
OSMC 2025: It’s always DNS: Monitoring dynamic DNS environments with Checkmk ...
PDF
OSMC 2025: Monitoring a small world by Mattias Schlenker.pdf
PDF
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
PDF
AI-CENTIVE Final Results - Final Stakeholder Meeting
PPTX
All types of topology presentation .pptx
DOCX
Capacity Building ,Personal Effectiveness and Service Excellence
PPTX
HK_TEMPLATE12211212121112112567890976.pptx
PPTX
Group-6-presentation-Philippine-Politics-and-Governance-Vico-Sotto.pptx
PDF
92.9 Best Places to Buy Verified Facebook Accounts in ....pdf
PPTX
History_of_Punjab_by_Arshdeep_Singh (1).pptx
PPTX
Latest Cyber Security Trends and updates in 2025
PPTX
Media Pitch = The Western Standard.pptx
PPTX
Sample Equity research report for Lafarge.pptx
PPTX
bussiness communication[1].pptx work and stress
PPTX
tongue and its prosthodontic considerations
DevFest Baku 2025 Speaker Presentations ( Software, AI, Workshop tracks)
OSMC 2025: Using NetBox DNS by Jan-Piet Mens.pdf
ACE Aarhus: Team '25 Europe Recap and latest news
OSMC 2025: Making the Kernel Speak Kubernetes: Unlocking eBPF’s Power for Obs...
All types of topology presentation. PPTX
OSMC 2025: It’s always DNS: Monitoring dynamic DNS environments with Checkmk ...
OSMC 2025: Monitoring a small world by Mattias Schlenker.pdf
OSMC 2025: Onotify: A scalable, flexible Alertmanager by Colin Douch.pdf
AI-CENTIVE Final Results - Final Stakeholder Meeting
All types of topology presentation .pptx
Capacity Building ,Personal Effectiveness and Service Excellence
HK_TEMPLATE12211212121112112567890976.pptx
Group-6-presentation-Philippine-Politics-and-Governance-Vico-Sotto.pptx
92.9 Best Places to Buy Verified Facebook Accounts in ....pdf
History_of_Punjab_by_Arshdeep_Singh (1).pptx
Latest Cyber Security Trends and updates in 2025
Media Pitch = The Western Standard.pptx
Sample Equity research report for Lafarge.pptx
bussiness communication[1].pptx work and stress
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