Ch11 OS9e
Ch11 OS9e
Systems:
Internals Chapter 11
and
Design I/O Management
Principles and Disk Scheduling
Ninth Edition
By William Stallings
Human readable
Machine readable
Communication
Application
• The use to which a device is put has an influence on the software
Complexity of Control
• The effect on the operating system is filtered by the complexity of the I/O module that controls the device
Unit of Transfer
• Data may be transferred as a stream of bytes or characters or in larger blocks
Data Representation
• Different data encoding schemes are used by different devices
Error Conditions
• The nature of errors, the way in which they are reported, their consequences, and
the available range of responses differs from one device to another
Interrupt-driven I/O
The processor issues an I/O command on behalf of a process
If non-blocking – processor continues to execute instructions from the process that
issued the I/O command
If blocking – the next instruction the processor executes is from the OS, which will put
the current process in a blocked state and schedule another process
• The I/O module has a local memory of its own and is, in fact, a
6 computer in its own right
Disadvantages:
Complicates the logic in the operating system
Swapping logic is also affected
Double Buffer
A process now transfers data to or
from one buffer while the
operating system empties or fills
the other buffer
Circular Buffer
circular buffer
Disk
operation depend on the:
Computer system
Performance
Operating system
Nature of the I/O channel
Settling time
Time after positioning the head over the target track until track identification is
confirmed