FOC CH 1,2
FOC CH 1,2
Introduction
miXture ofboth.
BODeca ora
ofen referred to as a data processor because can store, process, and retrieve data whenever
it
e narme data processor is more inciustve because moden computers not only compute in the l
t lso
anons incoming sources, merge (process of mixing or putting together) them all, sort (process
data from varit
cher
and finally print them in
ir
in some sequence ascending or descending) them in the desired order,
Fgure L.I.
Cunuter Dupt Tnfermati
ished peet
(Raw mteriah
CHARACTERISTICS OF COMPUTERS
and useful tool. The power and usell
hreasing popularity of computers has proved that it is a very powerful
of this popular tool are mainly due to its following characteristics
e
and work on a problem without any hun
peed and accuracy) are because they are automatic
intervention.
seconds, the amount of work that
2. Speed. A computer is a very fast device. It can perform in a few
night and did nothing clse. In othe
human being can do in an entire year- if helshe worked day and
words,a computer can do in a few minutes what would take a man his entire lifetime
While talking about the speed of a computer we do not talk in terms of seconds or even milliseconds
1 Aceuracy. In addition to being very fast, computers are very accurate. Accuracy of a computer is
consistently high and the degree of its accuracy depends upon its design. A computer performs every
calculation with the same accuracy.
rather than technologicat
However, errors can occur in a computer. These errors are mainly due to human
(a person who
weaknesses.For example, errors muy occur due to imprecise thinking by a programmcr
a
writes instructions for a computer to solve particular problem) or incorrect input data. We often refer to
progams as garbage-in-garbage-og
computer errors caused due to incorrect input data or unreliable
(GIGO.
Diligence. Unlike human from monotony, tiredness, and lack of concentration
beings, a computer is free
4.
can continuously work for hours without creating any error and without grumbling. Hence,
computeny
It
of jobs that require great accuracy. If ten million
score over human beings in doing routine type
the last one with exactly the same accuracy
caleulations have to be performed, a computer will perform
and speed as the first one.
Versatility. Versatility is one wonderful things about a computer. One moment it is preparing
of the most
5.
results of an examination, next moment it is busy preparing electricity
bills, and in between, it may be
All that is required to change its talent
helping an office secretary to trace an important letter in seconds.
sio sin in a new program (a
is
Power of remembering. As a human being acquires new knowledge, his/her brain subconsciously sclects
What it feels to be important and worth retaining in memory. The brain relegates unimportant details to
dndo jd
o niete
t
forpees thets
becmuse ecary
the cae Thie
skn s i
comters A omguter can slere and cll
tse of detachihle oge a
he
hald
a eee infonation
reqne Een aftes everal vears, s
iethe copte eveal years
& desies and the
n copet
NE
CaR recall exucly the
et the infoa
maton hat hefshe
m
mat
ks i os A forgets oe looses certain snfor
HecE, is etirely up to the user to make a conptet retain only een n
or forget some
Ne feelings Compters are devoid of emoions They have no feelings and to snstincts because they
are
hines Althgh men have sccoeded in building a menory fot computer, buttno conputet
n
qualent ot a human beart and Noul Rased our feelines te
tn ence we
e
make certan judgeents in our day to-day life whereas,computers cannot make such judgements
their own They make judgement based on the instructions given to them in the form of
programs that
a Winen by us (human beings).
Characteristics Deseription
Speod MiIS It can perform several bilion (10, even trillion (0), simple arithmetic
operations per sccond
Versatility
It can pertormawide variety of tasks
t can stone huge amount of information and can recallany piece ofthis information
Menory
whenever rcquired
EVOLUTION OF COMPUTERS
Necessity is the mother of invention. The saying holds true for computers too, Researchers invented computers
becae
eofmun's search forfast and accurate calculating devices.
COMPUTER GENERATIONS
-Generation" in computer talk provides a
framework for the growth of computer
industry based
technologies developed. Originally, it was used to
distinguish between hardware technologies but
extended to include both hardware and software technologies.
The custom of
totally five computer
referring to computer era
in terms of generationscame into wide use only afer 1964
during the five generations of computers and not to explain them in detail. Hence, this section provites
electronics and could control and amplify electronic signals. It was the only high-speed electronic switchir
device available in those days. These vacuum tube computers could perform computations in milliseconds an
of Pennsylvania. USA
The Electronic 1946-52 John von Neumann It was the fist computer based on stored program concept it could also sore
Discrete Variable botn instructions and data in binary form instcad of decimal mumbers or hua
readable words
AutomaticComputer
(EDVAC)
1947-49 A group of scientists It could add two numbers in 1S00 microsecondsand maltiply them in 4000
The Electronic Delay
headed by Maurice microseconds
Storage Automatic
Wilkes of Cambridge
Calculator (EDSAC)
University Mathematical
Laboratory
firs inallatn
It was the firstcomputer that was not "one of a kind" its
digital
1951 UNIVAC Corporation 10 yearsc its first business se
was in the Census Bureau, which was used for
The Universal
and scienfic
available digital computer for husiness
was another commercially
Intemational Business It
1952
IBM-701 (IBM) applications
Machines
Corporation its re thn 10 anits
3. They used thousands of vacuum tubes that enitted amount of heat and
large
burntout
therooms/areas in which these computers were located had to be properly
airconditioned.
frequesty
Each vacuum tube consumned about half a watt of power. Since a computer
4.
typically Use
thousand vacuum tubes, power consumption of these computers was very high.
5. Asvacuum tubes used filaments, they had a limited life. Because a computer used
tubes, these computers were prone to frequent hardware failures. thousandsot
6. Due to low mean time between failures, these computers required constant maintenance
8, Since these computers were difficult to program and use, they had limited commercial ne
properties:
invented a new
1947.Transistors soon proved to be
electronic
a better electronic :
switching device callt.
switching
1. They were more rugged and easier to handle than tubes since they were made
of
semiconductormaterial rather than glass. germatin
They were highly reliable ascompared to tubes since they had no parts like a
2.
filament that could hur
3. They could switch much (almostten times faster)
faster than tubes. Hence, switching circuits md
transistors could operate much faster than their counterparts made of tubes.
4. They consumed almost one-tenth the power consumed by a tube.
5. They were much smaller than a tube.
6. They were less expensive to produce.
used in second-generation
computers Users still used punched cards
widely
Figure 1.4. Electronics devices used for manufacturing computers of different generations.
ChapHer li lnisi
Hence, third-generationcomputers were more powerful, more reliable, less expensive, srnaller,
and
operate than second-generationcomputers. cooe
Parallel advancements in storage technologies allowed construction of larger magnetic core based rand
memory as well as larger capacity magnetic disks and tapes. Hence, third-generation computers typicale
megabytes (less than 5 Megabytes) of main memory and magnetic disks capableof storing few tens of
of data per disk drive. regaby
BASIC.
their dat
Second-generation computers used batch operating system. In those systems, users had to prepare
The operator at the computer centre enll
nrograms and then submit them to a computer centre for processing.
users then col
in batches at scheduled intervals. The respective
these user jobs and fed them to a computer
from this batch processing ann
iob's output from the computer centre. The inevitable
delay resulting
their
another in rapid succession and execute a small portion of each job in allocated time slice until the
mpleted. Each user gets the illusion that he/she alone is using the computer. Introductionof timesharingc
elped in drastically improving the productivity of programmers and made on-line systems feasible, esul
new on-line applications like airline reservation systems,interactive query systems, etc.
Cope Ce
Whee IBM and othet computer manufacturersbegan to price their hardware and software products separately
This unbundling of softwarefrum hardware gave users an to invest
n
Another important conicept introduced during was that of backward compatible family of
third-generation
oomputers. Durnng this period, IBM introduced its System 360 as a family of computers with backward
compatibiliny as they were different sizes of mainframe systems based on the same machine language. This
enabled businesses to upgrade their computers without incurring costs of replacing peripheral cquipment and
modifying programs to run on new systems
Develomentwere
and introduction of minicomputers also took place during third generation, Computers built until
early 1960s
maintrame systems that only very large companies could afford to purchase and use. Clearly, a
heed existed for
low-cost smaller computers to fil the gaps left by the bigger, faster, and costier mainframe
systems.Several innovators recognized this nced and formed new firms in 1960s to produce
Smallercomputer.
Digital Equipment Corporation (DEC) introduced the fist commercially available minicomputer, the PDPS
(Programmed Datan Processor), in 1965. It could casily fit in the corner of a room and did not
require attcntion of a
full-ime computer operator. It used timesharing operating system and a number of users could access
simultaneouslyfromdifferent locations in the same building, Itscost was about one-fourth the cost of a traditional
maintrame system making it possible for smaller conpanies to afford computers.It confimed the tremendous
demand for
Small computers
for business and scientific applications, and by 1971, there were more than 25
computer manufacturersin minicomputer market.
1. They were more powerful than second-generation computers.They were capable of pertorming about 1
million instructions per second.
5. They had faster and larger primary and secondary storage as compared to second-generationcomputers.
6. They were general-purposemachines suitable for both scientific and commercial applications.
7. Their manufacturing did not require manual assembly of individual conponents into electronic circuits
resulting in human labor and cost involved at assembly stage. Hence, commercial
productionof
these systems was easier and cheaper. However, highly
sophisticated technology and expensivesetup was
required for the manufacture of IC chips.
8. Standardization of high-level programming languages allowed programs written for one computer to be
casily ported to and executed on anotherrcomputer.
9. Timesharing operating system allowed interactive usage and simultaneous use of these systems by
multiple users.
10 Chapt
inproving he
belped in
drastically
oerating systenm
several fold
prodeey
10 Timesharing development by
eot of program
down the time and on line sydem feasihle resing
also made sytem
operating
11 Timesharing
new online applications
user of
hese yteme an
hardware gave
of sofware from
12 Unbundling
of their need and value
software
made compulers aflordable even saller
by
of third-generation
13 Minicomputers
(1975-1989)
Fourth Generation
on a silicon chip dubled each year after
of electronic components packed 195 T o
Averagenumber (US)when it was possible
integrate over
integration
soon led to the
components on a
about one million
era of large-scale
single chip, followed
electronic componcnts
by very-large-scale integration
on single chip.
osare tent seveal new developmentsemetged to manch he new technologies of fourth generation, For
ple, vens devekyed several new A Nocable ones atone were MS-DOs
SWws
essas onpaes
and Aple's non OS Sice PCs o
wene for individuals who were not computer
graphical user interfaces foeiaking eomputers none ser friendly (easerto
developd
Aphicalaeiee (GUn pvides ions (pictures) and menus (list of choices) that sers can select
Ah a mose Nmaufacturers and aplication sotware developers PC-based
co developed several new
make PSa powerfal tool Nocable among these were powerful wond processing packages that
wel casy developmentefdocuments, sprcadsheet package that allowedcasy manipalationand analysis of data
pni colusand rows and graphics packages that allowed casy drawing of pictures and diagrams.
ber ve scful concept that became popular during fourth-generation was that of multiple windows on a
ingle terminal screen This feature allowed sers to see the status of several applications simultaneously in
enarae idows on sameterminal soreen.
the arca of sofware for large-scale computers, key technolegies that became pogularincluded mulipneessing
eaing sytems and concurent programming languages With maltiprocessing operating systems, a matnirame
Sstem could ese multiple processors (a main procesorand several subondinate processors) in such a manner that
be subordinate processors could manage the user terminals and peripheral devices, allowing the main processrto
nceerste on he main performance. Supercomputers also used
processing
pOnom
abprocessing operating systemn to extract the best
the overall
the lange number ot p cessors used in
hese systems Concuent programing languagesfurther belped in effectively using the multiprocessine
capabiliies of these systems by allowing programmers to write their applications in such a way that different
processons coald execute parts of theapplication in paalel. The most ambitiouslanguage of this type was ADA.
During fourth-generation, theUNIN operating system also became very popular for use on large-scale systems.
Additiocally, due to proliferation of computer networks,seveal new features were included in existing operating
systemsto allow maltiple computerson the same networkto communicate with cach other and shareresources
4 They were more reliable and less prone to hardware failures than third-generation computers equiring
neglhgible maintenance cost
5. They had faster andlarger primary and secondary stomge as compared to thind generation computers.
7 Their manufacturing did not require manualassembly individual components into electronic circuits
of
reduced human labor and cost involved at asembly stage. Hence, commercial production of
resulting in
these systems was easier and cheaper. However, highly sophisticated technology and expensive setup was
required for manufacturing LSl and VLSl chips
8 e
exile
o stndant hah
ied
pgnia
ad eeed otaher
languagea
emer
level
r
al
re
myler e at erhically
is one eh
applcatien in which
with each oier
lcations
mliple montbers working on a siogle Irking
Iy sing a newok of eomute
Due to this fast pace of advancement in computer technology, we see more COmpact and nore
poWet
computers being introduced almost every year at more or less the same price or even cheaper, Notable
hese are porrable notebook computers that give the power of a PC to their users even whiletaveling, b
lesktop PC% and workstations, powerful servers, powertul supercomnputers, and handheld computers. (see Ch
C0 for a detailed description of these types of computers).
Storage technology also advanced making larger main memory and disk storage available in newly intood
ystenms. Curently, PCs having few Gigabytes (GB)of main memory and 80 to 320 Gigabytes (GB) of huta
capacity are comnon, Similarly, workstations
having 4 to 64 Gigabytes of main memory and few hundre
igabytes of hard disk
capaciy common. KAID (Redundant Array efnepensive Disks) technology enab
are
configuration of a bunch of disks as a single large disk. It, thus, supports larger hard disk space with
better in
reliability. During fifh generation, optical disks (popularly known as Compact Disks or CDs) emerged as a
popular portable mas storage media.
Nue
ey
rihuted
These syxtems
theim in arallel
on
use parallel
multiple processors
for communication,
whereas
Processors
of he system. those of a distributed memory
memory parallel computers
have
by
access mechanism Distributed and are now built
se memory for communication.
memory parallel
computers, This is
passing mechanism
silee
execute a program developed for one parallel computer on other parallel computers.
parallel MPI is used for
distributed memory parallel computers and PVM is used for shared memory parallel computers.
1. Portable PCs (called notebook computers) are much smaller and handy than PCs of fourth generatior
allowing users to use computing facility even while travelling.
Key hardware Key aofiware Key
(ieneatan lechnalgles harsctiitie
fechnologles
(Pelod)
ditficalt use
Second
Tranistos, magnote
progmning lanyuag, UNIVAC LARC
and disks secondary
seientifie nd conmecal
anetic lapes
(955 196) costly
storae
applicalon
oe elable, esier
snd BM IO,PDP8,
saller,
syslem:
Timesharjg operainjg aeaner lo uce comercially asi
IC wih SSt and MSt echnaloges of high level
than previous
eoy e, and eaiet tu upprle
Thind Mandardization
larger
lager manetie core pogmning langunges, sclentific, cümecial
(19641975)
nagnetie disks and
tapos
om encom systems;
capacity unbundlin of soflwae and interactive on line applicalions
stoage, minieonpiles ches
secondary
hardwaro IBM PC and its
verypwerfuli maietames,
very high uptime
memory. larger
muhithveading, ant mulicore general
supercomputers
readnly due to hot pluggable cononcntsi
diske as portable
optical systems,JAVA to produce
sorage edia, notebook
conputers operating
purpose chines, easier
ing language,MPi
and
owerd desktop PCs and eaies
PVM for parallel
commecially
workstations
maintranes: prgrmming
very powrul
on parallel
supeconputers based
ocesin
the lntenet
Computer generations-Asummary.
Figure 1.6.
CHAPTEA
have been
Even though the size, shape, performance, reliability, and cost of computers
several yeas, the basic logical structure(based on the stored program concep),as proposed by
as not changed. No matter r what shape and size of computer we aretalking about,
all
changing over
Vo6
computer
hefollowvingfive basicfunctions for converting raw input data into useful information and
systerms e
presenting
1. Inputing, It is the process of entering data and instructions into a computer system.
2. Storing.It is the process of saving data and instructions to make them readily available
for in
additionalprocessing as and when required.
3. Processing. Performing arithmetic operations (add, subtract, multiply, divide, etc.), or lowi
(comparisons like equal to, less than, greater than, etc.)on data to convert them into useful ope
al
athe
ie busic systems.
exercsed
by
o
Functions of
Storage unit eachof contl
tee
Secondary
Input storage
and data unit Output
Poirate Primary
storage
Inforration
(Resalts)
Control
Unit
Arithmetic Indicates
Logic Unit floeof
instructons
and
data
Indicates
Central the
Processing Unit (CPU) exercised bycontrol
control unit
Elaure 2.1.
BasiC
organizatonof a computer
system
INPUT UNIT
must enter a computer system
Data and instructions before the
ied data. The input unit that links a
computer with its comnputercan
enter computer through an input unit
a external perform any
actions in a
form environment computation on
ecample, data
can be entered using a keyboard in a that
depends upon performs this the
mannet task. Data
data is
entered through a
scanner, another type of similar to the input and
Wbich
input typing and device used.
accept input
in binary code and hence, all input device.
However, a
this
differs from
For
devices must the way
alled inpt interfaces
accomplish this
transformation. Input transforminputcomputer's memory is in
signals to designed
of input devices to the interfaces match
chiracteristics requirements of a the unique binary codes. Units
computer physical
system. or electrical
short, an input unit performs following functions:
UTPUT UNIT
output unit performs the reverse operation of that of an input unit It supplies information obtained from dat
ncessing to outside world. Hence, it links a computer with its external environment. As compuien Wok w
hry code, results produced are also in binary form, Therefore, before supplying the results to outside worid, the
form. Units callcd opur
intertu
theI uman acceptabie(readable) of
ccoti
Ksem must eovet to etrical characteristies output
or electr devicces (te
interfaces match the unique physical
task utgat
to the requiements
of an external environment.
printers, etc)
than.
dpreater
UNIT
(CU)
CONTROL data once it receives them.
with the
be done device and not the intermediateMoreover,how it
should output is that
what to an results? All the
eALUknowresults foroutput this is computer
only the system. possible due
tothe
ends computer
unit
ofthe any actual processingofjobs, but
control
not perform acts as
the central
unit does system. It manages and coordinates the
control
computer in operations
main memory, interprets the nevous system
of the
of all
A computer's stored other
components a program
for other from them instructions, and components.
instructions to execute issues
obtains system signals
t the
units of
other
CaUsing
UNIT (CPU)
CENTRAL PROCESSING
logic unit (ALU) computer system are
of a
computer
system.
THE SYSTEM
CONCEPT
that we
have been referring to a computer as a system (computer system).
You might
a
have observed
system a group of
is
integrated i parts having a common purpose :
of achieving some objective(s).
This
Hence-
because
characteristics:
systerm has following three
element.
It has more than one
1.
2 All its elements are related logically.
All its elements are controlled in a manner to achieve the system goal.
3.
and CPU
Since a campier has integrated Icnponents outpt unit, stoage nit,
(input unit,
output nits
o perf e steps cafled tor in an system Input and
executinE prugram,itiss ue.tefulo
or CPU alone is of o
they receive signals fom the CPU Similarly, atsge unit
units to form syslerm
onoer a
Points to Remember
f Tot
e processing
of
utput resulte
basic furctins for converting aw input data into primary storage, secondary rsye
useful information operation, larger in capacity cheatey
oring processing,
and con can retain information even hen
uputtinL,
switches off or resets.
2 Pigure 2.1
bystem
shows the main components of a computer
8. During data processing. actual
instructions takes place in the
3. Inpat unit enables feeding of data and instructions o ALU) )ofa computersystem. Arihmeie L
computer system from outside world in compuler
a
Questions
organization of a computer system and explain the computer system? List the main functions
component.
o
functions of various units.