L9-DiskIO

L9-DiskIO - Disk I/O CSIS0230A Lecture Nine Concepts Disk...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Disk I/O CSIS0230A Lecture Nine Concepts Disk scheduling
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Recommended Reading Chapter 12 of Operating Systems, 3rd edition by Deitel et. al Except 12.10 2 CSIS0230A Principles of Operating Systems
Background image of page 2
References Chapter 12 of Operating Systems, 3rd edition by Deitel et. al Chapter 12 and Section 13.2 of Operating System Principles, 7th edition by Silberschatz et. Al Chapter 11 of Operating Systems Internals and Design Principles, 6th edition by W. Stallings 3 CSIS0230A Principles of Operating Systems
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
I/O Structure I/O devices and the CPU can execute concurrently Each device controller is in charge of a particular device type OS usually has a device driver for each device controller Each device controller has a local buffer and a set of special hardware registers CPU moves data from/to main memory to/from local buffers I/O is from the device to local buffer of controller 4 CSIS0230A Principles of Operating Systems
Background image of page 4
I/O Operations Giving commands to I/O devices Device driver loads the commands to the appropriate registers within the device controller Data movement between main memory and I/O devices Inform the Processor on I/O completion 5 CSIS0230A Principles of Operating Systems
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Giving commands Special I/O instruction specify the transfer of a byte or word to an I/O port address. The I/O instruction triggers bus lines to select the proper device and to move bits into and out of a device register. Memory-Mapped I/O The device-control registers are mapped into the memory address space of the processor CPU executes I/O requests using standard read and write to the mapped memory addresses No special commands for I/O 6 CSIS0230A Principles of Operating Systems
Background image of page 6
Direct Memory Access (DMA) tells I/O controller to transfer x bytes from disk to buffer at address Y DMA controller Device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention Relieves the processor responsibility for the exchange Used for high-speed I/O devices able to transmit information at close to memory speeds. 7 CSIS0230A Principles of Operating Systems
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
I/O Completion Interrupt Processor is interrupted when I/O is completed Processor saves current process context and begins executing interrupt-handler No needless waiting of the I/O completion Processor can do other useful computation 8 CSIS0230A Principles of Operating Systems
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/01/2010 for the course CS 2342 taught by Professor Dr during the Spring '10 term at HKU.

Page1 / 25

L9-DiskIO - Disk I/O CSIS0230A Lecture Nine Concepts Disk...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online