cop4600-sp08-quiz4Solutions

cop4600-sp08-quiz4Solutions - of the I/O. 2. (2.5 pts) Draw...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COP4600 Operating Systems Solutions for Quiz 4 Prepared by Tuba Yavuz-Kahveci University of Florida tyavuz@cise.ufl.edu Questions There are two questions. Please read the questions carefully. Good luck! 1. (2.5 pts) Describe Interrupt-driven I/O and I/O using Direct Memory Access (DMA). Answer: (a) Interrupt-driven I/O : I/O for n-unit data requires n requests to the de- vice controller and n interrupts are generated on the CPU by the device controller to notify the completion of the individual requests. (b) I/O using DMA : I/O for n-unit data requires 1 request to the DMA controller, which in return programs the device controller and 1 interrupt is generated by the DMA controller on the CPU to notify the completion
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of the I/O. 2. (2.5 pts) Draw a Fgure to describe the layers of the I/O software and explain what each layer does. Answer: rom bottom to up: (a) Interrupt handler: Saves the state of the current process, processes in-terrupts generated by the devices by calling the appropriate interrupt handling procedure, and calls the scheduler. (b) Device driver: Programs the device controller by writing to its control and data registers to do I/O and to conFgure the device. (c) Device independent software: Provides protection, error reporting, buer-ing, etc. (d) User-level I/O software: Provides spooling, formatting, etc....
View Full Document

This test prep was uploaded on 04/18/2008 for the course COP 4600 taught by Professor Yavuz-kahveci during the Spring '07 term at University of Florida.

Ask a homework question - tutors are online