Device Management - Operating System Notes
1. What is Device Management?
Device Management is one of the important functions of an Operating System (OS). It controls and manages
all input/output (I/O) devices such as keyboard, mouse, monitor, printer, hard disk, USB, etc. The OS acts as
a bridge between the devices and the user programs.
2. General Device Characteristics
- Speed Differences: Devices work at different speeds compared to CPU.
- Modes of Operation: Input only (keyboard), output only (printer), both (hard disk).
- Data Transfer: Devices may send/receive data in characters or blocks.
- Shared or Dedicated: Some devices can be shared; others are dedicated to one user.
3. Device Controllers
A device controller is a hardware component that connects a device to the system. It has its own processor
and registers. It controls how data is transferred between device and system.
4. Device Drivers
A device driver is a software program that allows the OS to communicate with hardware devices. It acts as a
translator, hides hardware details, and each device has its own driver.
5. Types of I/O Communication
There are 3 main methods:
a) Programmed I/O (Polling): CPU checks device repeatedly. Wastes CPU time.
b) Interrupt-Driven I/O: Device sends interrupt signal when ready. More efficient.
c) Direct Memory Access (DMA): Device transfers data directly to memory using DMA controller.
6. Memory-Mapped I/O vs I/O-Mapped I/O
a) Memory-Mapped I/O: Devices use memory address space. CPU uses normal instructions.
Device Management - Operating System Notes
b) I/O-Mapped I/O: Devices have separate I/O instructions. Simpler but limited.
7. Summary Table
Device Controller -> Hardware that controls device operation
Device Driver -> Software that helps OS interact with the device
Programmed I/O -> CPU checks device again and again
Interrupt-Driven I/O -> Device tells CPU when it's ready
DMA -> Device transfers data directly to memory
Memory-Mapped I/O -> Devices use memory address space
I/O-Mapped I/O -> Devices have separate I/O instructions