SlideShare une entreprise Scribd logo
1  sur  15
SCAN Scheduling

• 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


                       http://raj-os.blogspot.in/            1
SCAN Scheduling


• The head continuously scans back and forth across
  the disk
• Sometimes called the elevator algorithm




                     http://raj-os.blogspot.in/       2
SCAN Scheduling

• Consider for example an ordered disk queue with
  requests involving
   – Tracks 98, 183, 37, 122, 14, 124, 65, 67

   – Head pointer 53

• The request queue (0-199)



                         http://raj-os.blogspot.in/   3
SCAN Scheduling


• If the disk head is initially at cylinder 53,
   – it will first move from 53 to 37, (towards left)

   – then to 14, 0, 65, 67, 98,122, 124 and 183 as shown in the
     next slides

• The total head movement of 208 tracks




                          http://raj-os.blogspot.in/              4
SCAN Scheduling




Initial Head Position

    http://raj-os.blogspot.in/   5
SCAN Scheduling




Head movement from 53 to 37th track

            http://raj-os.blogspot.in/   6
SCAN Scheduling




Head movement from 37th to 14th track

           http://raj-os.blogspot.in/   7
SCAN Scheduling




Head movement to ‘0’th track

        http://raj-os.blogspot.in/   8
SCAN Scheduling




Head movement to 65th track

      http://raj-os.blogspot.in/   9
SCAN Scheduling




Head movement from 65 to 67th track

           http://raj-os.blogspot.in/   10
SCAN Scheduling




Head movement from 67th to 98th track

           http://raj-os.blogspot.in/   11
SCAN Scheduling




Head movement 98 to 122 track

        http://raj-os.blogspot.in/   12
SCAN Scheduling




Head movement from 122 to 124th track

           http://raj-os.blogspot.in/   13
SCAN Scheduling




Head movement from 124th to 183rd track

             http://raj-os.blogspot.in/   14
SCAN Scheduling


• Disadvantages

  – Doesn't provide uniform waiting time




                       http://raj-os.blogspot.in/   15

Contenu connexe

Tendances

Code Optimization using Code Re-ordering
Code Optimization using Code Re-orderingCode Optimization using Code Re-ordering
Code Optimization using Code Re-ordering
Arangs Manickam
 
Process Synchronization And Deadlocks
Process Synchronization And DeadlocksProcess Synchronization And Deadlocks
Process Synchronization And Deadlocks
tech2click
 
Multithreading computer architecture
 Multithreading computer architecture  Multithreading computer architecture
Multithreading computer architecture
Haris456
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
myrajendra
 
Parallel Programming
Parallel ProgrammingParallel Programming
Parallel Programming
Uday Sharma
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
Mr SMAK
 
20. Parallel Databases in DBMS
20. Parallel Databases in DBMS20. Parallel Databases in DBMS
20. Parallel Databases in DBMS
koolkampus
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
Mohd Tousif
 

Tendances (20)

Code Optimization using Code Re-ordering
Code Optimization using Code Re-orderingCode Optimization using Code Re-ordering
Code Optimization using Code Re-ordering
 
Analysis of Algorithm (Bubblesort and Quicksort)
Analysis of Algorithm (Bubblesort and Quicksort)Analysis of Algorithm (Bubblesort and Quicksort)
Analysis of Algorithm (Bubblesort and Quicksort)
 
Deadlocks2
Deadlocks2Deadlocks2
Deadlocks2
 
Structure of the page table
Structure of the page tableStructure of the page table
Structure of the page table
 
Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.Concurrency Control in Distributed Database.
Concurrency Control in Distributed Database.
 
Distributed Operating System
Distributed Operating SystemDistributed Operating System
Distributed Operating System
 
Process Synchronization And Deadlocks
Process Synchronization And DeadlocksProcess Synchronization And Deadlocks
Process Synchronization And Deadlocks
 
Superscalar Processor
Superscalar ProcessorSuperscalar Processor
Superscalar Processor
 
Multithreading computer architecture
 Multithreading computer architecture  Multithreading computer architecture
Multithreading computer architecture
 
network ram parallel computing
network ram parallel computingnetwork ram parallel computing
network ram parallel computing
 
Pipeline & Nonpipeline Processor
Pipeline & Nonpipeline ProcessorPipeline & Nonpipeline Processor
Pipeline & Nonpipeline Processor
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 
Parallel Programming
Parallel ProgrammingParallel Programming
Parallel Programming
 
Single and Multi core processor
Single and Multi core processorSingle and Multi core processor
Single and Multi core processor
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Single instruction multiple data
Single instruction multiple dataSingle instruction multiple data
Single instruction multiple data
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
20. Parallel Databases in DBMS
20. Parallel Databases in DBMS20. Parallel Databases in DBMS
20. Parallel Databases in DBMS
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Operating system 37 demand paging
Operating system 37 demand pagingOperating system 37 demand paging
Operating system 37 demand paging
 

En vedette

Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51
myrajendra
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
myrajendra
 
Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
myrajendra
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
myrajendra
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
myrajendra
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
myrajendra
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
myrajendra
 
First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)
nikeAthena
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
myrajendra
 

En vedette (20)

Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Index allocation 48 1
Index allocation 48 1Index allocation 48 1
Index allocation 48 1
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Ch6: CPU Scheduling
Ch6: CPU SchedulingCh6: CPU Scheduling
Ch6: CPU Scheduling
 
Scheduling Criteria-R.D.Sivakumar
Scheduling Criteria-R.D.SivakumarScheduling Criteria-R.D.Sivakumar
Scheduling Criteria-R.D.Sivakumar
 
Divide and Conquer
Divide and ConquerDivide and Conquer
Divide and Conquer
 
Chap05alg
Chap05algChap05alg
Chap05alg
 
Mergesort
MergesortMergesort
Mergesort
 
Binary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red BlackBinary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red Black
 
Contigious
ContigiousContigious
Contigious
 
Treatments of Mental Illnesses
Treatments of Mental IllnessesTreatments of Mental Illnesses
Treatments of Mental Illnesses
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
 

Similaire à Scan scheduling 50 1 (8)

Disk Scheduling.pptx
Disk Scheduling.pptxDisk Scheduling.pptx
Disk Scheduling.pptx
 
Disk scheduling geekssay.com
Disk scheduling geekssay.comDisk scheduling geekssay.com
Disk scheduling geekssay.com
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
381 ccs chapter8_updated(1)
381 ccs chapter8_updated(1)381 ccs chapter8_updated(1)
381 ccs chapter8_updated(1)
 
Disk Management
Disk ManagementDisk Management
Disk Management
 
Device Management
Device ManagementDevice Management
Device Management
 
Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...
 
secondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OSsecondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OS
 

Plus de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Scan scheduling 50 1