Introduction To Computer
Introduction To Computer
1.0 Objectives
1.1 Introduction Computer?
1.2 Evolution of Computers
1.3 Classification of Computers
1.4 Applications of Computers
1.5 Advantages and Disadvantages of Computers
1.6 Similarities Difference between
computer and Human
1.7 A Computer System
1.8 Components of a Computer System
1.9 Summ ary
1.10 Check your Progress - Answers
1.11 Questions for Self Study
1.12 Suggested Readings
1.0
OBJECTIVES
After studying thi s chapter you will be able to:
Learn the concept of a system in general and the computer system in
specific.
Learn and underst and how the computers have evolved dramatically wit hin
a very short span, f rom very huge machines of the past, to very compact designs
of the present with tremendous advances in technology.
Understand the general classifications of computers.
Study computer applications.
Understand the typical characteristics of computers which are speed,
accuracy, efficiency, storage capacity, versatility.
Understand limitations of the computer.
Discuss the similarities and diff erences between the human and the computer.
Understand the Component of the computer.
1.1 INTRODUCTION-
Computer
Today, almost all of us in the world make use of computers in one way or the
other. It finds applications in various fields of engineering, medicine, commercial,
research and others. Not only in these sophisticated areas, but also in our daily lives,
computers have become indispensable. They are present everywhere, in all the dev
ices that we use daily like cars, games, washing machines, microwaves etc. and in day
to day computations like banking, reservations, electronic mails, internet and many
more.
The word com puter is derived from the word compute. Compute means to
calculate. The comput er was originally defined as a super f ast calculator. It had the
capacity to solve complex arithmetic and scientific problems at very high speed. But
nowadays in addition to handling complex arithmetic computations, computers perform
many other tasks like accepting, sorting, selecting, moving, comparing various types of
inf ormation. They also perform arithmetic and logical operations on alphabetic, numeric and
other types of information. This information provided by the user to the computer is data.
The information in one form which is presented to the computer is the input inf ormation
or input data.
The set of instructions given to the computer to perf orm various operations is
called as the computer program. The process of converting the input data into the
required output form with the help of the computer program is called as data
processing. The computers are therefore also referred to as data processors
Theref ore a computer can now be def ined as a fast and accurate data
processing system that accepts data, performs various operations on the data, has the
capability to store the data and produce the results on the basis of detailed st ep by step
instructions given to it..
The terms hardware and software are almost always used in connection with the
computer.
The Hardware:
The hardware is the machinery itself. It is made up of the physical
parts or devices of the computer system like the electronic Integrated Circuits (ICs),
magnetic storage media and other mechanical devices like input devices, output
devices etc. All these various hardware are linked together to form an eff ective f unctional
unit. The various types of hardware used in the computers, has evolved from vacuum
tubes of the first generation to Ultra Large Scale Integrated Circuits of the present
generation.
The Software:
2. Answer in brief.
a. Define a computer.
.............................................................................. ..........................
.....
.............................................................................. ..........................
.....
b. What is software?
............................................................................ ............................
.....
....................................................................................... ..................
.....
Computer Fundamentals/ 2
1. 2 EVOLUTION OF
COMPUTERS
The computers of today are vast ly different in appearance and performance as
compared to the computers of earlier days. But where did this technology come from and
Where is it heading? To fully understand the impact of computers on todays world and the
promises they hold f or the f uture, it is important to understand the evolution of computers.
The Abacus, which emerged about 5000 years ago in Asia Minor and is still in use
today, allows users to make com putations using a system of sliding beads arranged on a
rack. Early merchants used Abacus to keep trading transactions.
Abacus
Pascaline Fig. 1.2 the first Generation Computers
Computer Fundamentals/ 4
1.2.2 The Second Generation:
In the second generation computers:
Vacuum tube technology was replaced by transistorized technology,
Size of the computers started reducing,
Assembly language started being used in place of machine language,
Concept of stored program emerged,
High level languages were invented.
Later, even more components were fitted onto a single chip, called a
semiconductor. This reduced the size even further. The weight and
power decreased and the speed increased tremendously. Heavy
consumption of computers
emphasis was given to the development of software. Operating systems were designed
which allowed the machine to run many different programs at once. A central program
monitored and co-ordinate the computer s memory. Multiprogramming was made
possible, whereby the machine could perf orm several jobs at the same time. Computers
achieved speeds of executing millions of instructions per second. Commercial
production became easier and cheaper. Higher level languages like Pascal and Report
Program Generator (RPG) were introduced and applications oriented languages like
FORTRAN, COBOL, and PL/1 were
developed.
1.2.4. The Fourth Generation:
The general features of the f ourth generation computers were:
Use of Very Large Scale Integration,
Invention of microcomputers,
Introduction of Personal Computers,
Networking,
Fourth Generation Languages.
The third generation computers made use of Integrated Circuits that had 10-
20 components on each chip, this was Small Scale Integration (SSI).
The Fourth Generation realized Large Scale Integration (LSI) which could fit
hundreds of components on one chip and Very Large Scale integration (VLSI) which
squeezed thousand of components on one chip. The Intel 4004 chip, located all the
components of a computer (central processing unit, memory, input and output controls)
on a single chip and microcomputers were introduced. Higher capacity storage media like
magnetic disks were developed. Fourth generation languages emerged and applications
softwares started becoming popular.
Computer production became inexpensive a n d the era of Personal
Computer Fundamentals/ 6
Computers (PCs) commenced. In 1981, IBM int roduced its personal computer for use
in of fice, home and schools. In direct competition, the Macintosh was introduced by
Apple in 1984. Shared interactive systems and user friendly environments were the
features of these computers.
As the computers started becoming more and more powerful, they could be
linked together or networked to share not only data but also memory space and
software. The networks could reach enormous proportions with local area networks. A global
web of computer circuit ry, the Internet, links the computers worldwide into a single
network of information.
1. 3 CLASSIFICATION OF
COMPUTERS
Computers are broadly classif ied into two categories depending upon the logic
used in their design as:
Small Computers:
I) Microcomputers: Microcomputers are generally referred to as Personal
Computers (PCs). They have Smallest memory and less power. They are widely used
in day to day applications like office automation, and prof essional applications, ex. PC-
AT, Pentium etc.
II) Note Book and Laptop Computers: These are portable in nature and are
battery operated. Storage devices like CDs, floppies etc. and output devices like printers
can be connected to these computers. Notebook computers are smaller in physical
size than lap top computers. However, both have powerful processors, support
graphics, and can accept mouse driven input.
Microcomputer
Computer Fundamentals/ 8
Hybrid Computers: Hybrid Computers are a combination of Analog and Digital
comput ers. They combine the speed of analog computers and accuracy of digital
computers. They are mostly used in specialized applications where t he input data
is in an analog form i. e. measurement. This is converted into digital form for further
processing. The computers accept data from sensors and produce output using
conventional input/output devices.
Mini Computers: Mini computers are more powerful than the micro computers. They
have higher memory capacity and more storage capacity with higher speeds. These
computers are mainly used in process control systems. They are mainly used in
applications like payrolls, financial accounting, Computer aided design etc. ex. VAX,
PDP-11
Mainframe Computers: Main frame comput ers are very large computers which
process data at very high speeds of the order of several million instructions per second.
They can be linked into a network with smaller computers, micro computers and with
each other. They are typically used in large organizations, government departments etc.
ex. IBM4381, CDC
Super Computers: A super computer is the fastest, most powerf ul and most expensive
computer which is used for complex tasks that require a lot of computational power.
Super computers have multiple processors which process multiple instructions at the
same time. This is known as parallel processing. These computers are widely used in
very advanced applications like weather f orecasting, processing geological data etc.
ex. CRAY-2, NEC - 500,
PARAM.
1.4 APPLICATIONS OF
COMPUTERS
Today computers find widespread applications in all activities of the modern world.
Some of the major application areas include:
1.4.2 Business:
Record keeping, budgets, reports, inventory, payroll, invoicing, accounts
are all the areas of business and industry where computers are used to a great
extent. Database management is one of the major area where computers are used on a
large scale. The areas of application here include banking, airline reservations, etc. where
large amounts of data need to be updated, edited, sorted, searched from large
databases.
1.4.3 Medicine:
Computerized systems are now in widespread use in monitoring
patient data like , pulse rate, blood pressure etc. resulting in faster and accurate
diagnosis. Modern day medical equipment are highly computerized today. Computers
are also widely used in medical research.
1.4.4 Information:
This is the age of inf ormation. Television, Satellite communication, Internet, networks
are all based on computers.
1.4.5 Education:
The use of computers in education is increasing day by day. The students
develop the habit of thinking more logically and are able to formulate problem solving
techniques. CDs on a variety of subjects are available to impart education. On line
training programs f or students are also becoming popular day by day. All the major
encyclopedias, dictionaries and books are now available in the digital form and therefore are
easily accessible to the student of today. Creativity in drawing, painting, designing,
decoration, music etc. can be well developed with computers.
1.4.6 Games and Entertainment:
Computer games are popular with children and adults alike. Computers are
nowadays also used in entertainment areas like movies, sports, advertising etc.
1.5.2 Accuracy:
1.5.3 Efficiency
The efficiency of computers does not decrease with age. The computers
Computer Fundamentals/ 10
can perform repeated tasks with the same efficiency any number of times without
exhausting there selves. Even if they are instructed to execut e millions of
instructions, they are capable of executing them all with the same speed and efficiency
without exhaustion.
1.5.5 Versatility
Com puters are very versatile. They are capable not only of
perf orming complex mathematical tasks of science and engineering, but also other non-
numerical operations fielding air-line reservation, electricity bills, data base management
etc.
Limitations of
Computers: Although the computers of today are highly intelligent and sophisticated
they have their own limitations. The computer cannot think on its own, since it does not
have its own brain. It can only do what is has been programmed to do. It can execute
only those jobs that can be expressed as a finite set of instructions to achieve a specific
goal. Each of the steps has to be clearly def ined. The computers do not learn from
previous experience nor can they arrive at a conclusion without going through all the
intermediate steps. However the impact of computers on todays society in phenomenal
and they are today an important part of the society.
# Like human beings has ears, Computers have input devices such as keyboard,
nose, eyes etc. scanner, t ouch screen, mouse etc to get information.
#We recollect certain information The computer also retrieves information when times,
as required.
The computer has storage devices like floppies, hard disks, compact disks to store
and retrieve information.
a. Keyboard is
(i) Input device (ii) CPU
(iii) Output dev ice (iv) Storage device
1. 7 A COMPUTER
SYSTEM
Any system is defined as a group of integrated parts which are
Computer Fundamentals/ 12
designed to achieve a common objective. Thus, a system is m ade up of more than
one element or part, where each element performs a specific f unction and where all the
elements (parts) are logically related and are controlled in such a way that the goal
(purpose) of the system is achieved.
1. 8 COMPONENTS OF A COMPUTER
SYSTEM
Input Unit
The Central Processing Unit
Output Unit
Input ices are the dev ices which are used to feed programs and data to the
computer.devThe input system connects the external environment with the computer
system. The input dev ices are the means of communication between the user and the
computer system. Typical input devices include the keyboard, floppy disks, mouse,
microphone, light pen, joy stick, magnetic tapes etc. The way in which the data is fed into
the computer through each of these devices is diff erent. However, a computer can
accept data only in a specific f orm. Therefore these input devices t ransform the data
f ed to them, into a form which can be accepted by the computer. These devices are a
means of communication and inter 1 station between the user and the computer systems.
Computer Fundamentals/ 14
1.9
SUMMARY
A computer is a f ast and accurate data processing system which
accepts data, performs various operations on the data, has the capacity to store data and
process the data with the set of instructions given to it. The data is the information
provided by the user to the computer and the set of instructions to perform the operation
on data is the computer pro- gram.
The hardware of the computer is the physical parts of the machine like
monitor, keyboard, disks etc. whereas the sof tware is the various programs, procedures
and other documentation which is used to operate the hardware efficiently.
Classif ication of computers done on the basis of the logic used in their
design as analog and digital computers. Analog computers recognize data as a
continuous movement of a physical property. Digital computers recognize data a
series of discrete signals representing high or low voltage state of electricity. Hybrid
computers are a combination of analog and digital computers. Digital computers are further
classified according to their speed and capacity of memory and size as micro computers,
notebook or laptops, Mini computers, Main frames and Super computers.
The typical characteristics of the computer are its superfast speed, the
accuracy of each and every calculation, and its consistent efficiency. It has tremendous
storage capacity and can store large volumes of data. It is versatile in the sense that it
can be used in a vast range of applications from complex scientific problems to a
childs game. A system is a group of integrated elem ents which are logically related to
achieve the goal of the system each element performs a specific task assigned to it.
Input Unit: which accepts input data The Central Processing Unit: This is made up of the
Control unit, the Arithmetic and Logic Unit and the Primary Storage Unit. This unit
controls the entire computer syst em.
Output Unit: This unit gives the results of the computation to the user. The evolution or
development of computers is characterized by generations of computers. The first
generation had very large and complex machines which made use of the
vacuum
tube technology. Invention of transistors in the second generation reduced the size of the
computers and the concept of stored program emerged, as well as higher level languages
were introduced. The third generation was characterized by Integrated Circuits and
commercial production of computers. The fourth generation saw the invention of
microcomputers with Very Large Scale Integration, Networking and introduction of
personal computers. The fifth or the present generation has seen advances in parallel
processing and superconductor technologies.
Computers today, find applications in vast and varying fields like scientific,
engineering and research, medicine and business, education and games, entertainment.
The computers however have a serious drawback that they can only do what
they
are programmed to do since they have no brain. They cannot arrive at a conclusion
without going through all intermediate steps.
1.2
1. a- (iii)
b- (iv)
c - (i)
d- (ii)
e- (v)
2.
a) True
b) False
c) True
d) True
e) False
1.3
1. a) Microcomputer b) Hybrid Computer c) Digital
1.6
1.
a) - i) input device
b) - iii) central Processing unit
1.
a) Main Memory
b) Central Processing Unit
c) Output Unit
2.
a) A system is defined as a group of integrated parts which are designed to
achieve a common objective. Thus, a system is made up of more than one element or
part, where each element performs a specific function and where all the elements (parts)
are logically related and are controlled in such a way that the goal (purpose) of the system is
Computer Fundamentals/ 16
achieved.
b) The f unctions of the input unit are :
i) Accept information (data) and programs.
ii) Convert the data in a form which the computer can accept.
iii) Provide this converted data to the computer for further processing.
1. 12 SUGGESTED
READINGS
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
REFERENC
E
http://www.tutorialspoint.com
/
Computer Fundamentals/ 18
Chapter-
Input Devices2 and Output
Devices
2.0 Objectives
2.1 Introduction
2.2 Input Devices
2.3 Output Device
2.4 Summary
2.5 Check Your Progress - Answers
2.6 Questions for Self - Study.
2.7 Suggested Readings
2. 0
OBJECTIVES
After studying this chapter you will be able to:
Explain the def initions of peripheral devices.
Describe diff erent types of input dev ices like punched cards, keyboards,
mouse, digitizers and scanners and output devices like printers, plot ters,
video displ ay terminals and microf ilms, their broad design, their
f eatures advantages and
Discuss the common peripheral devices, their physical appearances and the
disadvantages.
mode of operation of these dev ices. The student would be able to use these
devices in the practical efficiently.
2.1
INTRODUCTION
As seen earlier, computer hardware is made up of the physical parts of the
computer system like the electronic ICs, magnetic storage media and the mechanical
devices.
The devices which are a means of communication between the computer and the
outside world are called as peripheral devices.
Those peripheral devices which supply information i.e. data and progr ms from
the outside world to the computer are the input devices . Those peripheral devices
which give inf ormation from the computer to the user or store them in secondary storage
devices, like floppy disks or tapes for f uture use are called output devices.
The processors which are required to convert the input data into machine
readable f orm and to convert the output generated by t he computer into human
readable f orm are known as input/output (I/O) interfaces. There are two concepts
related to t he way in which data is input to the computer:
1. On-li ne Data I nput : Here data is directly transferred to the computer
2. Off-line Data Input : - Here the data is not immediately transf erred to the
computer.
2.2 INPUT
DEVICES
The various types of input devices most commonly used are :
2.2.1 Punch Cards :
Data is recorded onto punch cards or punch tapes using standard codes, like the
Hollerith code. The pattern of these holes is interpreted by a card reader device and
converted into machine readable form. A punch card machine is used to transcribe the
data onto the card.
Input Devices and Output Devices / 19
Fig. 2.1 Punch Card and a Keyboard
2.2.2 Keyboard
The keyboard is one of the most commonly used input device. The computer
keyboard is similar to a typewriter keyboard. The keyboard has keys made up of
letters, numbers, symbols and special function keys.
A display screen or monitor (Cathode Ray Tube) is used to display the data
entered by the operator with the keyboard. This monitor can also display the results of
processing as well as messages generated by the computer. A special symbol, called
a cursor, indicates t he position on the screen. There are special keys on the keyboard
which allow the cursor to move in up, down, left and right directions. Other special
keys on the keyboard include keys like Tab, Del, Ctrl, Ins, PgUp, PgDn etc.
Computer Fundamentals / 20
Optical mouse
Opt mechanical mouse
2.2.9 Scanner :
Scanner is able to directly enter text and images into the computer memory.
Therefore the duplication work of entering data is eliminated and this also results in
increased accuracy. The speed of data entry also increases. There are two types of
scanners :
1. Optical Scanners
2. Magnetic Ink Character Recognition devices
a) Optical Scanner:
The optical scanner uses a light source and sensor for reading the information on the
paper. It can read charact ers, pictures, graphics from the paper. The common types of
optical scanners are:
1. The Optical Mark Reader (OMR): This is capable of reading pre specified
marks made by pencils or pens with the help of light. Light is f ocused on the page
that is to be scanned. The ref lected light pattern is detected by the device. These
types of scanners are normally used where the data is preprinted for applications.
eg. answer papers of the objective tests where the answers are marked with pencils or
preprinted f orms.
2. Optical Character Reader : The Optical Character Reader (OCR) can read
alphabets, characters and numbers printed on paper. These characters can be eit her
handwritten or typed. However special f onts are required to be used while t yping. In
case of handwritten data, the characters have to be of standard predef ined size. The
OCR reads each character as a collection of pixels. The light which is ref lected f rom
the page to be scanned is converted into binary data. OCRs are available in various
sizes and speeds. These devices are expensive and are mainly used in processing
where the data volumes are large.
Computer Fundamentals / 22
Fig 2.7 Bar Code Reader
Bar code reader is a device which reads bar coded data. Data which is coded in the form
of light or dark lines (bars) is a bar code. Bar code readers are normally used in
applications like labeling of products in retail shops, super markets etc. A laser beam
scanner is used to read the bar code.
The most commonly used bar code is the Universal Product Code (UPC). In this code
the bars are coded as 10 digits. The first five digits define the manufacturer or supplier, and
the remaining five digits denote the actual product of the manufacturer.
a) Impact Printer
Impact printers are similar to typewriters. They use hammer to strike a character against
an inked ribbon and the impact of the hammer causes the image of the character to be
printed on paper. E.g. Dot matrix printers, line printers, daisy wheel printers,
Fig. 2.8 A dot matrix printer, a daisy wheel and a daisy wheel
printe
r
These printers are relatively low in cost and print at speeds of 50-500 characters
per second. The programmer can also define the shape of characters for this printer.
Therefore it is possible to print many special characters, characters in various sizes as
well as charts and graphs on such printers. Dot mat rix printers are very commonly
used in most computer systems.
Computer Fundamentals / 24
3) Li ne Printer:
Line printers are very fast printers which print at speed of 200-2500 lines per
minute. These printers are impact printers and normally have 132 print positions per line.
Different types of character set are available for different printers. Line printers are
normally used in applications where large volumes of data are to be printed.
2.3.2 Plotter :
A plotter is an output device used in applications where printouts of graphs and drawings
are required. Plotters are of two types :
2) Drum Plotter:
In this plotter the paper on which the output is to be obtained, is placed over a drum. The
drum rotates back and forth to produce motion. The pen is mounted horizontally across
the drum and the horizontal motion of the pen is achieved with the help of the pen holder.
The drum and the holder move simultaneously to produce output. Multi coloured printing
is possible by changing the pens.
The speed of plotters is very slow. Therefore normally the output is first sent to some
secondary storage device like a magnetic tape and then directed to t he plotter.
CRT:
An electron beam is moved across a phosphor coated screen to produce the image.
The CRT can be monochrome or colored. This screen normally has 25 lines and 80
characters.
Computer Fundamentals / 26
Flat Panel Display :
The most common flat panel display is the Liquid Crystal Display (LCD). This does not
have a picture tube. The other type of display is the gas plasma screen.
Dumb Terminal:
This is a combination of a keyboard and monitor which can send or receive data, but
cannot process the data.
Intelligent This type of terminal also has an inbuilt microprocessor which can
Terminal:
be programmed by the user. These terminals also have limited processing capability.
They can communicate with other terminals and processors.
2.4
SUMMARY
The devices of the computer system which are a means of communication
between the computer system and the out side world are called as peripheral devices.
Those devices which accept data from the user are input devices, and those devices that
give information from the computer to the user or store it in secondary storage dev
ices for later use are output devices.
Input Output Interfaces are the processors which convert the data input by the
user into a form which can be understood by the computer and also convert output
generated by the computer into a human readable f orm. Data can be entered in the
1. Punched cards - data is first recorded into these cards using standard codes and
then fed to the computer with a card punch machine. Though cheap, their major
drawbacks are that they cannot be reused and require large storage space.
2. Keyboard - is the most commonly used device for on line data entry. It is very easy
to use, inexpensive and allows on-line data editing.
3. Mouse -is a pointing device used along with a keyboard to control cursor
movement, select data etc. Light pen, joystick and t rack ball are also similar
devices used for cursor control.
4. A digitizer - This converts pictorial data into a digital f orm which can be directly
entered and stored in a computer.
5. A scanner can directly enter text and images into computer memory using light
source or magnetic ink recognition.
6. A voice recognition system converts the speech of the operator into electrical
signals for data entry.
Output Devices:
The common output devices are :
1) Printer - these are of two types :
Impact printers produce output on paper and use a hammer to strike a character
against a ribbon.
Non impact printers use thermal, chemical, electrostatic and inkjet technologies to
produce output. Some of the commonly used printers are dot matrix, Line printers,
Drum printers, Ink jet printers and laser printers.
2) Plotter: Plotters are mainly use f or output of graphs and drawings. The common
plotters are Flat Bed Plotters and Drum Plotters.
3) Video Display Terminals : Some of the popular video output devices are
the monitor, Liquid Crysta l Display, and a terminal which is a combination of a
monitor and keyboard together.
1. a) Light pen
b) Mouse
c) Graphics tablet
2. a) Magnetic Ink Character Recognition
b) Optical Character Reader
c) Optical Mark Reader
3. a-3
b -4
c-1
d -2
2.3
1. a) The m onitor and the keyboard together are called a t erminal e.g. Dumb
Terminal, Smart Terminal.
b) Impact printers are printers which use a hammer to strike a character against an
inked ribbon, the impact of which causes the image of the character to be printed on the
paper, eg. dot matrix printers,
Computer Fundamentals / 28
2. 6 QUESTIONS FOR SELF -
STUDY
1. Define : Peripheral Devices, Input Devices, Output Devices
2. Writ e Short notes on: Punched Cards, Keyboard, Optical Scanner, Plotter.
3. What are impact printers? Describe any two types of impact printers.
4. What is COM?
5. Describe the various types of computer terminals.
2.7 SUGGESTED
READINGS
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
References
http://www.tutorialspoint.com
/
Computer Fundamentals / 30
Chapter:
3
Primary Storage and Secondary
Storage
Device
s
3.0 Objectives
3.1 Intr oduction
3.2 Prim ary Storage
3.3 Secondary Storage Devices
3.4 Summary
3.5 C heck Your Progress- Answers
3.6 Questions for Self Study
3.7 Suggested Readings
3.0
OBJECTIVES
This chapter Primary Storage and Secondary Storage Devices wil l enable you to
Explain what is a storage unit and the criteria according to which the different
types of storage are ranked.
Describe various types of storage devices and their storage capacities.
Discuss various concepts related to memory of the computer
3.1
INTRODUCTION
Storage Unit: Astorage unit is that part of the computer system which is used to store
the data and instructions to be processed. There are two types of storage:
Primary memory is also known as internal memory . This is a section of the CPU which
holds program instructions, input data and intermediate results. Primary memory is
also known as main memory.
Access time:
This is the t ime required to locate and retrieve a particular data from the storage unit.
A fast access to data and programs always yields higher efficiency.
Storage Capacity:
Storage capacity is the amount of data that can be stored by a storage unit. Large
capacity of data storage is always desirable.
As seen earlier, the smallest unit of data which the computer understands is the bit. A
group of 8 bits f orms a byte. The storage capacity of a computer system is defined in
Cost:
Low cost storage media are always desirable.
Thus, storage units with f aster access time, higher storage capacity and low costs are
the ones which are considered to be of a superior nature.
3.2 PRIMARY
STORAGE
Primary storage is characterized by faster access time, less storage capacity
and higher costs as compared to secondary storage units. Primary storage or main
memory is that part of the computer system which stores the programs, data and
intermediate results during the program execution.
A primary storage comes as an integral part of all computer systems. It
comprises of a number of small locations. Each location has a unique number assigned
to it. This is called as the address of the location and it is used to identify the location.
Each location has a capacity to store a f ixed number of bits. The number of bits that
a location can store is called as word length . Each location contains the same
number of bits.
Normally, primary memory size ranges from a few kilobytes on small
computers to several thousand kilo bytes and megabytes on larger machines.
The primary storage is volatil e. Whenever the power is turned off the data is
lost. Primary storage is also called Random Access Memory (RAM). RAM means it
is possible to randomly select and use any storage location for storage and retrieval of
data. RAM is also called a read/write memory because data can both be read from and
written onto these units. When the power is switched off the data stored in the RAM is
lost.
ROM: ROM is Read Only Memory. In this type of memory the data is perm anently
stored. The inf ormation can only be read and new data cannot be written onto this
memory. However the contents of the ROM are not lost even when the power is turned off
i.e. this memory is non-volatile . Such memories are also called as field stores , or
permanent stores .
There are a number of high level functions which are required to be perf ormed
by the computer system. Such f unctions are performed by writing special programs
called micro programs . Micro programs generally execute the low level machine
functions. These programs are mainly used as a substitute f or hardware. Such programs
can be stored on ROMs and be used again and again. This results in reducing
the
hardware of the system. ROM helps to increase the
ef ficiency of the CPU as it can perform specialized tasks. ROM comes in the form of
a chip . Once information is stored on a ROM chip it cannot be changed or altered .
PROM: PROM is Programmable Read Only Memory. These are ROMs which can be
programmed. A special PROM programmer is used to enter the program on the PROM.
Computer Fundamentals / 32
Once the chip has been programmed, information on the PROM cannot be altered.
PROM is non v olatile ie. data is not lost when power is switched off.
EPROM : Another type of memory is the Erasable Programmable Read Only
Memory.
It is possible to erase the data which has been previously stored on an EPROM and
write new data onto the chip.
Cache Memory :
This is a very special type of high speed memory. This memory cannot be
accessed by the user. The m ain function of this cache memory is to make the
programs and data available to the CPU very fast.
Access time of memory is generally very high as compared to the execution time
of the GPU. Therefore a cache, which is a very small but fast memory, is used
between the CPU and the main memory. This memory also called a high speed buffer.
A cache stores those segments of programs and data which are frequently needed. It
makes available this data to the CPU at a very fast rate thus increasing the efficiency .
Registers :
Registers are used to retain information temporarily. These are special memory units
which are not actual parts of the main memory, but allow efficient mov ement of
inf ormation between the various units of the computer system. The registers
receive information, hold it temporarily and make it available as and when required.
A comput er uses a number of registers, where each register perf orms a specif ic
function. Some of the common registers are :
1. Memory Address Register (MAR): The function of this register is to hold the address
of the current or active memory location.
2. Memory Buffer Register (MBR): This register holds the contents of the address f rom
which data is read or to which data has been written.
3. Program Control Register : It holds the address of the next instruction to be
executed.
Accumulator Register: It holds the initial data, the intermediate results and the final
data of the program under execution.
4. Instruction Register: This register holds the current instruction being executed.
Input/output Register: The function of this register is to communicate with the
Input/output devices.
.............................................................................................. ..........
.....
b. Name the characteristics according to which t he storage devices are ranked
.............................................................................................. ..........
.....
c. Give e the names of any two registers used by t he computer:
.......................................................................................................
.....
2. Give the full form of:
a. RAM b.ROM c. PROM d.
EPROM
b) Magneti c Tape:
A magnetic tape is a ribbon of Mylar which is coated with a thin layer of iron
oxide material on one side. This tape is stored on a cassette or cartridge, or reel .The
iron oxide material can be magnetized and the data is recorded on the tape in the f orm
of magnetized and non-magnetized spots. A magnetic tape drive is used to read data
from the tape or write information to the tape. The tape drive has a read/write head to
access or store information respectively.
Magnetic tape is a read write device where the data can be written as well as
erased and new data recorded on the same area. The tape is divided into vertical columns
and horizontal rows. The columns are called frames and the rows are called tracks .
Special computer codes are used for recording data on the tape. One character is
recorded on each f rame. Most modern tapes have 9 tracks, and use the EBCDIC code
for data representation. The actual number of characters that can be stored on an
inch of a tape is known as the density of the tape.
The storage capacity of magnetic tapes is very large. This capacity is
measured in terms of bytes per inch. Most common tape densities are 800 bpi, 1600 bpi.
Nowadays tapes with much higher densities of the order of 6000 bpi are also available.
The records in a tape can be of any size. Also all the records in a given file need
not be same in length. Thus the tapes can store fixed length and v variable
length
records. In between two consecutive records the computer automatically keeps a
f raction of the tape blank. This blank space is called the Interlock gap, While reading
from the tape, the drive takes a finite amount of time to physically stop when the end of
Computer Fundamentals / 34
the record is reached. Therefore this int erlock gap is created to avoid loss of any
data of the subsequent record that may have been stored
while the drive mechanism comes to a halt.
Advantages of Magnetic Tapes:
- High data density and virtually unlimited storage
- Low in cost
- Easy to handle and portable from one computer to another.
Limitations are:
- Support only Sequential access
- Tapes are sensitive to dust; humidity and temperature, hence require proper storage
facilities.
In some of the disks the outer tracks contain more data bits since the outer
circumference is greater. However, in most of the disks each track stores the same
number of characters. This means that the inner tracks, with a smaller circumf erence
are more densely packed than the outer tracks.
Magnetic disk is a random or direct access storage device. The data is read from
or written onto the disk surf ace with the use of read/write heads. These heads are of
flying type. They do not come in actual contact with t he surf ace of the disk.
There are two types of disk systems:
1) Moving head System:
This consists of one read/write head f or each disk surf ace. This head is mounted on an
Fig 3.4
A floppy disk can be single sided or double sided i.e data can be written on a
Fig. 3.4 Floppy disks: 5 1/ 4 inch and 3 1 /2 inch single side or on both the sides. A double
sided disk drive is required to read data f rom
a double sided disk. This disk drive has two heads, one f or each side. A single
sided drive has only one head. Floppy disks can also be single side double density
and double side double density depending upon their storage capacity.
Floppy disks are a very popular storage medium since they are sm all in size,
relatively cheap and can store data on line. Floppy disks are also very portable. They can
be carried f orm one place to another very easily.
d) Magnetic Drum: This is a cylinder whose outer surf ace is coated with a thin
layer of magnetic material. A motor rotates on the cylinder at a constant speed. Data is
recorded on the tracks of the drum as magnetized spots. A set of stationary
read/write heads are posit ioned slightly away f rom the surf ace of the drum. Data is read
from and written onto this drum with the help of these heads. The drum rotates are
relatively fast speeds of the order of a several thousand rotations per minute. Magnetic
drums have f aster data transfer rates as compared to disks. However their storage
capacity is limited. Magnetic drums are rarely used today.
Computer Fundamentals / 36
3.3.3 Optical Devices
a) Optical Disk: An optical disk is made up of a rotating disk which is coated with a thin
reflective m etal. To record data on the optical disk, a laser beam is f ocused on the
surf ace of the spinning disk. The laser beam is turned on and off at varying rates! Due to
this, tiny holes (pits) are burnt into the metal coating along the tracks. W hen data
stored on the optical disk is to be read, a less powerf ul laser beam is focused on the
disk surf ace. The storage capacity of these devices is tremendous; the Fig. 3.5 Optical
disk access time is relatively fast. The biggest drawback of the optical disk is that it is a
permanent storage device. data once written cannot be erased. Theref ore it is a read
only storage medium. A typical example of the optical disk is the CD-ROM.
Fig 3.5
Optical Card :
The optical card has an optical laser encoded strip which can store
approximately 2 megabytes of data. These cards are the size of a credit card. Optical
cards find use only in specific areas like storing credit records or medical histories of
people.
Optical Tape :
Computer Fundamentals / 38
3.3
1a) Sequential Access, Direct or Random Access
3.7 Suggested
Readings
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
References
http://www.tutorialspoint.com
/
Computer Fundamentals / 40
Chapter-
4
Number
Systems
4.0 Objectives
4.1 Introduction
4.2 Non Positional Number System
4.3 Positional Number System
4.4 Conversion
4.5 Shortcut Methods
4.6 Summary
4.7 Check Your Progress- Answers
4.8 Questions for Self-Study
4.9 Suggested Readings
4.0
OBJECTIVES
Friends, after studying this you will be able to explain various number systems. The
main features of this chapter are as f ollows
Non Positional Number System
Positional Number System
Number Systems
Conversion
Shortcut Methods
4.1
INTRODUCTION
W e saw in the previous chapter that a computer stores data internally in a format that is
not easily readable by human beings. This is the reason why input and output
(I/O)
interfaces are required. Every computer stores numbers, letters, and other special
characters in coded f orm. Before going into the details of these codes, it is essential
to have basic understanding of number system. Hence, this chapter familiarizes you with
the f undamentals of number system. It also introduces some commonly used number
system by computer professionals and relationship among them.
In our day-to-day lif e, we use decimal number system. In this system, base is equal
to 10 because there are altoget her t en symbols or digit (0,1,2,3,4,5,6,7,8, and 9).
Number Systems/ 41
You know that in decimal number system. Successive positions to the left of the
decimal point represent units, tens, hundreds, thousands, etc. However, notice that
each position represents a specific power of the base (10). For example, decimal
number 2586 (written as 2586) consists of digit 6 in units position, 8 in tens position,
5 in hundreds position, and 2 in thousands position, and its value can be written as:
Observe that the same digit signifies different values, depending on the position it
occupies in the number. For example,
in this way, we have 4s 2 ) position, 8s (23 ) position, 16s (2 4 ) position, and so on.
(2
Therefore, decimal equivalent of binary number 10101 (written as 10101 ) is :
2
(1 x 2 4 ) + (0 x 23 ) + (1 x 2 2 ) + (0 x 21 ) + (1 x 2 0 ) = 16 + 0 + 4 + 0 + 1 =
21
10101 2 =21 1 0
The sort form of binary digit is bit. Hence, bit in computer terminology means either a
2
0 or1.
An n-bit number is binary number consisting of n bits. Below table lists all 3-bits
numbers along with number can have not one of the 8 values in range 0 to 7. In fact,
any decimal number in the range 0 t o 2 n- 1 can be represented in binary form as an n-bit
number.
000 0
001 1
010 2
Computer Fundamentals/ 42
011 3
100 4
101 5
110 6
111 7
Every computer stores numbers, letters, and other special characters in binary f orm.
There are several occasions when computer prof essionals need to know the raw data
contained in a computers memory. A commonly used way to doing this is to print
memory contents on a printer. This printout is called a memory dump. Memory dumps,
which are in binary numbers, would have many pages of 0s and 1s. Working with
these
numbers would be very difficult and error prone for computer prof essionals. Hence,
two number systems octal and hexadecimal, are often used as shortcut notations
for binary. These number systems and their relationship with binary number system are
explained below.
(2 x 83 ) + (0 x 8 3 ) + (5 x 8 1 ) + (7 x 80 ) = 1024 + 0 + 40 + 7 = 1071
Observe that since there are only 8 digits in octal number system, 3 bits (2 3 = 8) are
sufficient to represent any number in binary (see the above table-4.1)
Number Systems/ 43
Check Your Progress - 4.2 & 4.3
Fill in the blanks
1. Binary System consists of digit .....
.....................and ..........................
2. Every Computer Store letters, Symbols and numbers in .......................... f orm at.
3. The principles that apply to decimal number system , also apply to any
other.................. ........ number
system.
4. In .......................... number system, the base is 16.
Hence,
there are 16 sym bols or digits.
5. In 2658 10
the digit 6 signifies ......... .............. ...
4.4
CONVERSION
Numbers expressed in decimal number system are much more meaningf ul to us, than
are numbers expressed in any other number system. This is because we hav e been
using decimal numbers in our day-to-day life, right f rom childhood. However, we can
represent any number system in any other number system. Because the input and final
output values are to be in decimal, computer prof essionals are often required to
convert numbers in other number system to decimal and vice-versa. Many methods
can be used to convert numbers from one base to another. A method of converting
from another base to decimal, and a
method of converting from decimal to another base are described below.
4.4.1 Converting from another Base to
Decimal
The following steps are sued to convert a number in any other base to a base 10
(decimal)
number.
Step 1 : Determine the column (positional) value of each digit (this depends on the
position
of the digit and the base of the number system).
Step 2 : Multiply the obtained column values (in Step 1) by the digits in the
corresponding columns.
Step 3 : Sum up the products calculated in Step 2. The total is the equivalent value
in decimal.
Example 4.1.
1100 2 = ? 1 0
Solution:
Step 1: Determine Column values
Col umn Number Column Value
(from right)
1 20 =1
2 21 =2
3 22 =4
4 23 =8
5 24 = 16
Computer Fundamentals/ 44
16 8 0 0 1
Example
4.2.
47062 =?10
Solution
:
Step 1: Determine Column
values
Column Number(from right) Column
Value
1 80 = 1
2 81 = 8
3 8 2 = 64
4 8 3 = 512
Example 4.3.
1 AC1 6 = ? 10
Solution :
1AC1 6 = 1 x 16 2 + A x 16 1 + C x 16 0
= 1 x 256 + 10 x 16 + 12 x 1
= 256 + 160 + 12
= 428 1 0
Example 4.4.
4052 7 = ?1 0
Solution :
4052 16 = 4 x 7 3 + 0 x 7 2 + 5 x 7 1 + 2 x 7 0
= 4 x 343 + 0 x 49 + 5 x 7 + 2 x 1
= 1372 + 0 + 35 + 2
= 1409 10
Example 4.5.
4052 6 = ?1 0
Solution
: 4052 6 = 4 x 6 3 + 0 x 6 2 + 5 x 6 1 + 2 x 6 0
= 4 x 216 + 0 x 36 + 5 x 6 + 2 x
1= 864 + 0 + 30 + 2
= 896 1 0
Number Systems/ 45
Comparing this result with the obtained in Example 4.4, we the find that although
the digits (4052) are the same for both the numbers, their decimal equivalents are
different.
This is because the number in Example 4.4 is represented in base 7 number system,
whereas the number in Example 4.5 is represented in base 6 number system.
Solution :
4052 6 = 4 x 6 3 + 0 x 6 2 + 5 x 6 1 + 2 x 6 0
= 4 x 216 + 0 x 36 + 5 x 6 + 2 x 1
= 864 + 0 + 30 + 2
= 896 1 0
Example 4.6.
4052 7 = ?1 0
Solution :
11001 4 = 4 x 4 4 + 1 x 4 3 + 0 x 4 2 + 0 x 4 1 + 1 x 4 0
= 1 x 256 + 1 x 64 + 0 x 16 + 0 x 4 + 1 x 1
= 2562 + 64 + 0 + 0 + 1
= 321 1 0
Example 4.7.
1AC1 3 = ? 10
Solution :
1AC1 3 = 1 x 13 2 + A x 13 1 + C x 13 0
= 1 x 169 + 10 x 13 + 12 x 1
= 311 1 0
Compare the result with the result obtained In Example 4.3
Computer Fundamentals/ 46
Number Systems/ 47
Hence, 1715 10 = BAB12
Compare the result with the result obtained in Example 4.3.
4.4.3 Converting from a Base Other than 10 to Another Base Other Than 10
The following steps are used to convert a number in a base other than 10, to a number
in
another base than 10:
Step 1 : Convert the original number to a base 10 (decimal) number.
Step 2 : Convert the decimal number obtained in Step 1 to the new base number.
Computer Fundamentals/ 48
Example 4.16 illustrates the method of converting a binary number to an octal
number,
Similarly, Example 4.17 shows how to convert a binary number to a hexadecimal
number.
However, these are lengthy procedures and we can use shortcut methods when we
desire
such conversions. The shortcut methods are described below.
4.5 SHORTCUT
METHODS
4.5.1 Shortcut Method for Binary to Octal Conversion
The following steps are used in this method:
octal number in binary. Moreover, since decimal digits 0 to 7 are equal to the octal digits 0
to 7, we use binary to decimal conversion method in this step.
Number Systems/ 49
4.5.2 Short Method for Octal to Binary Conversion
The following steps are used in this method :
Step 1 : Convert each octal digit to a 3 digit binary number (the octal digits may be
treated as a decimal numbers f or this conversion).
Step 2 : Combine all the resulting binary groups (of 3 digits each) into a single
binary number.
Computer Fundamentals/ 50
Example 4.24:
2AB1 6 =? 2
Number Systems/ 51
hexadecimal is equivalent to the value range of four digits of binary. Therefore,
hexadecimal shortcut notation is one-to-four reduction in space and time required for
memory dump.
4.6
SUMMARY
1) Number systems are of two types non-positional and positional.
2) In a non-positional number system. Each symbol represents the same value
regardless of its position in the number and to find the value of a number, one has to
count the number of symbols present in the number. It is very diff icult to perf orm
arithmetic with such a number syst em.
3) In a positional number system, there are only a few symbols called digits. These
symbols represent different values depending on the position they occupy in a number.
The value of each digit in such a number is determined by the three considerations:
The digit itself,
The position of the digit in the number, and
The base of the number system (where base is defined at the total number of
digits available in the number system).
4) In our day-t o-day life, we use the decimal number system. In this system, base is
equal to 10 because there are altogether ten symbols or digits. (0,1,2,3,4,5,6,7,8 and
Computer Fundamentals/ 52
9).
5) Some positional number system that are used in computer design and by
computer professionals are binary (having base 2), octal (having base 8), and hexadecimal
(having base 16).
c) 2573 8
4.9 Suggested
Readings
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
Number Systems/ 53
NOTES
Computer Fundamentals/ 54
Chapter -
5
Boolean algebra and Logic
Circuits
5.0 Objectives
5.1 Introduction
5.2 Boolean Algebra
5.3 Principle of Duality
5.4 Logic Gates
5.5 Logic Circuits
5.6 Design of Combinational Circuit
5.7 Summary
5.8 Check Your Progress - Answers
5.9 Questions for Self Study
5.10 Suggested Readings
5.0
OBJECTIVES
Friends, This chapter deals with Boolean algebra and logic gates. After learning this
chapter you will be able to explain-
Boolean Algebra
Logic Gates
Logic Circuits
Design of Combinational Circuit
5.1
INTRODUCTION
Boolean algebra deals with binary number system. It is very useful in designing
logic circuits used in processors of computer system. In this chapt er, you will learn
about this algebra and elem entary logic gates used to build up logic circuits of diff erent
types for perf orming necessary arithmetic operations. These logic gates are the building
blocks of all logic circuits in a computer. You will also learn how to use Boolean algebra
for designing simple logic circuits used frequently by arithmetic logic unit and almost
all computers.
of inputs are possible (see the table 5.1). The resulting output values for each of
the four input combinations are given in the table. Such a table is known as a truth table.
Hence, the below figure is the truth table f or logical OR operator.
Table 5.1
Observe that the result is 0 only when both input variables are 0. It is 1 when any one or
both of the input variables are 1. This is the reason why the + symbol does not have the
normal arithmetic meaning, but is a logical addition operator. This concept of logical
addition may be extended to any number of variables. For example, in the equation A
+ B + C + D = E, even if A,B,C and D, all had the value of 1, the sum of the values (the
result E) would be 1 only. The equation A + B = C is norm ally read as A or B equals C.
Table 5.2
5.2.3 Complementation
Truth table f or logical AND (.) operator.OR and AND are binary operations because they
operate on two variables. Complementation is a unary operation defined on a single
variable.
The symbol - is used for complementation operator. It is also known as NOT
operator. Hence, we write A meaning complement of A, or (A + B) meaning of A + B.
Complementation of a variable is the reverse of its value. Hence, if A = 0, the A = 1 and
if A = 1. Then A = 0. Below table 5.3 shows the truth table for logical NOT (-) operator. A is
read as complement of A or not of A.
5.3 Principle of
Duality
When value and operations can be paired up in a way that leaves
everything
important unchanged when all pairs are switched simultaneously, we call the member
of each pair dual to each other.
Thus 0 and 1 are dual, ^ and are
dual.
The duality principle asserts that Boolean.
Algebra is unchanged, when all dual pairs are
interchanged.
Dual of one expression is obtained by replacing AND (.) with OR (+) and OR
with AND together with replacement of 1 with 0 and 0 with 1.
5.4.1AND Gate
Input A B
Output
Fig 5.1 Two or more switches connected in series behave as an AND gate
Behavior of a logic gate (the state of its output signal, depending on various
inputs are possible. Notice that the output is 1 only when both inputs are in 1 state,
otherwise it is 0.
Fig. 5.2 Block diagram symbol and truth table 5.4 for an AND gate.
5.4.2 OR Gate
Below f ig 5.4 shows the truth table and block diagram symbol for an OR gate for two
input signals. Notice t hat the output is 1, when any of the input signals is n 1. It is 0
only when both inputs are 0.
Below Figure 5.6 shows the truth table and block diagram symbol for a NOT gate.
Fig 5.6 (a) Block diagram symbol and truth table for NOT gate.
(b) Two NOT gates in series
A NAND gate is a complemented AND gate. That is the output of NAND gate will
be one the input is 0, and it will be 0 only when all inputs are 1.
1 if any
Below Figure 5.7 shows the truth table and block diagram symbol for a NAND gate.
The symbol is usually used t o represent a NAND operation in Boolean expressions.
Hence
Fig. 5.7 Block diagram symbol and truth table for a NAND gate.
A NOR gate is complemented OR gate. That is, the output of a NOR gate will be
1 only when all input are 0, and it will be 0 if any input is a 1.
Below figure 5.9 shows the truth table and block diagram symbol f or a NOR
gate. The symbol is usually used to represent a NOR operation is Boolean
expressions.
Hence A B = A + B = A
.B.
Fig 5.9 Block diagram symbol and truth table for a NOR gate
An OR gate followed by a NOT gate operates as a NOR gate (see the below
figure). In the
Figure the output of the OR gate will be A +B that in turn is fed as input to the NOT
gate. Hence, the final output will be complement of A +B, which is equal to (A + B) or
A.B or A B. In fact, the small circle on the output of NOR gate (see Figure 5.10)
represents Complementation.
Multiple-input NOR gates can be analyzed similarly. A three-input NOR gate
with inputs
A,B, and C will have an output equal to A + B + C or A. B. C meaning that the
will be
output
1 only when all three inputs are 0, and it will be 0 if any of the three inputs is a 1
D
B
Solution
Input A is f ed to the NOT gate, whose output will be
A.
Inputs B and C are fed to the OR gate, whose output will be B + C
These two outputs (A and B + C) are in turn fed as input to the AND gate, whose
output will be A . (B + C)
Hence, D = A . (B + C) is the Boolean expression for the output of the given logic
circuit.
Find the logic expression f or the output produced by the logic circuit given below.
Solution
The output of the OR gate is
A + B
(a) The output of the first AND gat e is
A . B
(b)Expression (b) is f ed as input to the NOT gate, whose output will be
A . B
(c)
Now, expressions (a) and (c) are fed as input to the second AND gate, whose output will
be
(A + B) . (A . B)
Hence, C = (A + B) . (A . B) is the logic expression f or the output produced by the given
logic circuit.
0+ 1=1
1+ 0=1
1 + 1 = 10
The first three operations produce a single-digit sum, but when both augends
and addend bits are equal to 1, the sum consists of two digits. The higher significant bit
of this result is called a carry. When both augends and addend numbers contain more
than one digit, the carry obtained from addition of two
bits at any stage is added to the next pair of significant bits. A combinational circuit that
performs the addition of two bits is called a half -adder. One that perf orms the addition
of three bits (two significant bits and previous carry) is called a f ull-adder. The name of the
former comes from that fact that two half-adders can be employed to implement of a full-
adder.
From the definition given above, a half-adder needs two binary inputs and two
binary outputs.
The input variables designate the augends and addend bits whereas the
variables and addend bits whereas the output variables produce the sum and
output
carry
bits. Let A and B be the two inputs and S (for sum) and C (for carry) be the
outputs. The truth table of the Figure def ines the function of a half-adder.
two
The Boolean expressions for the two outputs, obtained from the truth table, are:
S = A.B +
C = A.B A.B
The logic circuit diagram to implement these expressions is shown in the below Figure
5.12
A half-adder is limited in the sense that it can add only two single bits. Although, it
generates a carry f or the next higher pair of significant bits it cannot accept a carry
generated from the previous pair of lower significant bits. A f ull-adder solves this
problem.
A full-adder forms the arithmetic sum of three input bits. Hence, it consists of
three inputs and two outputs. Two of the input variables (A and B) represent the
augends and addend bit and the third input variable (D) represents the carry from the
previous lower significant position. Two outputs are necessary because the sum of
three binary digits ranges from 0 to 3 and binary 2 and 3 need two digits. These two
outputs are designated by the symbols S (for sum) and C (for carry). The truth table of
the below Figure defines the function of a full-adder.
The 1s and 0s for the output variables are determined from the arithmetic sum of the
three input variables. When all input variables are 0, the output is 0 for both C and S.
The S output is equal to 1 when only one input is equal to 1, or when all three inputs
are equal to 1. The C output is 1 if two or three inputs are equal to 1.
The sum-of-products expressions for the two outputs can be obtained directly from the
truth table and are given below.
S = A.B.D + A.B.D + A.B.D +
A.B.D
C = A.B.D + A.B.D + A.B.D +
A.B.D
Although, the expression for S cannot be simplified, it is possible to simplify the
expression for C as f ollows.
C = (A.B. + A.B.).D +
A.B
= A.B.D + A.B.D + A.B.(D+
D)
= A.B.D + A.B.D + A.B.D +
A.B.D
This can be simplif ied, as before, to
C = A.B + A.D +
B.D
5.7
SUMMARY
1) Boolean algebra deals with binary number system. That is, the variables used
in Boolean equations may have only two possible values (0 and 1).
2) In Boolean algebra the OR operator used for logical addition is represented by
the symbol +; the AND; operator used for logical multiplication is represented
by the symbol ., and the NOT operator used for complementation is
represented by the sym bol -.
3) As regards precedence of Boolean operators, NOT operator takes
precedence over AND and OR operators, and AND operator
takes
precedence over OR operator.
4) An Boolean algebra, there is a precise duality between the operators. (AND and +
(OR) and the digits 0 and 1. This property is known as the principle of duality.
5) A Boolean function is an expression formed with binary variables, the two binary
operators OR and AND, the unary operator NOT, parentheses, and equal to sign.
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
References
http://www.tutorialspoint.com
/
6.0
OBJECTIVES
Friends after studying this l esson, you will be able to :
State the definition of software, the classification of software viz Application
Software, System Software, Utility Software and Firmware.
Discuss various programming languages and their evolution f rom Machine
Language to Fourth Generation languages, through assembly and high
level
languages.
Describe translators and their types
Discuss program development process and the various stages in the
development of a computer program.
6.1
INTRODUCTION
As is already seen, a computer cannot do anything on its own. It has to be provided a
detailed set of instructions to perf orm a specific task to achieve a desired goal, this set of
instructions, which are written in the form which is understood by the computer, is known
as a computer program. The program controls the processing of the computer.
6. 2 CLASSIFICATION OF
SOFTWARES
Software means a set of programs, procedures and other associated
documentation which describes what the program does and how it is to be used.
Hardware and software both have to work together. A number of softwares can be run
on the same hardware to perform different types of jobs. The software acts as an interface
between the user and the computer.
Sof tware is mainly classif ied into:
Application Software
System Software
A
B
1. Application Software a. Program to control system working of computer
2. Firmware b.
Scandisk
3. Systems Software c. payroll
4. Utility Software d. Software available on Rom chips
6.3 PROGRAMMING
LANGUAGES
A programming language is a means of communication for the user to
communicate with the computer system. The programming language is a set of
instructions which tells the computer what to do. This is a language which is understood
by both man and machine. There are a number of programming languages. However
all
these languages are designed to perform at least certain basic instructions and
operations; These instructions and operations are :
- Input/output operations,
- Arithmetic operations - mathematical operations like addition, subtraction,
- Logical operations - Comparison f or equality, inequality etc.
- Movement of instructions and data to and f rom the CPU.
To use the programming language, the programmer has to strictly follow the rules of
Computer Fundamentals/ 72
the language including all commas, punctuation marks etc. otherwise the program will
not be understood by the computer. Thus, although the programming languages are
much smaller and simpler than the natural languages, they have to be used with the
greatest accuracy.
a) Machine Language:
This is the only language which is understood by the computer. This is the
language nearest to the machine. In this language the programs are written in binary
code i.e. the instructions are made only by a combination of binary digits 0 and 1.
Machine language may vary from machine to machine depending upon the computer
architecture. Machine languages execute the fastest since they are immediately
understood by the computer. No translation
of the programs is required. Also they make efficient use of primary memory. But it is
very difficult to program in this binary or machine language. It is also very tedious and
time consuming, since all the instructions have to represent as a series of Os and 1 s.
Therefore there is always a possibility of errors.
b) Assembly Language:
The Os and 1 s of the machine language were substituted by letters and symbols in
assembly languages. The assembly languages use mnemonics (memory aid) in place
of operation codes. The language uses symbols instead of numbers to write programs. A
program written using such symbols in the assembly language is called the source
program. The program written in assembly language has to be converted into machine
language f or use by the computer. This is achieved with the help of the assembler. The
assembler is a system program which is supplied by the manufacturer. It converts the
assembly program into a machine readable program and the resulting program is
called the object program . Thus the input to the assembler is the source program
and the output of the assembler is the object program. The assembler translates
each assembly language instruction into a corresponding machine code.
It is relatively easy to write programs in assembly language as compared to machine
Since the machine language and assembly language both are dependent on the
hardware, they are referred to as low level programming languages. Both these
languages require a deep understanding of the internal structure of the computer.
I) Compiler
II)Interpreter
I) Compiler:
The compiler translates the entire source program into machine language
program at once. The source code remains intact. Once a program is compiled it can be
run as many times as required, without being required to be recompiled. A compiler
can translate only those programs which have been written in the language for which it
is designed. Also each machine has to have its own compiler.
A compiler is a program which normally resides on the secondary storage
device. It gets loaded into the CPU when the source program is to be translated. A
compiler checks for errors like illegal symbols, statements etc. during compilation and
gives out a list of error messages at the end of execution. This is a very valuable aid to
the programmer to correct the programs. However, the compiler is incapable of
detecting any logical errors in the program.
II) Interpreter:
The interpreter is the program which translates a high level language program
into machine language as follows :
- it takes one statement f rom the high level language program
- translates it into a machine instruction and the instruction is immediately executed.
Since the program is translated statement by statement, the machine level program of
the source program is not stored anywhere in memory.
Therefore, the program has to be interpreted every time when it has to be run.
Thus no object code is generated. The interpreted programs are generally slower than
compiled programs. However, if any changes are made in the source program it can
interpret only those statements and it is not required to compile the entire program
again. Interpreters are relatively easy to write and smaller in size as compared to
compilers.
Thus assemblers, compilers and interpreters are systems software which
translate the source program into object program i.e. program which can be understood by
the computer. These translators are also known as language processors.
Computer Fundamentals/ 74
The First Generation - Machine Language
The Second Generation - Assembly Language
The Third Generation - High4.evel
Language
Unlike procedural languages which require that a programmer writes all the
steps to complete the program and generate output, which are related to a more
structural approach towards programming. It is the first standardized language.
BASIC:
BASIC stands for Beginners All Purpose Symbolic Instruction Code . The
language was developed by Prof. John Kemeny and Thomas Kurtz in USA.
It
irrelatively easy to learn. Programs written in BASIC language are interpreted. It
resembles FORTRAN in many ways, but can also be effectively used in business
applications. Thus it can be used for both business and scientific applications. BASIC
is one of on e most popular language f or use in microcomputer systems.
COBOL :
Com mon Business Oriented Language was designed especially f or
business applications. A COBOL program is constructed from sentences, paragraphs,
sections and divisions. A COBOL program must have f our divisions: the identification
division, the environm ent division, data division, and the procedure division.
Thus
COBOL is a self documenting language. It is one of the most widely used commercial
languages.
RPG :
Report Generator is a general purpose, business oriented language designed to
generate output reports. The language was developed by IBM and was launched
for
use on the IBM 1401 computer. It is best suited for applications where large data files
have to be read and extensive reports are to be output. It has limited mathematical
capability and is not suited for scientific applications.
PASCAL
PASCAL: has been named after the French mathematician Blaise Pascal; It allows the
programmer to structure the programming language. The features of PASCAL allow it
to be used for both scientific and business applications. It is a very powerful language.
It is implemented on several computers including microcomputers and minicomputers
and is also widely used to teach programming to students and beginners.
C:
C was designed and developed at Bell Laboratories USA. It is a block structured
language which allows the use of various concepts of structured programming. C also
has the advantage of being able to manipulate internal processor registers of the
computer. Thus it has some powers of the assembly language. C is also very portable.
C is the most popular language used f or systems programming like designing
compilers and operating systems.
LISP:
LISP stands for list processing . This language is mostly used in non numeric
applications which require logical rather than numerical operations. Therefore it is
widely used in games, pattern recognition and artificial intelligence.
Flowchart :
A f lowchart is a pictorial representation of the algorithm. It represents the
steps involved in the procedure and shows the logical sequence of processing using
boxes of different shapes. The instruction to be executed is mentioned in the boxes.
These boxes are connected together by solid lines with arrows, which indicat e the flow
of operation.
The first step in the design of a program is the algorithm. The algorithm is
then represented in t he f orm of a flowchart and the flowchart is then expressed in the
computer language to actually prepare the computer program.
Computer Fundamentals/ 76
Fig. 6.2 Symbols used in a
flowchart.
Terminal (Start/Stop):
The symbol denotes the beginning, ending and halt operation in the program
logic. Thus it is t he first and the last Symbols! in any nov-chart to indicate the start and
stop of the process.
Input/output:
Indicates when an input or output operation is to performed in the process.
Processing:
This represents the arithmetic operations like addition, subtraction etc, and
the movement of data in the process
Decision:
The decision symbol is used to represent a point where one or more alternatives
is possible. The criteria f or decision making are written in the decision box. On each
path the condition f or which the particular path is to be followed has to be written. During
the execution the appropriate path will be f ollowed depending upon the result of the
decision.
Flow l ines:
These indicate the flow of operation ie. The sequence of instruction execution. Flow
lines are normally drawn with arrowhead indicating the direction of flow of the program.
Connectors:
A connector is used t o indicate the logic flow f rom one page to another when
the flowchart becomes very long. Connectors do not represent any operation. They are
mainly used in the flowchart f or clarity and convenience.
Sequential Execution: In this logic the instructions are executed one after the
other sequentially.
Transfer of control: This is a logic which is used when the option to be chosen
depends upon the result of the decision. The control is transf erred to a particular path if
the result of the decision branches to that path.
Solution :
Next on the basis of this step wise algorithm develop the flowchart using the
appropriate flowchart symbols as f ollows:
Fig 6.3
(2) Write an al gorithm and flowchart to read two numbers A and B and compare
them. If
A is greater than B pr int, A is greater than B else print B i s greater
than A. Algorithm :
Step 1:Start.
Step 2:Input values of A and
Step 3:B.
Compare values of A and B (Is A
B?). >
Step 4:If yes then print A is greater than B.
Step 5:If no, the print B is greater than
A.
Now draw the flowchart for the above.
Computer Fundamentals/ 78
Other techniques which can be useful in designing of the program are:
Modular Programming:
Using this method the entire program is divided into smaller manageable
modules so that the smaller modules can be designed, coded and debugged
separately.
Top-Down Design:
Here the overall problem is first defined in terms of general subtask. These
subtasks are divided into further sub tasks.
6.4. 3 Coding:
Once the design process is complete, the actual computer program is written,
i.e. the instructions are written in a computer language. Coding is generally a very small
part of the entire program development process and also a less time consuming activity
in reality. In this process all the syntax errors i.e. errors related to spelling, missing
commas, undefined labels etc. are eliminated. For eff ective coding some of the
guidelines which are applied are
Use of meaningf ul names and labels of variables,
Simple and clear expressions,
Modularity with emphasis on making modules generalized,
Making use of comments and indenting the code properly,
Avoiding jumps in the program to transfer control.
6.4.4 Debugging:
At t his stage the errors in the programs are detected and corrected. This stage
of program development is an important process. Debugging is also known as
program validation.
The tools or methods whi ch can be used to debug the program s include:
Simulator -This is a computer program which simulates the execution of the
program on another computer.
Logic Analyzers: This test instrument detects the states of digital signals
during each clock cycle and stores them in memory. It then displays this data on
the monitor.
Breakpoints: This is introduced in the program to halt the execution at
some intermediate point. At this point, the values of the various inputs, outputs,
variables etc. can be checked.
Software interrupts: This is an instruction which saves the current value of
the program counter and then branches to a specif ic memory location. At t his
location there is the debugging program which displays the status information.
Memory dump: This gives a list ing of the current contents of a section of
the memory. Memory dumps are common in most simulator programs, and
microcomputer systems.
Trace routine: This program prints the current status of the processor at
specif ied intervals.
6.4.6 Documentation:
Documentation is a very essential step in the program development.
Documentation help$ t he users and the people who maintain the sof tware. This
ensures that f uture modification if required can be done easily. Also it is required
during redesigning and maintenance.
6.4.7 Maintenance:
Updating and correction of the program for changed
conditions and field experience is accounted for in maintenance.
Maintenance becomes essential in following situations:
- Change in specification,
- ChangelrY equipment,
- Errors which are f ound during the actual execution of the
program. Modularity, structured programming, thorough testing
and debugging and proper documentation greatly reduce the t ime
and cost of maintenance of the software.
Computer Fundamentals/ 80
Check your Progress - 6.4
1. Answer in 1-2 words.
a. Name any two stages in the development
of a computer program.
............................................................................................
....
............................................................................................
....
b. Name any two tools used to develop the program design,
............................................................................................
....
............................................................................................
....
c. Name and draw any two symbols used
in
flowchart,
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... ..
......
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... ..
......
d. List any two methods used f or debugging the program.
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... ..
......
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... ...
......
e. List any two situations where the maintenance stage of program development
becomes essential.
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... .
......
........... .... .. .... .. .......................................... .... .. ...... ................................ .. .... ..
......
2. Write algorithms and draw flowcharts for the
following:
a) Input the marks of five subjects of a student.
Calculate the percentage and print the grades as follows:
Grade A for 90% and above, grade B f or percentage greater than or
equal to 75 and less than 90 and grade C f or percentage less than 75.
b) Find the area and perimeter of a rectangle given the sides s1
and s2.
6.5
SUMMARY
Application Software : These carry out specific applications like payroll, financial
accounting et c.
Systems Software : This set of programs controls the execution of the computer
syst em. It cont rols the f unctions of the other sof twares, and hardware.
High Level Languages : They make use of English like words and statements and
are easy to learn. They are translated into machine language with the use of
compilers and interpreters. Some of the commonly used high level languages are
FORTRAN, BASIC, COBOL, RPG, PASCAL, C, LISP
etc.
Fourth Generation Languages : These are non procedural languages. They are
normally used in conjunction of a data base and its data dictionary.
Program Design : Tools like algorithms and flowcharts are used to design the program.
The techniques employed in design are modular-programming, top-down design.
Testing : A test plan for the program which has been done at the design stage is
applied here to test the program on a number of suitable test cases.
Computer Fundamentals/ 82
6.4
1. a) Problem definition, program design b) Algorithm, Flow chart
c) Connectors, Flow lines d) Break points, simulators e) Change in
specification, change in equipment.
2a) Algorithm :
Step 1 : Start,
Step 2 : Input marks of five subjects (ml,m2,m3,m4,m5).
Step 3 : Calculate percentage (p = (ml -i- m2 + m3 + m4 + m5)/5).
Step 4 : Check if percentage (p) >= 90.
Step 5 : If yes, print A
grade.
Step 6 : If no, check if percentage (p) >= 75.
Step 7 : If yes, print B
grade.
Step 8 : If no, print C grade. Step 9: Stop.
Stop
b) Algorithm :
Step 1 : Start.
Step 2 : Ent er the sides of the rectangle s1 and s2.
Step 3 : Calculate area (A) = s1 x s2.
Step 4 : Calculate perimeter (P) = 2 * (s1 + s2).
Step 5 : Output area (A) and perimeter (P).
Step 6 : Stop.
6.8 SUGGESTED
READINGS
Computer Fundamentals
Concepts, Systems & Applications P.K Sinha
REFERENCE
S
http://www.tutorialspoint.com
/
Computer Fundamentals/ 84
NOTES
Computer Fundamentals/ 86
Chapter 7
7.0 Objectives
7.1 Introduction
7.2 Definition
7.3 Computer Processing Techniques,
7.4 Summary
7.5 Check your Progress - Answers
7.6 Questions for Self Study
7.7 Suggested Readings
7.0
OBJECTIVES
Friends, after studying the chapter Operating Systems You will be able to:
Define an operating system and understand the f unctions of the system
Discuss term s like resident and transient programs, throughput,
response
time etc.
Explain the different processing
techniques
7.1 INTRODUCTION
The operating system acts as an interface between the humans and the computer. the
operating system ensures smooth and efficient operation of a computer.
7. 2
DEFINITION
An Operating system is defined as an integrated set of programs which
manage the various resources and operations of a computer system. The operating
system acts as an interface between the humans and the computer. The operating
system ensures sm ooth and efficient operation of a computer.
Memory management: Allocation of main m em ory and other storage to the
system program s and the user data and programs.
Input/output management: Managem ent of the input/output devices and
their assignm ent to the various programs that are being executed
File management: The files have to be stored in various storage devices. They
have to be transferred from one storage device to another. This is taken care
of by the Operating System.
Data security and integrity: The data and programs have to be handled in
such a way that they do not interfere with each other.
Assigning pri ority to jobs: The operating system is the one which has to
decide and allot priority to the jobs which are to be
executed.
Interpret commands and detect errors: Each of these functions are
performed by a program or a set of programs and all the programs together
m ake the operating system. Normally, there is one control program of the
operating system that resides in the main m emory of the computer. This
program is known as the resident program. The other programs known as
transient programs or service programs reside on the disk and are accessed as
and when required. The total amount of work performed by the operating
system over a period of time is known as
throughput.
The response time is the time interval between the time the user submits request
and the -time he receives the response. Response time is also known as
Introduction To operating 87
Systems/
turnaround time the efficiency of a computer system depends upon the
throughput and the response time.
Functions of the Op erating Systems : The operating systems are
designed to perform the following functions
:
Processor management: A process is a program in execution. The
processor is a hardware device which processes a sequence of instructions.
Assigning of processors to the different tasks being executed by the computer
is processor management.
In batch processing , a numbers of jobs are collected by the operator offline and
when a batch of jobs gets collected they are input to the computer for processing. The
jobs are then processed without user intervention.
Typical applications of batch processing include applications like payroll, preparation
of
bills etc. where the information is not to be updated freq
5.2.2
Spooling: Spooling is used to improve the processing speed of batch processing.
Spooling means Simultaneous Peripheral Output on Line. The process of storing
input
data and output results on secondary storage is known as spooling. The input data is
stored on magnetic disks and is fed to the CPU when it is not too busy. The processor
then processes the data and the resulting output is again stored on secondary storage
device. Thus in spooling, the magnetic storage media acts as a buffer between the
m emory and the input/ output
devices.
In many computers special purpose input/output processors which can function
independent of the CPU are provided, thus leaving the main processor free once the
program execution is over. The I/O processors then print the spooled data from the
tape or disk on the printer. Thus spooling improves the efficiency of use of memory
and
CPU.
Computer 88
Fundamentals/
7.3.3 Multiprogramming:
7.3.4 Multiprocessing:
In multiprocessing system s, two or more CPUs are connected together. Theref ore
it is possible to execute instructions from different programs at the sam e tim e. Thus
more than one instruction can be executed simultaneously. The idle time of the
com puter reduces, since there is not user intervention in between jobs.
The disadvantages of batch processing are:
The data has to be first accum ulated and then processed. Theref ore there is a
possibility of delay in execution of
jobs,
It is not possible to change priority of jobs. If both jobs have the same
priority,
one of them has to wait in the batch till the complete execution of the
other.
Execute different instructions of the same program. Different multiprocessing
systems use different types of memory configurations. Som e systems have a Com mon
main memory for all the CPUs, in some systems each system has its own main
memory while in still others each CPU can have its own memory as well as share a
com mon m emory with other processors.
In time sharing, it is possible for multiple users to run more than one
at the sameapplication
time on the computer. This is accomplished by providing a=separate
;
terminal to each user. All these terminals are connected to the main computer. The GPU
time is divided among all the users on a scheduled basis. The time that each user gets
is called a time slice. The CPU switches from one user to the another, and e|^cutes a
part of the process in the time slice. This process continues till the job is executed. In
time
sharing, like in multiprogramming only one program is in control of the CPU at any
given
time.
In time sharing environment, it is not always possible that all the programs
of
all the users reside in the main memory. Only the control program and som e
programs
reside in the m ain memory. The remaining program s are loaded from the secondary
memory as and when they are to be executed.
Introduction To operating 89
Systems/
CPU for input or
inquiry.
7.3.7 Real Time Processing:
Real time processing is an on line processing system where the records are
updated and data is processed as soon as the transaction takes place-Real time
systems allow the users to communicate with the computer during the processing
itself. Typical examples of real time systems are the air line reservation market
systems etc. In real time system s a number of terminals may be linked to a single CPU. A
number of remote stations are connected to the computer with communication lines
and
several stations operate simultaneously. The transactions update records. In off line
processing, the data processing is not directly controlled by the CPU. I n minicomputers
anumber of terminals are used to enter the data onto a secondary storage like a tape
or disk. The data is validated, and then entered into the main CPU in batch mode for
processing.
7.4 SUMMARY
Computer 90
Fundamentals/
Multiprogramming: In this mode of processing, the CPU is capable of running
more Since a number of programs can reside in
than one program concurrently.
main
memory at any giv en time a number of users can share the CPU. Multiprogramming
increases both the throughput and efficiency of the computer system.
Multiprocessing : In a m ultiprocessing system two or more CPUs are connected
together. Thus more than one instruction can be executed simultaneously. It is also
possible to execute instructions from different programs at the same time.
Time Sharing : In time sharing, a separat e terminal is provided for each user. All
such term inals are connected to the main computer. The CPU time is divided among
all the users.
On line Processing : In this processing, transaction data is directly sent to on-
storage devices. Thus access line
and retrieval of data is very fast.
Off line Processing: In offline data processing, the data processing is not
controlleddirectly
by the CPU. The data is f irst entered onto secondary storage devices like a
tape of disk. It is later validated and then entered into main CPU in a batch mode for
processing.
Computer Fundamentals
Introduction To operating 91
Systems/
NOTE
S
Computer 92
Fundamentals/
Chapter
8
Popular Operating
System
8.0 Objectives
8.1 Introduction
8.2 Operating System
8.3 Unix Operating System
8.4 MS-DOS-Disk Operating System
8.5 Windows XP
8.6 Windows Vista
8.7 Windows 8
8.8 Linux
8.9 Summary
8.10 Check your Progress Answers
8.11 Questions for Self Study
8.12 Suggested Readings
8.0
OBJECTIVES
Friends, this chapter gives a brief introduction of some popular operating
systems. After learning this chapter you will be able to discuss the following operating
syst ems
UNIX
MS-DOS
Windows XP
Windows Vista
Windows 9
Linux
8.1
INTRODUCTION
An operating system, which is a kind of system soft ware and the programs of it
provides interaction between user and computer components. There are various
Operating systems available.
8.2 OPERATING
SYSTEM
An operating system is a software component of a computer system that is responsible
for the management of various activities of the computer and the sharing of computer
resources. It host s the several applications that run on a computer and handles the
operations of computer hardware. Users and application programs access the
services offered by the operating systems, by means of system calls and application
programming interf aces. Users interact with operating systems through Command Line
Interf aces (CLIs) or Graphical User Interf aces known as GUIs. In short, operating system
enables user interaction with computer systems by acting as an interface between users
or application programs and the computer hardware. Here is an overview of the different
types of operating systems.
Types of Operating System.
Embedded System:
The operating systems designed for being used in embedded computer systems
are known as embedded operating systems. They are designed to operate on small
machines like PDAs with less autonom y. They are able to operate with a limited
number of resources. They are very com pact and extremely efficient by design.
Windows CE, FreeBSD and Minix 3 are some examples of embedded operating
systems.
The operating syst ems thus contribute to the simplification of the human
interaction with the computer hardware. They are responsible for linking application
programs with the hardware, thus achieving an easy user access to the computers.
Computer Fundamentals/ 94
using pipes, as opposed to using a single monolithic program that includes all of the
same functionality. These concepts are known as the Unix philosophy.
Under Unix, the operating system consists of many of these utilities along with
the master control program, the kernel. The kernel provides services to start and stop
programs, handles the file system and other common low level tasks that most
programs share, and, perhaps most importantly, schedules access to hardware to
avoid conflicts if two programs try to access the same resource or dev ice
simultaneously. To mediate such access, the kernel was given special rights on the
system, leading to the division between user-space and kernel-space .
8.3.1 Components
List of Unix programs
The Unix system is composed of several components that are normally packaged
together. By including in addition to the kernel of an operating system the
dev elopement environment, libraries, documents, and the portable, modifiable source-
code for all of these components, Unix was a self-contained software system. This was
one of the key reasons it emerged as an important teaching and learning tool and has
had such a broad influence. The inclusion of these components did not make the system
large the original V7 UNIX distribution, consist ing of copies of all of the compiled
binaries plus all of the source code and documentation occupied less than 10MB, and
arrived on a single 9-track magnetic tape.
The names and file system locations of the Unix components have changed
subst antially across the history of the system. Nonetheless, the V7 implementation is
considered by many t o have the canonical early structure:
Kernel source code in /user/sys, composed of several sub-components:
conf configuration and machine-dependent parts, including boot code
dev device drivers for control of hardware (and some pseudo-hardware)
Sys operating system kernel, handling memory management, process
scheduling, system calls, etc.
h header files, defining key structures within the system and important system-
specific invariables
Development Environment Early versions of Unix contained a development
environment sufficient to recreate the entire system f rom source code:
cc C language compiler (first appeared in V3 Unix)
as machine-language assembler f or the machine
ld linker, for combining object files
lib object-code libraries (installed in /lib or /usr/lib) libc, the system library with C
run-time support, was the primary library, but there have always been additional
libraries for such things as mathematical functions (libm) or database access. V7
Unix introduced the first version of the modern Standard I/O library stdio as part of
the system library. Later implementations increased the number of libraries
significantly.
make build manager (introduced in PWB/UNIX), for effectively automating the
build process
include header files for software development, defining standard interfaces and
system invariants
Other languages V7 Unix contained a Fortran-77 compiler, a programmable
arbitrary- precision calculator (bc, dc), and the awk scripting language, and later
versions and implementations contain many other language compilers and toolsets.
Early BSD releases included Pascal tools, and many modern Unix systems also
include the GNU Compiler Collection as well as or instead of a proprietary compiler
system.
Commands Unix makes little distinction between commands (user-level
programs) for system operation and maintenance (e.g. cron), commands of general
utility (e.g. grep), and more general-purpose applications such as the text formatting
and typesetting package. Nonetheless, some major categories are:
sh The shell programmable command line interpreter, the primary user
interface on Unix before window systems appeared, and even afterward (within a
System utilities administrative tools such as mkfs, fsck, and many others
User utilities environment management tools such as passwd, kill, and
others.
Document formatting Unix systems were used from the outset for document
preparation and typesetting systems, and included many related programs such
as nroff, troff, tbl, eqn, refer, and pic. Some modern Unix systems also include
packages such as TeX and Ghostscript.
Graphics The plot subsystem provided facilities for producing simple vector
plots in a device-independent format, with device-specific interpreters to display
such files. Modern UNIX systems also generally include X11 as a standard
windowing system and GUI, and many support
OpenGL.
Communications Early UNIX systems contained no inter-system
communication, but did include the inter-user communication programs mail and
write. V7 introduced the early inter-system communication system UUCP, and
systems beginning with BSD release 4.1c included TCP/IP utilities.
The man command can display a manual page for any command on the
system,
including itself.
Documentation Unix was the first operating system to include all of its
documentation online in machine readable form. The documentation included:
man manual pages for each command, library component, system call, header
file, etc.
doc longer documents detailing major subsystems, such as the C language.
Computer Fundamentals/ 96
Compiler Collection (and the rest of the GNU t oolchain), the GNU C library
and the GNU core utilities have gone on to play central roles in other free
Unix systems as well.
Linux distributions, comprising Linux and large collections of compatible
sof tware have become popular both with individual users and in business. Popular
distributions include Red Hat Enterprise Linux, Fedora, SUSE Linux Enterprise,
openSUSE, Debian GNU/Linux, Ubuntu, Mandriva Linux, Slackware Linux and
Gentoo.
8.4 DOS [DISK OPERATING
SYSTEM]
In July 1980 IBM assigned Microsoft to develop a 18-bit operating system f or
the personal computer for the f ee of 188,000 dollars. Although the company Digital
Research of Gary Kildall already had with CP/M 88 such a 18-bit version, but by
circumstances no contract has been established with IBM. Microsoft did not have yet
any operating system; Microsof t licensed CP/M from Digital Research in November
1977 for 50,000 dollars.
The command interpreter is integrated in the file command.com with the internal
commands for MS-DOS. Toget her with the f ile io.sys f or simple device routines like the
access to the monitor, keyboard, fixed storage disks and interfaces as well as the
booting code these form the base operating system. DOS works very hardware near.
1988 was MS-DOS established and had reached measured on the market share
a monopoly in the DOS market. The number of the MS-DOS installations grew
worldwide to about 80 million and surpassed all other systems with that amount. Almost
every software company offered standard applications like word processing, calculation
or also special solutions like measurement tools, CAD (Computer Aided Design) or
image processing f or MS-DOS. The PC manuf acturers designed her systems compatible
to MS-DOS except f or few manufacturers.
Languages
Windows XP is available in many languages. In addition, MUI packs and
Interface Packs translating the user interface are also available for certain
Language
languages.
ATM
sAutomated teller machine (ATM) vendors NCR Corporation and Diebold
Incorporated have both adopted Microsof t Windows XP as their migration path from
OS/2. Diebold initially shipped XP Home Edition exclusively, but, f ollowing extensive
pressure from customer banks to support a common operating system, switched to
support XP Professional to match their primary competitor, NCR Corporation
Computer Fundamentals/ 98
Faster start-up and hibernation
sequences
The ability to discard a newer device driver in favor of the previous one (known
as driver rollback), should a driver upgrade not produce desirable results
A new, arguably more user-friendly int erf ace, including the framework for
developing themes for the desktop environment
Fast user switching, which allows a user to save the current state and open
applications of their desktop and allow another user to log on without losing t hat
information
The ClearType f ont rendering mechanism, which is designed to improve text
readability on Liquid Crystal Display (LCD) and similar monitorsU
Remote Desktop functionality, which allows users to connect t o a computer
running Windows XP Pro from across a network or the Int ernet and access their
applications, f iles, printers, and devices.
Support for most DSL modems and IEEE 802.11 connections, as well as
networking over FireW ire, and Bluetooth.
Fig 8.2
Designed for Windows XP computer hardware logo
Service Pack 1
Service Pack 2
Service Pack 3
8.6 WINDOWS
VISTA
8.6.1 New or changed features
Windows Vista revised and incorporated new features and f unctionalities not
present in its predecessors, especially those from W indows XP.
Windows Aero:
The new hardware-based graphical user interface is named Windows Aero,
which Jim Allchin stated is an acronym for Authentic, Energetic, Reflective, and
Open. The new interface is intended to be cleaner and more aesthetically pleasing
than those of previous Windows versions, including new transparencies, live
thumbnails, live icons, and animations, thus providing a new level of eye
candy.
Instant Search :
Windows Vista f eatures a new way of searching called Instant Search, which is
significantly faster and more in-depth (content-based) than the search features
found in any of the previous versions of Windows.
Windows Sidebar:
A transparent panel anchored to the side of the screen where a user can place
Desktop Gadget s, which are small applets designed for a specialized purpose
(such as displaying the weather or sports scores). Gadgets can also be placed on
other parts of the deskt op.
Windows Media Player 11 , a major rev amp of Microsofts program for playing
and organizing music and video. New features in this version include word
wheeling (or search as you type), a new GUI for the media library, photo display
and organization, the ability to share music libraries over a network with other
Windows Vista machines, Xbox 380 integration, and support for other Media
Center Extenders.
Backup and Restore Center: Includes a backup and restore application that
gives users the ability to schedule periodic backups of files on their computer, as
well as recovery from previous backups. Backups are incremental, storing only
the changes each time, minimizing disk usage. It also features Complete PC
Backup (available only in Ultimate, Business, and Enterprise versions) which
backs up an entire computer as an image ont o a hard disk or DVD. Complete PC
Backup can automatically recreate a machine setup onto new hardware or hard
disk in case of any hardware failures. Complete PC Restore can be initiated from
within W indows Vista or from the W indows Vista installation CD in the event the
PC is so corrupt that it cannot start up normally f rom the hard disk.
Windows Mail: A replacement f or Outlook Express that includes a new mail
store that improves stability, and features integrated Instant Search. It has the
Phishing Filter like IE7 and Junk mail filtering that is enhanced through regular
updates via Windows
Update.
Windows Mobility Center:
Windows Mobility Center is a control panel that centralizes the most relev ant
Shadow Copy automatically creates daily backup copies of files and folders.
Users can also create shadow copies by setting a System Protection Point
using the System Protection tab in the System control panel. The user can be
presented multiple versions of a file throughout a limited hist ory and be
allowed to restore, delete, or copy those versions. This feature is available
only in the Business, Enterprise, and Ultimate editions of Windows Vist a and is
inherited from Windows Server 2003.
Windows Update with Windows Ultimate Extras
Windows Update: Software and security updates have been simplified, now
operating solely v ia a cont rol panel instead of as a web application. W indows
Mails spam filter and Windows Defenders definitions are updated
automatically via Windows Update. Users who choose the recommended
setting for Automatic Updates will have the latest drivers installed and
available when they add a new
device.
Parental controls: Allows administrators to control which websites, programs
and games each Limited user can use and install. This feature is not included
in the Business or Enterprise editions of Vista.
Windows SideShow: Enables t he auxiliary displays on newer laptops or on
supported Windows Mobile devices. It is meant to be used to display device
gadgets while the computer is on or off.
Speech recognition is integrated into Vist a. It features a redesigned user
interface and conf igurable command-and-control commands. Unlike the
Office 2003 version, which works only in Off ice and WordPad, Speech
Recognition in W indows Vista works for any accessible application. In
addition, it currently supports several languages: British and American
English, Spanish, French, German, Chinese (Traditional and Simplified) and
Japanese.
New fonts, including several designed for screen reading, and improved
Chinese (Yahei, JhengHei), Japanese (Meiryo) and Korean (Malgun) fonts.
ClearType has also been enhanced and enabled by default.
Problem Reports and Solutions , a control panel which allows users to view
previously sent problems and any solutions or additional information that is
available.
Windows System Assessment Tool is a tool used to benchmark system
performance. Software such as games can retrieve this rating and modify its
own behavior at runtime to improve performance. The benchmark tests CPU,
RAM, 2-D and 3-D graphics acceleration, graphics memory and hard disk
space.
Windows Ultimate Extras : The Ultimate edition of Windows Vista provides, via
Windows Update, access t o some additional features. These are a collection of
Reliability and Performance Monitor includes various tools for tuning and
monitoring system performance and resources activities of CPU, disks,
network, memory and ot her resources. It shows the operations on files, the
opened connections, etc.
Removed Features
Some notable Windows XP features and components have been replaced or
removed in Windows Vista, including W indows Messenger, NTBackup,
the
network Messenger Service, HyperTerminal, MSN Explorer, Active Desktop,
and the replacement of NetMeeting with Windows Meeting Space. Windows
Vista also does not include the Windows XP Luna visual theme, or most of
the classic color schemes which have been part of Windows since the
Windows 3.x era. The Hardware profiles startup feature has also been
removed, along with support for older motherboard technologies like the EISA
bus, APM and Game port support (though on the 32-bit version game port
support can be enabled by applying an older driver). IP over FireWire (TCP/IP
over IEEE 1394) has been removed as well. The IPX/ SPX Protocol has also
been removed, although it can be enabled by a third-party plug-in.
8.7 WINDOWS
8
Windows 8 is a version of Microsoft Windows (an operating
system developed by Micros oft ) for use on personal computers, including home and
business desktops ,laptops ,tablets , home theater PCs . Development of Windows 8
and
started before the release of its predecessor, Windows 7 , in 2009.
Windows Explorer, which has been renamed File Explorer, now
includes a ribbon in place of the command bar. File operation dialog boxes have
been updated to provide more detailed statistics, the ability to pause file transfers,
and improvements in the ability to manage conf licts when copying files. A new "File
History" function allows incremental revisions of files to be backed up to and
restored from a secondary storage device, while Storage Spaces allows users to
combine different sized hard disks into virtual drives and specify
mirroring,
parity, or no redundancy on a folder-by-folder basis.
Removed Features
Fig 8.3
8.9
SUMMARY
An operating system is a software component of a computer system
that is responsible for the management of various activities of the
computer
and the sharing of computer resources. There are meagerly 5 types of
Operating System Real-time Operating System, Multi-user and Single-
user
Operating Systems, Multi-tasking and Single-tasking Operating
Systems
Distributed Operating System, Embedded System.
1. Unix was designed to be portable, multi-tasking and multi-user in a
time-
sharing configuration. Unix systems are characterized by various
concepts:
the use of plain text for storing data; a hierarchical file system; treating
devices and certain types of inter-process communication (IPC) as files; and
the use of a large number of software tools, small programs that can be
strung together through a command line interpreter using pipes, as
to using a single monolithic program that includes all of the
opposed
same
functionality
.
2. Disk Operating System works very hardware near, The command
interpreter is integrated in the file command.com with the internal
commands
for MS-DOS. MS- DOS established and had reached measured on the
8.6
1. True
2. False
3. True
4. False
5. True
8.10 QUESTION S FOR SELF -
STUDY
I. Answer the following Questions
8.11 SUGGESTED R
EADINGS
Computer Fundamentals Concepts, Systems & Applications P.K
Sinha
REFEREN
CES
http://en.wikipedia.org
,http://learning-
unix.blogspot.in,
http://www.mywikibiz.com
(Links)