Chapter-4 - Device Managment
Chapter-4 - Device Managment
Outline
2
► Introduction
► Characteristics of parallel and serial devices
► Buffering strategies
► Direct memory access
► Recovery from failure
Introduction
3
Device management in OS
►Refers to the process of controlling and coordinating the
II.System Stability
► Maintain system stability by coordinating the interaction
between the OS and hardware devices
► This includes
function as expected.
Device management : Importance
6
V. Security
► Controlling access to hardware resources
► Preventing unauthorized access or tampering with devices.
VI. Compatibility and Interoperability
► HW devices are compatible with the OS and can
interoperate effectively
► This is essential for supporting a wide range of peripherals
Characteristics of parallel and serial device
7
A. Parallel Devices
Simultaneous data transmission
► Can transmit multiple bits of data simultaneously over
Common applications
► Parallel interfaces are commonly used for connecting
throughput
Characteristics of parallel and serial device
9
B. Serial Devices
Sequential data transmission
►Transmit data sequentially, one bit at a time, over a
Definition
►Buffering refers to the temporary storage of data in a
buffer
► Buffer is a region of memory used to temporarily hold
I. Input Buffering
► Involves temporarily storing incoming data from an input
output device
III. Double Buffering:
► It involves using two buffers to manage the display of
graphics or video
Buffering strategies: types
15
V. Adaptive Buffering
► It is a dynamic buffering strategy that adjusts the size
of the buffer based on changing conditions
► Conditions include :
Network congestion or fluctuations in data transfer
rates.
► Advantages
► optimize data transfer and
► minimize latency by adapting the buffer size to
match the current environment
Benefits of buffering
17
I. Storage Devices
► HDD, SSD, and optical drives often use DMA
To transfer data between the storage device and
system memory
This enables to allowing for fast and efficient read
and write operations.
II. NICs
► To transfer data packets to and from system memory
during network communication
► Enabling high-speed data transmission without
burdening the CPU with every packet transfer
Examples of devices that utilize DMA
22
III.Graphics Cards
► To transfer large amounts of graphical data between
the GPU's memory and system memory
► Enabling smooth rendering and high-performance
graphics processing
IV. Sound Cards
► To transfer audio data to and from system memory
► Enabling the playback and recording of high-quality
audio without requiring constant CPU involvement
Examples of devices that utilize DMA
23
V. Peripheral Controllers
► To efficiently manage
data transfers
between connected
devices and system
memory
Examples of devices that utilize DMA
24
I. Redundancy
► Implementing redundant devices
► E.g. using RAID configurations for storage devices
► RAID allows data redundancy and fault tolerance enabling
recovery from disk failures without data loss.
II. Error Detection and Correction
► Error detection and correction mechanisms:
Checksums, parity bits, and error-correcting codes, helps
identify and correct errors that occur during data transfer
Recovery from failure: Common approaches
27
III.Hot Swapping
► the replacement of a failed component without shutting
down the entire system
► Commonly found in storage devices, NICs, and other
peripherals
IV. Failover and Load Balancing
► Failover is the ability of switching to a reliable backup
system seamlessly and automatically
► Failover and load balancing mechanisms in network
devices, enables automatic rerouting of traffic in the
event of a device failure.
Recovery from failure: Common approaches
28
r 4
p te
ha
o f C
d
En