Unit-1 Introduction To Computer
Unit-1 Introduction To Computer
Unit-1
Introduction to Computer
Basic Introduction
• Computer
A Computer is an electronic machine that accepts data from the user, processes the data by
performing calculations and operations on it, and generates the desired output results.
• Digital Computer
A Digital Computer uses distinct values to represent the data internally. All information is represented
using the digits 0s and 1s. The computers that we use at our homes and offices are digital computers.
• Analog Computer
Analog Computer is another kind of a computer that represents data as variable across a continuous
range of values. The earliest computers were Analog computers. They are used for measuring of
parameters that vary continuously in real time, such as temperature, pressure and voltage.
Characteristics of Computer
• Speed
The computer can process data very fast, at the rate of millions of instructions per second. Some
calculations that would have taken hours and days to complete otherwise, can be completed in a
few seconds using the computer.
• Accuracy
Computer provides a high degree of accuracy. For example, the computer can accurately give the
result of division of any two numbers up to 10 decimal places.
• Diligence
When used for a longer period of time, the computer does not get tired or fatigued. It can perform
long and complex calculations with the same speed and accuracy from the start till the end.
• Storage Capability
Large volumes of data and information can be stored in the computer and also retrieved whenever
required.
• Versatility
Computer is versatile in nature. It can perform different types of tasks with the same ease.
History of Computer
Machine Name Purpose Year
ABACUS Counting of large numbers Ancient Time
Napier’s Bones Multiplication 1617 AD
Slide Rule Addition, Subtraction, Multiplication, Division 1620-1630
Pascal’s Adding & Subtracting Machine Addition, Subtraction 1642
Leibniz’s Multiplication and Dividing Multiplication, Division 1673
Machine
Punch Card System Data processing 1801
Charles Babbage’s Analytical Engine Complex mathematical calculations 1823
Hollerith’s Punched Card Tabulating Electronically processing information read Late 1880s
Machine from a punched card.
Generations of Computer
Generation 1st Generation 2nd Generation 3rd Generation 4th Generation 5th Generation
Characteristics (1940-1956) (1956-1963) (1964-1971) (1971 to Present) (Present &
Future)
Artificial
Integrated
Hardware Vacuum Tube Transistor Mirco processor Intelligence
Circuit
Based
High Level
High Level
Language,
Machine Assembly Language, Natural
Software Operating System,
Language Language Operating Language
Graphical User
System
Interface
Main Memory Magnetic Tapes Magnetic Disk Magnetic Core RAM, ROM, HDD Very Large
Monitor, Monitor,
Magnetic Monitor, Keyboard, Keyboard,
Paper Tape &
I/O Device Tapes & Keyboard, Printer, Pointing Printer,
Punched Cards
Punched Cards Printer Devices, Optical Touchscreen,
Scanning Speech Input
Computing Very less than
Milliseconds Microseconds Nanoseconds Picoseconds
Speed previous gen.
Very Large Smaller than
Appearance Smaller Handheld Very Small
(Room sized) previous gen.
Scientific
Commercial &
Application Scientific Commercial Public Use Commercial
Personal
Personal
UNIVAC PDP-8 Desktop
IBM 370 IBM PC
Example ENIAC IBM 1401 Laptop
PDP 11 Apple Macintosh
EDVAC CDC 1604 Smartphone
Classification of Computer
Classification of Computers on the basis of Size:-
• Microcomputers
Microcomputers are small, low-cost and single-user digital computer. They consist of CPU, input unit,
output unit, storage unit and the software. It includes desktop computers, notebook computers or
laptop, tablet computer, handheld computer, smart phones etc.
• Minicomputers
Minicomputers are digital computers, generally used in multi-user systems. They have high
processing speed and high storage capacity than the microcomputers. It can support 4–200 users
simultaneously. The users can access the minicomputer through their PCs or terminal. They are used
for real-time applications in industries, research centres etc.
• Mainframe Computers
Mainframe computers are multi-user, multi-programming and high-performance computers. They
operate at a very high speed, have very large storage capacity and can handle the workload of many
users. They are large and powerful systems generally used in centralized databases. They are used in
organizations like banks or companies, where many people require frequent access to the same data.
• Supercomputers
Supercomputers are the fastest and the most expensive machines. They have high processing speed
compared to other computers. The speed of a supercomputer is generally measured in FLOPS
(FLoating point Operations Per Second). Some of the faster supercomputers can perform trillions of
calculations per second. Supercomputers are built by interconnecting thousands of processors that
can work in parallel.
• Workstation
Those are the computers designed to primarily to be used by single user at a time. They run multi-
user operating systems. They are the ones which we use for our day to day personal / commercial
work.
• Information Appliances
They are the portable devices which are designed to perform a limited set of tasks like basic
calculations, playing multimedia, browsing internet etc.
• Embedded Computers
They are the computing devices which are used in other machines to serve limited set of
requirements. They follow instructions from the non-volatile memory and they are not required to
execute reboot or reset. The processing units used in such device work to those basic requirements
only and are different from the ones that are used in personal computers- better known as
workstations.
Storage
Devices
• Input
The computer accepts raw input data from the user via an input device like keyboard. The input data
can be characters, word, text, sound, images, document, etc.
• Processing
The computer processes the input data. For this, it performs some actions on the data by using the
instructions or program given by the user of the data. During processing, the data, instructions and
the output are stored temporarily in the computer’s main memory.
• Output
The output is the result generated after the processing of data. The output may be in the form of
text, sound, image, document, etc. The computer may display the output on a monitor, send output
to the printer for printing, play the output, etc.
• Storage
The input data, instructions and output are stored permanently in the secondary storage devices like
disk or tape. The stored data can be retrieved later, whenever needed.
Graphic Design
Light Pen
Text Messaging
Display Output on a
Monitor
Screen
Prints Information on
Printer
paper
Project Output on a
Projector
Screen
Examples
• Memory Unit
Memory unit stores the data, instructions, intermediate results and output, temporarily, during the
processing of data. This memory is also called the main memory or primary memory of the computer.
The input data that is to be processed is brought into the main memory before processing. The
instructions required for processing of data and any intermediate results are also stored in the main
memory. The output is stored in memory before being transferred to the output device. Another kind
of storage unit is also referred to as the secondary memory of the computer. The data, the programs
and the output are stored permanently in the storage unit of the computer. Magnetic disks, optical
disks and magnetic tapes are examples of secondary memory.
• Memory Representation
The computer memory stores different kinds of data like input data, output data,
intermediate results, etc., and the instructions. Binary digit or bit is the basic unit of memory.
A bit is a single binary digit, i.e., 0 or 1. A bit is the smallest unit of representation of data in a
computer. However, the data is handled by the computer as a combination of bits. A group
of 8 bits form a byte. One byte is the smallest unit of data that is handled by the computer.
One byte can store 28, i.e., 256 different combinations of bits, and thus can be used to
represent 256 different symbols. In a byte, the different combinations of bits fall in the range
00000000 to 11111111. A group of bytes can be further combined to form a word. A word
can be a group of 2, 4 or 8 bytes.
• Memory Hierarchy
The memory is characterized on the basis of two key factors—capacity and access time.
Capacity is the amount of information (in bits) that a memory can store. Access time is the
time interval between the read/ write request and the availability of data. The lesser the
access time, the faster is the speed of memory.
Problem: We want the memory with fastest speed and largest capacity. However, the cost of fast
memory is very high.
Solution: The computer uses a hierarchy of memory that is organized in a manner to enable the
fastest speed and largest capacity of memory.
By: Piyush Sharma
Page 10 of 13
C
A CPU
S Registers
C P
P Cache Memory
O A
E
S C Random Access Memory
E
T I
D Hard Disk
T
Y External Storage
The internal memory and external memory are the two broad categories of memory used in
the computer.
1. Internal Memory
The key features of internal memory are Limited storage capacity, Temporary storage,
Fast access, and High cost. Registers, Cache memory, RAM and ROM constitute the
Internal Memory.
a. CPU Registers
Registers are very high-speed storage areas located inside the CPU. After CPU
gets the data and instructions from the cache or RAM, the data and
instructions are moved to the registers for processing. Since CPU uses registers
for the processing of data, the number of registers in a CPU and the size of
each register affect the power and speed of a CPU. The more the number of
registers (ten to hundreds) and bigger the size of each register (8 bits to 64
bits), the better it is.
b. Cache Memory
Cache memory is placed in between the CPU and the RAM. Cache memory is
a fast memory, faster than the RAM. When the CPU needs an instruction or
data during processing, it first looks in the cache. If the information is present
in the cache, it is called a cache hit, and the data or instruction is retrieved
from the cache. If the information is not present in cache, then it is called a
cache miss and the information is then retrieved from RAM.
2. Secondary Memory
The secondary memory is also called the storage device of computer. In comparison
to the primary memory, the secondary memory stores much larger amounts of data
and information for extended periods of time (until the user deletes it or the storage
gets corrupted). The data and instructions stored in secondary memory must be
fetched into RAM before processing is done by CPU. The information stored in storage
devices can be accessed in two ways:
a. Sequential access
Sequential access means that computer must run through the data in
sequence, starting from the beginning, in order to locate a particular piece of
data. Magnetic tape is an example of sequential access device.
b. Direct access
Direct access devices are the ones in which any piece of data can be retrieved
in a non-sequential manner by locating it using the data’s address. It accesses
the data directly, from a desired location. Magnetic disks (Floppy & Hard disk)
and optical disks (CD & DVD) are examples of direct access devices.
Comparison between
Random Access Memory (RAM) & Read Only Memory (ROM)
Parameter Random Access Memory (RAM) Read Only Memory (ROM)
ROM is a non-volatile memory that
RAM is a volatile memory that could store
Data-Retention could retain the data even when the
the data as long as the power is supplied.
power is turned off.
Read/Write Read and write operations are supported. Only read operations are supported.
It is typically used to store firmware
Used to store the data that has to be which is used to initialize and control
Use
currently processed by CPU temporarily. hardware components of the
computer.
Speed It is a high-speed memory. It is much slower than the RAM.
CPU cannot easily access data stored
CPU Interaction CPU can easily access data stored in RAM.
in ROM.
Large size with higher capacity, concerning Small size with less capacity,
Size and Capacity
ROM. concerning RAM.
Used as/in CPU Cache, Primary memory. Firmware
The data stored is not as easily
Accessibility The data stored is easily accessible.
accessible as in the concerning RAM.
Cost RAM is costlier than ROM. ROM is cheaper than RAM.
A RAM chip can store only a few gigabytes A ROM chip can store multiple
Chip Size
(GB) of data. megabytes (MB) of data.
Used to store firmware, BIOS, and
Used for the temporary storage of data
Function other data that needs to be
currently being processed by the CPU.
retained.
• Using the Computer Memory
The computer starts using the memory from the moment the computer is switched on, till
the time it is switched off. Following explains the roles of ROM & RAM respectively:
By: Piyush Sharma
Page 13 of 13
Note: Sometimes, when you write a program and the power goes off, your program is lost if you
have not saved it. This is because your program was in the RAM and was not saved on the
secondary memory; the content of the RAM gets erased when the power is switched off.