SlideShare a Scribd company logo
1 of 24
LOOK and C-LOOK disk scheduling
  algorithms




                      http://raj-os.blogspot.in/   1
• HOME     PREVIOUS TOPIC NEXT
• PREVIOUS QUESTION PAPERS FOR
  OS
• CPP TUTORIALS




            http://raj-os.blogspot.in/   2
Recap

In the last class, you have learnt:

The SSTF, SCAN & C-SCAN Scheduling their

 Advantages

 Disadvantages




                       http://raj-os.blogspot.in/   3
Objectives


On Completion of this period, you would be able to
  know :
• The LOOK & C-LOOK Scheduling

• Advantages

• Disadvantages


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

• SCAN and C-SCAN algorithms move the disk arm
  across the full width of the disk
• In practice neither of the algorithm is implemented
  this way




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

• In LOOK Scheduling the arm goes only as far as final
  request in each direction

• Then it reverses direction immediately without going
  all the way to the end of the disk




                      http://raj-os.blogspot.in/     6
LOOK 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/   7
LOOK Scheduling


• If the disk head is initially at cylinder 53,

   – it will first move from 53 to 65, (towards right)

   – then to 67, 98, 122, 124, 183, 37 and 14 as

     shown in the next slides



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




 Initial Head position
   http://raj-os.blogspot.in/   9
LOOK Scheduling




Head movement from 53 to 65
       http://raj-os.blogspot.in/   10
LOOK Scheduling




Head movement from 65 to 67th track

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




Head movement from 67 to 98th track
         http://raj-os.blogspot.in/   12
LOOK Scheduling




Head movement from 98 to 122 track
        http://raj-os.blogspot.in/   13
LOOK Scheduling




Head movement from 122 to 124th track
          http://raj-os.blogspot.in/    14
LOOK Scheduling




Head movement from 124 to 183rd track
            http://raj-os.blogspot.in/   15
LOOK Scheduling




Head movement from 183 to 37th track
          http://raj-os.blogspot.in/   16
LOOK Scheduling




Head movement from 37th track to 14th track
           http://raj-os.blogspot.in/         17
LOOK Scheduling

• Advantages

  – Better than SCAN algorithm in terms of head movement


• Disadvantages

  – Doesn't provide uniform waiting time



                      http://raj-os.blogspot.in/           18
Summary


In this class, you have learnt:
• The LOOK and C-LOOK Scheduling




                      http://raj-os.blogspot.in/   19
Frequently Asked Questions


1. List the advantages and disadvantages of LOOK

   scheduling

2. With the help of an example, explain LOOK

   scheduling



                  http://raj-os.blogspot.in/       20
Frequently Asked Questions


3. List C-LOOK advantages

4. Explain C-LOOK scheduling with the help of an

   example




                    http://raj-os.blogspot.in/     21
Quiz

1. SCAN and C-SCAN algorithms move the disk arm
   across the full width of the disk [T/F]
  TRUE

2. LOOK Scheduling is better than SCAN algorithm in
   terms of head movement [T/F]
  TRUE



                    http://raj-os.blogspot.in/        22
Quiz

3. C-LOOK algorithm is a version of C-SCAN [T/F]
   TRUE

4. C-LOOK algorithm better than the C-SCAN
  algorithm in terms of head movement [T/F]

   TRUE




                  http://raj-os.blogspot.in/       23
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


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

More Related Content

What's hot

Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50myrajendra
 
Linux Kernel Init Process
Linux Kernel Init ProcessLinux Kernel Init Process
Linux Kernel Init ProcessKernel TLV
 
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptUNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptracha49
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithmsali jawad
 
semaphore & mutex.pdf
semaphore & mutex.pdfsemaphore & mutex.pdf
semaphore & mutex.pdfAdrian Huang
 
Multiversion Concurrency Control Techniques
Multiversion Concurrency Control TechniquesMultiversion Concurrency Control Techniques
Multiversion Concurrency Control TechniquesRaj vardhan
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of CompilersSarmad Ali
 
Reverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux KernelReverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux KernelAdrian Huang
 
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization Amit kashyap
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs schedulingmyrajendra
 
Operating system 18 process creation and termination
Operating system 18 process creation and terminationOperating system 18 process creation and termination
Operating system 18 process creation and terminationVaibhav Khanna
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2myrajendra
 

What's hot (20)

Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Linux Kernel Init Process
Linux Kernel Init ProcessLinux Kernel Init Process
Linux Kernel Init Process
 
Empirical analysis
Empirical analysisEmpirical analysis
Empirical analysis
 
Pass 1 flowchart
Pass 1 flowchartPass 1 flowchart
Pass 1 flowchart
 
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptUNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.ppt
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 
semaphore & mutex.pdf
semaphore & mutex.pdfsemaphore & mutex.pdf
semaphore & mutex.pdf
 
Multiversion Concurrency Control Techniques
Multiversion Concurrency Control TechniquesMultiversion Concurrency Control Techniques
Multiversion Concurrency Control Techniques
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Semaphore
SemaphoreSemaphore
Semaphore
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of Compilers
 
Disjoint sets
Disjoint setsDisjoint sets
Disjoint sets
 
Reverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux KernelReverse Mapping (rmap) in Linux Kernel
Reverse Mapping (rmap) in Linux Kernel
 
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
Operating system 18 process creation and termination
Operating system 18 process creation and terminationOperating system 18 process creation and termination
Operating system 18 process creation and termination
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2
 
Linux Kernel I/O Schedulers
Linux Kernel I/O SchedulersLinux Kernel I/O Schedulers
Linux Kernel I/O Schedulers
 

Similar to Look scheduling.51

Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52myrajendra
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
Sprint backlog specified by example
Sprint backlog specified by exampleSprint backlog specified by example
Sprint backlog specified by exampleAgora Group
 
2019 engineering binder
2019 engineering binder2019 engineering binder
2019 engineering binderJaiPrajapati2
 
NoSQL Database Migration Masterclass - Session 3: Migration Logistics
NoSQL Database Migration Masterclass - Session 3: Migration LogisticsNoSQL Database Migration Masterclass - Session 3: Migration Logistics
NoSQL Database Migration Masterclass - Session 3: Migration LogisticsScyllaDB
 
EDAE 638 -- Rapid Prototyping Instructional Design
EDAE 638 -- Rapid Prototyping Instructional DesignEDAE 638 -- Rapid Prototyping Instructional Design
EDAE 638 -- Rapid Prototyping Instructional DesignDebra Canavan
 
Scrum Training Course
Scrum Training CourseScrum Training Course
Scrum Training CourseAstro Tech
 
Kaizen Blitz multicoat loading area April 2005
Kaizen Blitz multicoat loading area April 2005Kaizen Blitz multicoat loading area April 2005
Kaizen Blitz multicoat loading area April 2005D9 Process Improvement
 
A Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsA Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsDonald Nguyen
 
Portfolio - William Main
Portfolio - William MainPortfolio - William Main
Portfolio - William MainWilliam Main
 
HCOVG_oriented_core_procedures.docx
HCOVG_oriented_core_procedures.docxHCOVG_oriented_core_procedures.docx
HCOVG_oriented_core_procedures.docxliang73
 
Edge trends mizuno-template
Edge trends mizuno-templateEdge trends mizuno-template
Edge trends mizuno-templateshintaro mizuno
 
Mitaka_IntroStarlink.pdf
Mitaka_IntroStarlink.pdfMitaka_IntroStarlink.pdf
Mitaka_IntroStarlink.pdfrobinsroy28
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemMeghaj Mallick
 

Similar to Look scheduling.51 (20)

Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Sprint backlog specified by example
Sprint backlog specified by exampleSprint backlog specified by example
Sprint backlog specified by example
 
2019 engineering binder
2019 engineering binder2019 engineering binder
2019 engineering binder
 
NoSQL Database Migration Masterclass - Session 3: Migration Logistics
NoSQL Database Migration Masterclass - Session 3: Migration LogisticsNoSQL Database Migration Masterclass - Session 3: Migration Logistics
NoSQL Database Migration Masterclass - Session 3: Migration Logistics
 
EDAE 638 -- Rapid Prototyping Instructional Design
EDAE 638 -- Rapid Prototyping Instructional DesignEDAE 638 -- Rapid Prototyping Instructional Design
EDAE 638 -- Rapid Prototyping Instructional Design
 
Scrum Training Course
Scrum Training CourseScrum Training Course
Scrum Training Course
 
Kaizen Blitz multicoat loading area April 2005
Kaizen Blitz multicoat loading area April 2005Kaizen Blitz multicoat loading area April 2005
Kaizen Blitz multicoat loading area April 2005
 
Jouney of process safety (2)
Jouney of  process safety (2)Jouney of  process safety (2)
Jouney of process safety (2)
 
A Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsA Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph Analytics
 
Portfolio - William Main
Portfolio - William MainPortfolio - William Main
Portfolio - William Main
 
Device Management
Device ManagementDevice Management
Device Management
 
Tn6 facility layout
Tn6 facility layoutTn6 facility layout
Tn6 facility layout
 
Tn6 facility+layout
Tn6 facility+layoutTn6 facility+layout
Tn6 facility+layout
 
HCOVG_oriented_core_procedures.docx
HCOVG_oriented_core_procedures.docxHCOVG_oriented_core_procedures.docx
HCOVG_oriented_core_procedures.docx
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Introduction to Parallelization ans performance optimization
Introduction to Parallelization ans performance optimizationIntroduction to Parallelization ans performance optimization
Introduction to Parallelization ans performance optimization
 
Edge trends mizuno-template
Edge trends mizuno-templateEdge trends mizuno-template
Edge trends mizuno-template
 
Mitaka_IntroStarlink.pdf
Mitaka_IntroStarlink.pdfMitaka_IntroStarlink.pdf
Mitaka_IntroStarlink.pdf
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 

More from 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
 

Look scheduling.51

  • 1. LOOK and C-LOOK disk scheduling algorithms http://raj-os.blogspot.in/ 1
  • 2. • HOME PREVIOUS TOPIC NEXT • PREVIOUS QUESTION PAPERS FOR OS • CPP TUTORIALS http://raj-os.blogspot.in/ 2
  • 3. Recap In the last class, you have learnt: The SSTF, SCAN & C-SCAN Scheduling their Advantages Disadvantages http://raj-os.blogspot.in/ 3
  • 4. Objectives On Completion of this period, you would be able to know : • The LOOK & C-LOOK Scheduling • Advantages • Disadvantages http://raj-os.blogspot.in/ 4
  • 5. LOOK Scheduling • SCAN and C-SCAN algorithms move the disk arm across the full width of the disk • In practice neither of the algorithm is implemented this way http://raj-os.blogspot.in/ 5
  • 6. LOOK Scheduling • In LOOK Scheduling the arm goes only as far as final request in each direction • Then it reverses direction immediately without going all the way to the end of the disk http://raj-os.blogspot.in/ 6
  • 7. LOOK 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/ 7
  • 8. LOOK Scheduling • If the disk head is initially at cylinder 53, – it will first move from 53 to 65, (towards right) – then to 67, 98, 122, 124, 183, 37 and 14 as shown in the next slides http://raj-os.blogspot.in/ 8
  • 9. LOOK Scheduling Initial Head position http://raj-os.blogspot.in/ 9
  • 10. LOOK Scheduling Head movement from 53 to 65 http://raj-os.blogspot.in/ 10
  • 11. LOOK Scheduling Head movement from 65 to 67th track http://raj-os.blogspot.in/ 11
  • 12. LOOK Scheduling Head movement from 67 to 98th track http://raj-os.blogspot.in/ 12
  • 13. LOOK Scheduling Head movement from 98 to 122 track http://raj-os.blogspot.in/ 13
  • 14. LOOK Scheduling Head movement from 122 to 124th track http://raj-os.blogspot.in/ 14
  • 15. LOOK Scheduling Head movement from 124 to 183rd track http://raj-os.blogspot.in/ 15
  • 16. LOOK Scheduling Head movement from 183 to 37th track http://raj-os.blogspot.in/ 16
  • 17. LOOK Scheduling Head movement from 37th track to 14th track http://raj-os.blogspot.in/ 17
  • 18. LOOK Scheduling • Advantages – Better than SCAN algorithm in terms of head movement • Disadvantages – Doesn't provide uniform waiting time http://raj-os.blogspot.in/ 18
  • 19. Summary In this class, you have learnt: • The LOOK and C-LOOK Scheduling http://raj-os.blogspot.in/ 19
  • 20. Frequently Asked Questions 1. List the advantages and disadvantages of LOOK scheduling 2. With the help of an example, explain LOOK scheduling http://raj-os.blogspot.in/ 20
  • 21. Frequently Asked Questions 3. List C-LOOK advantages 4. Explain C-LOOK scheduling with the help of an example http://raj-os.blogspot.in/ 21
  • 22. Quiz 1. SCAN and C-SCAN algorithms move the disk arm across the full width of the disk [T/F] TRUE 2. LOOK Scheduling is better than SCAN algorithm in terms of head movement [T/F] TRUE http://raj-os.blogspot.in/ 22
  • 23. Quiz 3. C-LOOK algorithm is a version of C-SCAN [T/F] TRUE 4. C-LOOK algorithm better than the C-SCAN algorithm in terms of head movement [T/F] TRUE http://raj-os.blogspot.in/ 23
  • 24. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 24