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