Unit 4
Unit 4
Structure
4.0 Objectives
4.1 Introduction
4.2 Computer : An Introduction
4.3 How Computers Work?
4.3.1 The Input-Output Process
4.4 Central Processor Concepts
4.4.1 Memory Hierarchy
4.5 Data Entry : Input Devices
4.6 Computer Output : Output Devices
4.7 Secondary Storage
4.7.1 Secondary Storage for Direct Access
4.7.2 Secondary Storage for Sequential Access
4.8 Summary
4.9 Answers to Self Check Exercises
4.10 Keywords
4.11 References and Further Readings
4.0 OBJECTIVES
After reading this Unit, you will be able to:
• learn the various components of a computer system;
• explain the basic functional organisation of input and output devices within
a computer system;
• understand memory organisation in a computer system;
• utilise the similarity between input and output (I/O) to better understand
I/O in general;
• understand the symbiotic relationship between input and output, especially
in complex systems like Virtual Reality;
• classify input devices as either interactive or source data automation in
order to more easily remember their similarities and differences;
• classify output devices as either hardcopy, softcopy, or action in order to
more easily remember their similarities and differences;
• differentiate direct access and sequential access technologies; and
• identify the similarities and differences between the most popular storage
media, especially magnetic, optical, and magneto optical storage media.
4.1 INTRODUCTION
Computers have become omnipresent in every walk of life. Libraries are no
exception. Before learning how computers are used in various activities of
libraries, you should understand certain basic components of computers. A
clear understanding of the concepts and technical terms is required so that you 113
can appreciate the remaining units of this programme. In this Unit you will be
Introduction to Computer introduced to some of the basic concepts like hardware, etc. The Unit starts by
Technology
examining the basic configuration of a computer system, and then goes on to
examine its components in detail. The basic configuration as described later is
equally applicable to all types of computer systems, whether we are considering
mainframe, minicomputer or microcomputer systems. You will also learn a
few facts relating to the history of computers. Computers can be used to store
information in a highly compressed manner. The portion of the computer where
information is stored is generally referred to as memory. In this Unit, we will
concentrate on secondary storage medium.
114
Fig. 4.1: Schematic Representation of a Computer System
(Source : PGDLAN, MLI – 001)
4.3.1 The Input-Output Process Hardware
Each of the components shown in Fig. 4.1 has unique contribution to make
functionally as summarised below:
• Input Devices: Input devices accept data, convert data into machine-
readable form and transmit data to the processor unit.
• Central Processing Unit (CPU): The Central Processing Unit, often called
processor or just CPU, comprises Control Unit, the Arithmetic and Logic
Unit (ALU), and the Primary Memory. The arrows within the CPU represent
the interaction within these three units (in case of a micro computer) and
mainframes. The functions of these sub-units are summarised below.
• The Control Unit: The CU is a conceptual representation of the microchip
circuits that governs the operation of the CPU. It decodes and executes
program instructions, and controls and coordinates data movements within
the processor, and between the processor and other components of the
computer system.
• The Arithmetic and Logic Unit: The ALU is a conceptual representation
of the microchip circuits that performs arithmetic operations like (+,-,*,^,/
), logical operations like (AND, OR, NOT) and relational operations like
(<,>,<=,>=).
• The Primary Memory: This unit stores programs during their execution,
stores data that are being used by the current program, and stores the
operating system which controls the operation of the computer system.
Primary memory consists of Random Access Memory, RAM, where the
users programs (and their data) must be stored in order to be run, and Read
Only Memory, ROM, where permanent programs and data are built in by
the manufacturer.
• Secondary or Backing Memory: It maintains a permanent record of data
and programs, maintains a store for the program and data being processed
if the main memory cannot accommodate the data and program, and acts
as an input/output device.
• Output Devices: Accept data from the processor, and convert data into
the required output format.
You will learn more about each one of these components subsequently in this
Unit.
The Control Unit is one of the most important parts of the microprocessor
because it is in charge of the entire process. The control unit extracts instructions
from memory and decodes them. Based on these instructions it creates control
signals that tell the Arithmetic Logic Unit (ALU) and the Registers how to
operate, what to operate on, and what to do with the result. The Control Unit
makes sure everything happens in the right place at the right time. This unit
controls the internal functioning of the computer and input/output units. The
role of control unit in CPU is that of a “manager” or “a traffic cop”. In other
words, it controls and co-ordinates all hardware operations. This unit of the
processor selects and interprets program instructions and then sees that they
are executed. The ALU responds to commands coming from the control section.
Primary CU Functions (in addition to those discussed above) are listed below.
It :
a) reads and interprets machine language instructions;
b) controls the transmission of data between ALU, registers, caches,
primary memory, and auxiliary memory;
c) controls the sequence of execution of program instruction (i.e. governs
branching jumping around within a program) which allows repetition and
selection.; and
d) directs ALU as to what mathematical or logic operations to perform.
Primary Memory
Primary memory, also called main memory or internal memory, provides
temporary storage of programs in execution and the data being processed. It is
known as immediate access storage (IAS) as this is the portion of CPU which
can be accessible directly. From a hardware point of view the primary memory
is formed by a large number of basic units referred to as “memory cells” Each
memory cell is a device or an electronic circuit that has two or more stable
states, which represents the binary numbers 0 (Zero) or 1 (One). The computer
can retrieve any item of data or any instruction stored in primary memory at
lightning speed. The modern computer does this in a few nano seconds.
Primary memory can be further grouped into Random Access Memory (RAM)
and Read Only Memory (ROM). Cache memory (small, fast RAM) is designed
to hold frequently used data. Let us summarise the features of each of these
below:
• Random Access Memory (RAM): This memory allows writing as well as
reading of data unlike ROM which does not allow writing of data on to it.
It is a volatile storage because the contents of RAM are lost when the
power (computer) is turned off. If you want to store the data for later use,
you have to transfer all the contents to a secondary storage device. There
are several different types of RAM, the most popular of which include:
i) DRAM, dynamic RAM, although its name sounds sophisticated, is
the oldest and simplest (and therefore the slowest) type of RAM used
today. The word “dynamic” comes from the fact that it must be 117
Introduction to Computer electronically “refreshed” constantly in order to maintain the data it
Technology
stores.
ii) SRAM, static RAM, unlike DRAM, does not need to be refreshed;
its storage is fixed (as long as power is supplied to the computer).
This newer, more dependable type of RAM is faster, but more
expensive than DRAM. SRAM is often used for cache memory.
iii) EDO (Enhanced Data Output) RAM, is a type of RAM that improves
the memory access time on faster microprocessors such as the Intel
Pentium. EDO RAM was initially optimised for the 66 MHz Pentium.
iv) SDRAM, Synchronous DRAM, is a new form of RAM that can be
synchronised to the clock speed of the computer, a powerful feature
that optimises data access by the system buses.
v) RDRAM, Rambus DRAM, is Intel’s designated successor to
SDRAM has an effective speed of 800 MHz and a peak data transfer
rate of 1.6 GBps. However, it has yet to prove itself, and there are
several rivals, e.g. DDR SDRAM, that are slower but have 64b bus
widths thus providing comparable transfer rates.
• Read Only Memory (ROM): Another type of microcomputer memory is
read only memory. Data is ‘burnt’ into the ROM chip at the manufacturing
time. Unlike RAM, the data on the ROM is non-volatile, i.e. data is not
lost when the computer is switched off. Following are the popular ROMs.
i) PROM (Programmable ROM) can be programmed to record
information using a facility known as a PROM-programmer. Once
the chip has been programmed the recorded information cannot be
changed.
ii) EPROM (erasable PROM) is erased by shining ultraviolet light on
the exposed chip.To write to or erase and EPROM, one must use a
PROM burner.
iii) EEPROM (electronically erasable PROM) is more convenient than
EPROM because it can be erased electronically and can be written to
in bytes.
iv) Flash Memory, a special type of EEPROM, can be erased and
rewritten in multi-byte blocks rather than the single bytes
characteristic of EEPROM. Flash memory is most often used to hold
control code such as the Basic Input/Output System (BIOS) in a
personal computer; these are often called “flash BIOS”.
• Cache Memory (small, fast RAM): A small block of high-speed memory
(usually SRAM) located between the CPU and main memory that is used
to store frequently requested data and instructions. Properly designed, a
cache improves system performance by reducing the need to access the
system’s slower main memory for every transaction. Memory cache or
CPU cache is a dedicated bank of high-speed RAM chips used to cache
data from primary memory. When data is read from primary memory, a
118
larger block than is immediately necessary is stored in the cache under
the assumption that the next data needed by a program will be located Hardware
near the data being read; when that data is needed, it will then be waiting
in the high-speed cache. Memory Cache may be either built into the CPU
(level 1, or L1 cache or contained in separate chips (level 2, or L2 cache).
Self Check Exercises
1) Describe the basic components of a modern computer system and explain
their role in its working.
2) Distinguish between RAM and ROM.
Note: i) Write your answers in the space given below.
ii) Check your answers with the answers given at the end of this Unit.
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
The factor of cost is one of the main reasons for using a Memory Hierarchy in
a computer rather than simply holding all the computer system software in
Primary Memory which would obviously provide the optimum performance.
The other reason for using a Memory Hierarchy is that it provides a means of
permanent storage of data since Primary Memory is volatile.
119
Introduction to Computer
Technology CPU
Register
Cache
Memory
Main Memory
• Registers (fastest data access): They are built into the CPU itself. There
are many kinds of registers and their number and type depend on the
manufacturer’s design. An oversimplified generic set of registers would
include the following:
a) accumulator (ALU)
b) storage registers (ALU)
c) decoder (CU)
d) instruction register (CU)
e) address register (CU)
f) program register or program counter (CU)
g) several others (depending on the CPU)
• Cache Memory (small, fast RAM): They are designed to hold frequently
used data. In general, Cache (high speed RAM that is configured to hold
the most frequently used data) is used to improve system performance.
Memory cache or CPU cache is a dedicated bank of high-speed RAM
chips used to cache data from primary memory. When data is read from
primary memory, a larger block than is immediately necessary is stored
in the cache under the assumption that the next data needed by a program
will be located near the data being read; when that data is needed, it will
then be waiting in the high-speed cache. Memory Cache may be either
built into the CPU (level 1 , or L1, cache, e.g. Pentiums and PowerPCs)
or contained in separate chips (level 2, or L2 cache).
120
• Primary Memory (moderate data acess): This is also known as primary Hardware
storage, primary memory, main storage, internal storage, main memory,
and RAM (Random Access Memory); all these terms are used
interchangeably by people in computer circles. Primary Memory is the
part of the computer that holds data and instructions for processing.
Although closely associated with the central processing unit, primary
memory is separate from it. Primary Memory stores program instructions
or data for only as long as the program they pertain to is in operation.
Keeping these items in primary memory when the program is not running
is not feasible for three reasons:
– Most types of memory only store items while the computer is turned
on; data is destroyed when the machine is turned off.
– If more than one program is running at a time (often the case on large
computers and sometimes on small computers), a single program
cannot lay exclusive claim to primary memory.
– There may not be room in memory to hold the processed data.
Let us learn more about these devices in the following sub-sections. Let us
concentrate more on those devices which are generally used by the libraries.
Keyboard
Keyboard is the most common data entry device. Almost all general-purpose
computers are supplied with a keyboard. A keyboard has over 100 keys on it.
When you press a key a number (code) is sent to the computer to tell it which
key you have pressed. Keyboards are often used in conjunction with a screen
on which the data entered are displayed. 121
Introduction to Computer Table 4.2 : Various Input Devices
Technology
Human Input Devices (Dir
Q
Keyboard
C
To
Li
Pointing Devices M
Tr
Jo
D
Video Input Devices D
A
Sound Input Devices V
Automated Input Devices
The keys on a keyboard are usually arranged in the same order as those on a
typewriter. This layout of keys is called QWERTY because Q-W-E-R-T-Y is
the order in which the letters occur on the top row of the keyboard. Some
newer designs have the letters arranged in a different order. The keys on the
keyboard can be grouped into six groups. They are:
a) Function keys: There will be 12 function keys labelled from F1 to F12.
These are programmable keys used as shortcut keys to perform certain
functions. Every software that you run responds differently to the function
keys.
b) QWERTY keys: These are the alphanumeric keys, which are arranged, in
the same order that you find in a typewriter. These keys can be used to
enter lower case as well as upper case alphabets. Space bar is used to
leave space between words.
Like the songs on a sound tape, the data records organised on a magnetic tape
must be retrieved according to the storage sequence. And like the music the
data recorded on a magnetic disk can also be accessed in a sequence if they
have been organised in a way that supports such retrieval. Data, in magnetic
disks, is stored in a number of invisible concentric circles called tracks. This
data is encoded as magnetic bit patterns, which can be created or read by the
read/write head of the disk drive. Read/Write heads consist of tiny
electromagnets and are designed to ride on a microscopic cushion of air, without
touching the platter. They register bits from the magnetic coating, which races
past them. When such heads are fastened to an arm in a disk storage device,
they can be moved quickly and directly to any disk location to store or retrieve
data.
Access Time
In order to access a record the read-write head has to first move to the track on
which the record lies and then wait for that record to pass under it. Thus, the
access time will depend on two factors, viz.,:
Seek time which is the time taken by the read-write head to move to the
specified track. Because neither the starting position of the head nor the
distance from there to the desired track is fixed, seek time varies greatly,
and it is almost always measured as an average seek time.
Rotational latency which is the time required for the specified portion of
the track to move under the head.
Access time is simply the sum of the seek time and the latency.
The external data rate is the speed with which the drive can transfer data
from its buffer to the host computer system.The time required for reading a
record will be equal to the time taken to access the record plus the time taken
to transfer data between disk storage and primary memory (data transfer time).
Thus we can say that,
ii) Check your answer with the answers given at the end of this Unit.
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
.........................................................................................................................................
This blend of the advantages of hard disks and floppies will, no doubt,
revolutionise mass storage in the near future.
Magneto-optical Disks (read/write/erasable) are often confusingly
categorised as optical disks because lasers are used to read data as well
as to facilitate writing data. However, the data is stored magnetically in
microscopic “magnetic domains”. When the high-power laser heats the
magnetic storage film, the domains can be aligned in higher densities
than on regular magnetic disks, thus giving higher storage capacity than
hard disks. Data is retrieved by reflecting a low-power polarised laser
beam off of the magnetic film. The polarisation of reflected beam can be
interpreted as binary data.
Magneto-optical disks are removable and have removable gigabyte
storage capacities, which could be up to 20 GB.
The read/write capability of these disks is currently compromised by its
relatively slow access time compared to hard disks. 133
Introduction to Computer Optical Disks
Technology
Optical disks supplement the magnetic media. They have clear advantages in
the areas of data density and stability: Data can be packed much more densely
in optical media than in magnetic media. And optical disks have much longer
life span.Tiny pits, visible only under a microscope, are burned or pressed into
a thin coating of metal or other material deposited on a disk. Data is encoded
on the disk surface by a laser beam either by burning holes or heating the
surface until bubble forms. Data, text, audio signals and video images are
stored as digitised patterns in frames. Data is read with a very thin and very
precisely aimed laser beam. Digital data is represented as a series of Pits (a
little depression, forming a lower level in the track) and Lands (the flat part
between pits, or the upper levels of the track). The storage capacity is around
650 MB.
Land Pit Land Pit Land
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 00 1 0 0 0 0 0 0
Fig. 4.10 : Digital Data
Optical Device
CLV = Constant Linear Vel
Sectors are organised along
These tapes are a quarter inch wide and are sealed in a cartridge much like an
audio cassette tape. Unlike a half-inch tape discussed in section above, these
tapes record information serially in a track with one head. When the end of the
tape is reached the tape is rewound and data is recorded on the next track.
There are 9 to 30 tracks and data is recorded in a serpentine fashion. Data bits
are serially arranged on a track. Blocks of around 6000 bytes are written, on
the tape, followed by error-correction code to enable correction of data on
reading if any error occurs. The density of these tapes is around 16000 bpi in
modern tapes. A tape stores around 500 Mb. These tapes are usually interfaced
to a computer using SCSI standard.
Digital Audio Tapes (DAT)
This is the latest addition to the tape family. This uses 4 mm tape enclosed in
a cartridge. It uses a helical scan, read after write recording technique which
provides reliable data recording. Helical scan records at an angle to the tape.
The head spins at a high speed while the tape moves. Very high recording
densities are obtained with these devices. The tape length is either 60 metres
or 90 metres. It uses a recording format called Digital Data Storage (DDS),
which provides three levels of error correcting code to ensure excellent data
integrity. The capacity of this tape is upto 4 GB with a data transfer speed of
366 KB/sec. This tape also uses SCSI interface.
4.8 SUMMARY
In this Unit you have learnt some basic concepts concerning computer systems.
The concepts that you have learnt are computers, components of a computer
system, memory organisation, and different secondary storage devices. The
basic computer configuration comprises the central processing unit, input
devices, output devices and storage devices. The central processing unit
comprises an arithmetic and logic unit, a control unit and the primary memory.
Input devices are used to enter data into the computer. Output devices such as
monitors and printers allow information to be output from the system. Primary
memory helps to store data and programmes required by the computer. As it is
volatile in nature, we require a more permanent means of storing data.
Secondary storage devices help in this regard. We classified the secondary
storage devices broadly into two categories, viz., sequential-access media and
direct access media. You have studied the principles of sequential access devices
and learnt how data are stored and accessed from a magnetic tape. To understand
the principles of direct access devices, you studied magnetic media (hard disks,
removable hard disks, and floppies), and magneto-optical and read/write optical
media (CD-ROM, DVD, DVD-RAM, and DVD+RW). On the whole, the Unit
enables to understand the basic aspects relating to computer hardware.
4.10 KEYWORDS
Application Software : Application programs are written individually
to operate specific tailor-made procedures and
to solve specific problems.
Bit : Abbreviated from Binary digit. A smallest
unit of information or storage represented in
the memory as 0 or 1.
Byte : Group of 8 bits is normally called a byte.
Generally, a character is represented in one
byte.
CD-ROM : An abbreviation for Compact Disk-Read Only
Memory. An optical storage device used as a
ROM of high capacity.
138
Central Processing : The Central Processing Unit, often called Hardware
Unit (CPU) processor or just CPU, comprises Control
Unit, the Arithmetic and Logic Unit (ALU),
and the Primary Memory.
Data : A general expression used to describe any
group of operands or factors consisting of
numbers, alphabets or symbols which denote
any condition, value or state.
Floppy Disk : It is a relatively small, flexible magnetic disk
that is enclosed in a stiff protective envelope
and is widely used as backing store device.
140