Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
Why is it impossible to completely swap out a blocked process?
|
The page holding the buffer to receive input must not be swapped out to avoid deadlock
|
|
When does 'deadlock' occur?
|
When process is blocked on IO whilst IO is blocked on process swapping!
|
|
Why must the 'receiving' page in memory be locked?
|
To avoid deadlock.
|
|
What are IO buffers?
|
Memory reserves held to prevent deadlocking
|
|
Describe the copying of an application's data for an output operation.
|
Initially coped to the buffer.
|
|
Describe the copying of an application's data for an input operation.
|
Finally copied from the buffer.
|
|
Name the three main buffering schemes.
|
Single, Double, Circular.
|
|
Through what does information from the IO reach the user process?
|
OS
|
|
Describe the Circular buffering schemes in terms of other schemes.
|
Like the Double but with more than two IO buffers.
|
|
Describe the motion of the disk head over the disk
|
Positions over the correct track then waits for the correct sector to spin underneath
|
|
Roughly how many heads are in a fixed-head drive?
|
255
|
|
How many heads are there in a moving-head drive?
|
16
|
|
For a moving-head drive, what is Seek Time?
|
Time taken to position the head over the required track.
|
|
Approximately how long is the seek time?
|
8-12ms
|
|
What is the Rotational Delay?
|
Time taken for rotation of disk under head.
|
|
What is the average rotational delay for a 5400rpm disk?
|
90 rps, full rotation in 11ms, so mean rotational delay is 5.5ms
|
|
What is the Access Time?
|
Seek time + Rotational Delay
|
|
If an IDE interface transfers data at a burst rate of 2MB/s, how long would a 4096B transfer take?
|
4096/2000000 = 2ms
|
|
What has a faster burst transfer rate, IDE or SCSI?
|
SCSI
|
|
Summarise the breakdown of speeds of steps in disk data retrieval.
|
(slowest) Seek, rotation, Disk data to controller, driver software handling, controller data to memory (fastest)
|
|
What is the problem with sharing one disk between multiple users on a system?
|
Disk requests appear in a random sequence.
|
|
How can we tackle this?
|
Disk-scheduling strategies
|
|
What are the four main disk-scheduling strategies?
|
FIFO, SSTF, Scan, C-Scan
|
|
What is FIFO?
|
First-In-First-Out. No optimization.
|
|
What is SSTF?
|
Shortest Seek Time First - requires least movement of head (slowest step)
|
|
What is the Scan policy?
|
Keep moving disk head in same direction until no more requests in that direction, then change direction.
|
|
What is C-Scan?
|
Scan but one direction only. Reduces expected waiting time for all tracks.
|