Defenitions: To know the concept of the "How do
peripheral devices interact with the operating system to provide
input and output?" , we have to first know what is peripheral
devices, how's it works and their protocols and what is Operating
System.
Peripheral Devices:
- A peripheral device, also sometimes called an auxiliary
device.
- Input output devices attached to the computer are called
peripheral device.
- There are three types of peripheral devices"
- input
- output
- input-output
- peripheral may be Anolog Or Digital and serial or
parallel.
- A peripheral device is a device that is connected to a
computer/ but is not part of the core computer architecture. The
core elements of a computer are the central processing unit, power
supply, motherboard and the computer case that contains those three
components.
- A peripheral device is any connected device, internal or
external, that provides a computer with additional.
- examples: monitor and printer.keyboard, magnetic tape etc.
Protocols:
- Each peripheral is programmed with its own machine code. Each
has its own rules that dictate how it transmits data values between
the computer and the device. These rules make up a protocol for
controlling and communicating with the device.
The OS uses programs called device drivers to
manage connections with peripherals.
A device driver:
- A device driver handles the translation of requests between a
device and the computer
- A device driver defines where a process must put outgoing data
before it can be sent, and where incoming messages will be stored
when they are received
- A device driver wakes up the device when it is needed and put
it back to sleep when it is not.
Operating system(OS):
An operating system is software that manages computer hardware
and software. It supplies an interface for the user and important
utilities for managing the computer.
How do
peripheral devices interact with the operating system to provide
input and output:
- An OS have generic device drivers to enable it to connect to
most common peripherals. Some peripherals, however, will have their
own drivers that need to be installed before use.
- Peripherals that use the same protocol may be controlled by the
same driver. If a number of identical game controllers are plugged
in, each device will store its data in a different place so they do
not interfere with each other.
The input-output (I/O) organization of a computer is a
function ,the size of computer and the devices connected to
it.
Input-output interface:
- its provides the method for transferring the information
between internal storage and external input-output
devices.
- Peripherals connected to computer need special connection link
for interfacing them with the CPU.
- Computer system include special H/W CPU and Peripherals to
supervise and synchronize all I/O transfer ,these component called
interface units.