SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorMuthusamy Arumugam
 
Data Structures and Algorithm Analysis
Data Structures  and  Algorithm AnalysisData Structures  and  Algorithm Analysis
Data Structures and Algorithm AnalysisMary Margarat
 
overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...Rai University
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2Apar Pramod
 
CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...Asst.prof M.Gokilavani
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
A2 Computing Reverse Polish Notation Part 2
A2 Computing   Reverse Polish Notation Part 2A2 Computing   Reverse Polish Notation Part 2
A2 Computing Reverse Polish Notation Part 2pstevens1963
 
Time space trade off
Time space trade offTime space trade off
Time space trade offanisha talwar
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
3.6 radix sort
3.6 radix sort3.6 radix sort
3.6 radix sortKrish_ver2
 
JavaScript / Web Engineering / Web Development / html + css + js/presentation
JavaScript / Web Engineering / Web Development / html + css + js/presentationJavaScript / Web Engineering / Web Development / html + css + js/presentation
JavaScript / Web Engineering / Web Development / html + css + js/presentationM Sajid R
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtrackingmandlapure
 
Stacks in DATA STRUCTURE
Stacks in DATA STRUCTUREStacks in DATA STRUCTURE
Stacks in DATA STRUCTUREMandeep Singh
 
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIAMicroprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIADheeraj Kataria
 

Was ist angesagt? (20)

Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 Microprocessor
 
Data storage and indexing
Data storage and indexingData storage and indexing
Data storage and indexing
 
Data Structures and Algorithm Analysis
Data Structures  and  Algorithm AnalysisData Structures  and  Algorithm Analysis
Data Structures and Algorithm Analysis
 
overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...
 
SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2SAP II ARTICTURE ,SAP 2
SAP II ARTICTURE ,SAP 2
 
CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
 
A2 Computing Reverse Polish Notation Part 2
A2 Computing   Reverse Polish Notation Part 2A2 Computing   Reverse Polish Notation Part 2
A2 Computing Reverse Polish Notation Part 2
 
pipelining
pipeliningpipelining
pipelining
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Time space trade off
Time space trade offTime space trade off
Time space trade off
 
Stack organization
Stack organizationStack organization
Stack organization
 
3.6 radix sort
3.6 radix sort3.6 radix sort
3.6 radix sort
 
Pipelining
PipeliningPipelining
Pipelining
 
JavaScript / Web Engineering / Web Development / html + css + js/presentation
JavaScript / Web Engineering / Web Development / html + css + js/presentationJavaScript / Web Engineering / Web Development / html + css + js/presentation
JavaScript / Web Engineering / Web Development / html + css + js/presentation
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Stacks in DATA STRUCTURE
Stacks in DATA STRUCTUREStacks in DATA STRUCTURE
Stacks in DATA STRUCTURE
 
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIAMicroprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
 

Ähnlich wie Look scheduling.51

Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50myrajendra
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs schedulingmyrajendra
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52myrajendra
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49myrajendra
 
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
 

Ähnlich wie Look scheduling.51 (20)

Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
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
 
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
 
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
 

Mehr von 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