Unit 5 (1)
Unit 5 (1)
Unit 5 (1)
I/O Hardware
A computer system operates on multiple devices. An important service provided by an OS is
I/O management. Some common I/O devices are mouse, keyboard, touchpad, USB devices,
Bit-mapped screen, LED, On/off switch, network connections, audio I/O, printers etc.
An I/O system takes an I/O request and sends it to the physical device. It then sends the
response from the device to the application. There are two types of I/O devices:
Block devices: The driver communicates with this device by sending to it blocks of
data.
Character devices: The driver communicates by sending and receiving single
characters with the help of this device.
Disk Scheduling
Disk Scheduling Algorithm is an algorithm that keeps and manages input and output
requests arriving for the disk in a system. As we know, for executing any process memory is
required. And when it comes to accessing things from a hard disk, the process becomes very
slow as a hard disk is the slowest part of our computer. There are various methods by which
the process can be scheduled and can be done efficiently.
In our system, multiple requests are coming to the disk simultaneously which will make a
queue of requests. This queue of requests will result in an increased waiting time of requests.
The requests wait until the under processing request executes. To overcome this queuing
and manage the timing of these requests, 'Disk Scheduling' is important in our Operating
System.
There are many terms that we need to know for a better understanding of Disk Scheduling.
Seek Time: As we know, the data may be stored on various blocks of disk. To access
these data according to the request, the disk arm moves and find the required block.
The time taken by the arm in doing this search is known as "Seek Time".
Disk Management
Disk Management is an important functionality provided by the Operating System which can
be used to create, delete, format disk partitions, and much more. It enables users to manage
and view the different disks and functions like viewing, creating, deleting, and shrinking the
partitions associated with the disk drives. Some of the other functions of Disk Management
are:
Disk Management helps to format disk drives.
Disk Management enables the user to rename a disk.
Disk Management also enables the user to change the file system of a disk drive.
Using Disk Management, the user can assign a Drive Letter to a disk. For example, C
Drive or D drive, etc. can be found in Windows File System.
RAID Structure
RAID, or “Redundant Arrays of Independent Disks” is a technique which makes use of a
combination of multiple disks instead of using a single disk for increased performance, data
redundancy or both. The term was coined by David Patterson, Garth A. Gibson, and Randy
Katz at the University of California, Berkeley in 1987.
RAID should not be considered a replacement for backing up your data. If critical data is
going onto a RAID array, it should be backed up to another physical drive or logical set of
drives.
The following are terms that are normally used in connection with RAID:
RAID
Description Operation Advantages Disadvantages Recovery
mode
Data is split Large size If one or more
evenly between and the No drives fails, this
RAID 0 Striped disks
two or more fastest redundancy. results in array
disks. speed. failure.
A single
Two or more Speed and size
drive failure Only one drive is
Mirrored drives have is limited by
RAID 1 will not needed for
disks identical data the slowest and
result in recovery.
on them. smallest disk.
data loss.
Data is split
evenly between High speeds Poor
Striped set
two or more for performance A single drive
with
RAID 3 disks, plus a sequential for multiple failure will
dedicated
dedicated drive read/write simultaneous rebuild.
parity
for parity operations. instructions.
storage.