System Programming: Lecture No. 02 Topic: Input Output Bscs-7 Semester
System Programming: Lecture No. 02 Topic: Input Output Bscs-7 Semester
Course Code:MCS-241
BSCS- 7th Semester
Lecture No. 02
Topic: Input Output
Teacher:
Orain Malik
Punjab College Kotli
MSCS
Contents
Overview
The input–process–output (IPO) model is a
widely used approach in systems analysis and
software engineering for describing the structure
of an information processing program or another
process. Many introductory programming and
systems analysis texts introduce this as the most
basic structure for describing a process.
Discussion of I/O Model
A computer program or any other sort of process using the
input-process-output model receives inputs from a user or
other source, does some computations on the inputs, and
returns the results of the computations.
I/O Controllers
Modern Devices
Many modern microprocessors and microcontrollers have I/O controller
functionality built into them to reduce cost and size. These are used in embedded and
special purpose applications (for example cell phones) where the I/O requirements are
fixed, or tend to have similar requirements that can be allowed for.
Functionality of I/O Controller
Input/output controllers receive input and output requests from the central
processor, and then send device-specific control signals to the device they
control. They also manage the data flow to and from the device. This frees the
central processor from involvement with the details of controlling each device.
I/O controllers are needed only for those I/O devices that are part of the system .
Often the I/O controllers are part of the electronics on the main circuit board
(the mother board) of the computer. Sometimes an uncommon device requires its
own controller which must be plugged into a connector (an expansion slot) on
the mother board.
Disk
Disk is a storage device
Disk storage and retrieval (i.e. read and write) is
performed as I/O
Disk is considered as both input as well as output
device
Disk is used to store files of data and programs with
variable sizes
Disk data input or output requires very high data
rate (few MBs per second)
.
THE END