|
COMP3300 Tutorial 10 |
Updated on |
|||
| ITEE |
Whats New: There are fewer questions this time again, since some of you may still want to focus on your assignment. Should you get behind on tutorials, these questions can be worked on a week late or in lectures as time allows. |
|||
Learning objectives for this week:
- Understand the major concepts weve covered, including:
- different types of I/O hardware
- implications of speed differences
- solutions to performance problems
- Apply these concepts to reasoning about I/O hardware and the interface of I/O to operating systems
- Apply these concepts to choosing an appropriate implementation strategy
- Understand issues in improving performance
As before, you should aim to answer all of these questions by the end of the course. Being able to answer them by the end of week 11 is a useful goal. Be prepared: if you know what you cant do yourself, you will make most efficient use of the tutorial.
- Concepts
- Why is performance a hard problem when dealing with I/O?
- Why is polling not a desirable strategy?
- Explain why disks have largely replaced slower media like tape.
- Low-Level Implementation
- Explain why DMA can sometimes still interfere with CPU operation.
- Give three differences between a networked I/O operating and a disk I/O operation, and explain whether the differences are significant.
- Which of the following can best be described as blocking, nonblocking, or asynchronous (as defined in the textbook pp 471472, lecture 10 slide 14)
- You send an I/O request to a device, and continue doing other work. You later check whether a variable has been set specifying the I/O has completed.
- You launch a thread to do I/O, and that specific thread can block, but others continue.
- You do an I/O operation, and wait for it to complete.
- Disk Scheduling
- For each of the following disk scheduling algorithms, work through the head movements for the queue
100, 200, 300, 10, 12, 44- FCFS
- SSTF
- SCAN
- LOOK
- C-LOOK
- Which both in this case, and in general is likely to result in less overall head movement? Consider what would happen if the queue could grow as requests were being serviced.
- If it is a lot quicker to move the head a long distance at once, than to move that same distance in smaller steps, which of the algorithms looked at before might be better than you first thought?
- For each of the following disk scheduling algorithms, work through the head movements for the queue
- Long-Term Trends
Disk farms appear to have largely replaced tape drives for large-scale storage. Discuss why this is the case, and what may change in future, which may cause disks to be replaced by another technology. In the light of this discussion, is the whole section in the book (14.8) about tertiary storage irrelevant? - Work through any problems you may have arising out of week 10 lectures.
