- #1
D a M i E n
- 5
- 0
Code:
The control program for a device-driver process is an infinite loop.
Roughly, the loop body is: wait for I/O request from user process; send
I/O command to device; wait for command completion; notify (unblock) user
process.
a) [10 marks] Suppose the device driver waits by polling the device for
command completion. How does this affect multiprogramming?
b) [10 marks] Assume there is a timer interrupt 60 times a second. Can
you find a reasonable solution for waiting that does not use device
interrupts? If you find one, describe it.
Help please !