cpf unit 1
cpf unit 1
Unit-1
Computer
A computer can be defined as an electronic device that
accepts raw data as input and processes it with a set of
instructions (a program) to produce the result as output.
It renders output after performing mathematical and
logical operations and can save the output for future use.
Generations of Computer
Generation refers to development that changes the way
computers work.
Generations of computer are mainly divided according to
the development of computer technology.
o Honeywell 400
o UNIVAC 1108
o IBM 7094
o PDP-8
o ICL 2900
o IBM 360
o PUP 11
o IBM 4341
o DEC 10
Components Of Computer
o Output Unit
o Memory Unit
o CPU
Input Unit
1. This unit is responsible for handling all the inputs to
the computer.
2. It accepts (or reads) instructions and data from outside
world.
3. It converts these instructions and data in computer
acceptable form
4. It supplies the converted instructions and data to the
computer system for further processing.
5. Input devices include keyboard, mouse, joystick etc.
Output Unit
1. This unit is responsible for representing the output to
the user of computer.
2. It converts these coded results to human acceptable
(readable) form
3. It supplies the converted results to outside world
4. Output devices include monitor, printer, speakers etc.
Memory Unit
1. The data is first stored in storage unit for faster access
and processing.
2. It stores data and instructions required for processing
(received from input devices)
3. Intermediate results of processing
4. Final results of processing, before they are released to
an output device
Primary Storage
Primary storage is used to hold running program
instructions
Used to hold data, intermediate results, and results
of ongoing processing of job(s)
Fast in operation
Small Capacity
Expensive
Volatile (looses data on power dissipation)
Example- RAM and ROM(non volatile)
Secondary Storage
Used to hold stored program instructions
Used to hold data and information of stored jobs
Slower than primary storage
Large Capacity and lot cheaper
Non volatile (Retains data even without power)
Example- CD, hard drive etc
1. Speed
The processing speed of computer is very high.
Executing mathematical calculation, computer works
faster and more accurately than human. A computer
is a time saving device.
2. Diligence
A human cannot work for several hours without
resting, yet a computer never tires. A computer can
conduct millions of calculations per second with
complete precision without stopping. A computer
can consistently and accurately do millions of jobs or
calculations.
3. Reliability
A computer is reliable. The output results never
differ unless the input varies. the output is totally
depend on the input. When an input is the same the
output will also be the same.
4. Automation
The world is quickly moving toward AI (Artificial
Intelligence)-based technology. A computer may
conduct tasks automatically after instructions are
programmed. By executing jobs automatically, this
computer feature replaces thousands of workers.
5. Versatility
Versatility refers to a capacity of computer.
Computer perform different types of tasks with the
same accuracy and efficiency. A computer can
perform multiple tasks at the same time this is
known as versatility. For example, while listening to
music, we may develop our project using PowerPoint
6. Memory
A computer can store millions of records. These
records may be accessed with complete precision.
Computer memory storage capacity is measured in
Bytes, Kilobytes(KB), Megabytes(MB), Gigabytes(GB),
and Terabytes(TB). A computer has built-in memory
known as primary memory.
7. Accuracy
When a computer performs a computation or
operation, the chances of errors occurring are low.
Errors in a computer are caused by human’s
submitting incorrect data. A computer can do a
variety of operations and calculations fast and
accurately.
Limitations Of Computer
1) Supercomputer
i.Supercomputers are the biggest and fastest computers.
ii.They are designed to process huge amount of data. A
supercomputer can process trillions of instructions in a
second.
iii.Supercomputers are particularly used in scientific and
engineering applications such as weather forecasting,
scientific simulations and nuclear energy research.
Characteristics of SuperComputers:
o It produces excellent results in animations.
2.Mainframe computers
Mainframe computers are designed to support hundreds
or thousands of users simultaneously. They can support
multiple programs at the same time. These features of
mainframe computers make them ideal for big
organizations like banking and telecom sectors, which
need to manage and process a high volume of data.
Characteristics of Mainframe Computers:
o It can process huge amount of data, e.g. millions of
memory management.
o It has the ability to share or distribute its workload
3) Minicomputer
It is a midsize multiprocessing computer. It consists of
two or more processors and can support 4 to 200 users
at one time. Mini computers are used in institutes and
departments for tasks such as billing, accounting and
inventory management. A minicomputer lies between
the mainframe and microcomputer as it is smaller than
mainframe but larger than a microcomputer.
Characteristics of minicomputer:
o It is light weight that makes it easy to carry and fit
anywhere.
o It is less expensive than mainframe computers.
1) Analogue Computer
Analogue computers are designed to process
analogue data.
Analogue data is continuous data that changes
continuously and cannot have discrete values.
Analogue computers are used where we don't need
exact values always such as speed, temperature,
pressure and current.
Analogue computers directly accept the data from
the measuring device without first converting it into
numbers and codes.
They measure the continuous changes in physical
quantity and generally render output as a reading on
a scale.
Speedometer and mercury thermometer are
examples of analogue computers.
2) Digital Computer
Digital computer is designed to perform calculations
and logical operations at high speed.
It accepts the raw data as input in the form of digits
or binary numbers (0 and 1) and processes it with
programs stored in its memory to produce the
output.
All modern computers like laptops, desktops
including smartphones that we use at home or office
are digital computers.
Advantages of digital computers:
o It allows you to store a large amount of information
3) Hybrid Computer
Hybrid computer has features of both analogue and
digital computer.
It is fast like an analogue computer and has memory
and accuracy like digital computers.
It can process both continuous and discrete data.
It accepts analogue signals and convert them into
digital form before processing.
It is widely used in specialized applications where
both analogue and digital data is processed.
For example, a processor is used in petrol pumps
that converts the measurements of fuel flow into
quantity and price.
Advantages of using hybrid computers:
o Its computing speed is very high due to the all-
real-time.
o It helps in the on-line data processing.
Computer Memory
Computer memory is the storage area used to store data,
information or instruction temporarily or permanently. It
stores all the inputs before processing and the output are
stored after processing of data.
Nibble
Byte
Kilo Byte
MegaByte
Giga Byte
Tera Byte
Peta Byte
Exa Byte
o DRAM
Characteristics of DRAM
1. It requires continuously refreshed to retain the data.
2. It is slower than SRAM
3. It holds a large amount of data
4. It is the combination of capacitor and transistor
5. It is less expensive as compared to SRAM
6. Less power consumption
SRAM: SRMA (Static Random-Access Memory) is a type
of RAM used to store static data in the memory. It means
to store data in SRAM remains active as long as the
computer system has a power supply. However, data is
lost in SRAM when power failures have occurred.
Characteristics of Static Ram
1. It does not require to refresh.
2. It is faster than DRAM
3. It is expensive.
4. High power consumption
5. Longer life
6. Large size
7. Uses as a cache memory
Types Of ROM
1. MROM (Masked Read Only Memory):
MROM is the oldest type of read-only memory
whose program or data is pre-configured by the
integrated circuit manufacture at the time of
manufacturing. Therefore, a program or instruction
stored within the MROM chip cannot be changed by
the user.
2.PROM (Programmable Read Only Memory):
It is a type of digital read-only memory, in which the
user can write any type of information or program
only once. It means it is the empty PROM chip in
which the user can write the desired content or
program only once using the special PROM
programmer or PROM burner device; after that, the
data or instruction cannot be changed or erased.
3.EPROM (Erasable and Programmable Read Only
Memory):
It is the type of read only memory in which stored
data can be erased and re-programmed only once in
the EPROM memory. It is a non-volatile memory chip
that holds data when there is no power supply and
can also store data for a minimum of 10 to 20 years.
In EPROM, if we want to erase any stored data and
re-programmed it, first, we need to pass the
ultraviolet light for 40 minutes to erase the data;
after that, the data is re-created in EPROM.
4.EEPROM (Electrically Erasable and Programmable
Read Only Memory):
The EEROM is an electrically erasable and
programmable read only memory used to erase
stored data using a high voltage electrical charge and
re-programmed it. It is also a non-volatile memory
whose data cannot be erased or lost; even the
power is turned off. In EEPROM, the stored data can
be erased and reprogrammed up to 10 thousand
times, and the data erase one byte at a time.
Secondary Memory
Secondary memory is a permanent storage space to
hold a large amount of data.
Secondary memory is also known as external
memory that representing the various storage media
(hard drives, USB, CDs, flash drives and DVDs) on
which the computer data and program can be saved
on a long term basis.
It is cheaper and slower than the main memory.
Unlike primary memory, secondary memory cannot
be accessed directly by the CPU.
Instead of that, secondary memory data is first
loaded into the RAM (Random Access Memory) and
then sent to the processor to read and update the
data.
Secondary memory devices also include magnetic
disks like hard disk and floppy disks, an optical disk
such as CDs and CDROMs, and magnetic tapes.
Features of Secondary Memory
o Its speed is slower than the primary/ main memory.
o Store data cannot be lost due to non-volatile nature.
o It can store large collections of different types, such
as audio, video, pictures, text, software, etc.
o All the stored data in a secondary memory cannot be
lost because it is a permanent storage area; even the
power is turned off.
o It has various optical and magnetic memories to
store data.
Secondary Storage Devices
Used in a computer system to overcome the limitations
of primary storage
Has virtually unlimited capacity because the cost per bit
of storage is very low
Used to store large volumes of data on a permanent
basis
Also known as auxiliary memory
Sequential Access Storage Device
1.It is a class of data storage devices that read stored
data in a sequence.
2.Arrival at the desired storage location may be preceded
by sequencing through other locations
3.Data can only be retrieved in the same sequence in
which it is stored Access time varies according to the
storage location of the information being accessed
4.Suitable for sequential processing applications where
most, if not all, of the data records need to be processed
one after another
5.Magnetic tape is a typical example of such a storage
Magnetic Tape
1.Plastic ribbon is coated with a magnetizable recording
material such as iron-oxide or chromium dioxide
2.Data are recorded on the tape in the form of tiny
invisible magnetized and non-magnetized spots
(representing 1s and 0s) on its coated surface
3.Devices that record and play audio and video using
magnetic tape are tape recorders and videotape
recorders.
4.A device that stores data on magnetic tape is known as
a tape drive.
5.A magnetic tape reel/cartridge/cassette has to be first
loaded on a tape drive for reading/writing of data on it.
Advantages
1.Storage capacity is virtually unlimited because as many
tapes as required can be used for storing very large data
sets
2.Cost per bit of storage is very low for magnetic tapes.
3.Tapes can be erased and reused many times
4.Tape reels and cartridges are compact and light in
weight
5.Easy to handle and store.
6.Very large amount of data can be stored in a small
storage space
7.Compact size and light weight
8.Magnetic tape reels and cartridges are also easily
portable from one place to another
9.Often used for transferring data and programs from
one computer to another that are not linked together
Disadvantages
1.Due to their sequential access nature, they are not
suitable for storage of those data that frequently require
to be accessed randomly
2.Must be stored in a dust-free environment because
specks of dust can cause tape-reading errors
3.Must be stored in an environment with properly
controlled temperature and humidity levels
4.Tape ribbon may get twisted due to warping, resulting
in loss of stored data
5.Should be properly labeled so that some useful data
stored on a particular tape is not erased by mistake
Direct Access Storage Devices
A direct-access storage device (DASD) is another name
for secondary storage devices that store data in discrete
locations with a unique address, such as hard disk drives,
optical drives and most magnetic storage devices. A
direct access storage device is a type of device that
supports direct access to stored data.
Magnetic disks:
i. A magnetic disk is a storage device that uses a
magnetization process to write, rewrite and access
data.
ii. It is covered with a magnetic coating.
iii. Data can be modified or can be deleted easily in the
magnetic disk memory.
iv. It also allows random access to data.
v. Hard disks and floppy disks are common examples of
magnetic disks.
a. Floppy Disk: A floppy disk is a flexible disk with a
magnetic coating on it, and it is packaged inside a
protective plastic envelope. These are among the
oldest portable storage devices that could store up
to 1.44 MB of data, but now they are not used due
to very little memory storage.
b. Hard Disk Drive (HDD):
i.Hard disk drive comprises a series of circular disks
called platters arranged one over the other almost ½
inches apart around a spindle.
ii.stores and retrieves data using magnetic
storage with one or more rigid rapidly
rotating platters coated with magnetic material.
iii.The platters are paired with magnetic heads,
usually arranged on a moving actuator arm, which
read and write data to the platter surfaces.
iv.Data is accessed in a random-access manner,
meaning that individual blocks of data can be stored
and retrieved in any order.
v.HDDs are a type of non-volatile storage
vi.A magnetic reader arm is used to read data from
and write data to the disks.
vii.A typical modern HDD has a capacity in terabytes
(TB)
Advantages:-
1.These are economical memory
2.Easy and direct access to data is possible.
3.It can store large amounts of data.
4.It has a better data transfer rate than magnetic tapes.
5.It has less prone to corruption of data as compared to
tapes.
Disadvantages:-
1.These are less expensive than RAM but more
expensive than magnetic tape memories.
2.It needs a clean and dust-free environment to store.
3.These are not suitable for sequential access.
Optical Disk
An optical disk is an electronic data storage medium that
can be written to and read from using a low-
powered laser beam. Most of today's optical disks are
available: compact disks (CDs), digital versatile disks
(DVDs).
Optical disks rely on a red or blue laser to record and
read data. Most of today's optical disks are flat,
circular.
Data is written to an optical disk in a radial pattern
starting near the center.
An optical disk drive uses a laser beam to read the
data from the disk.
An optical disc can store more data and has a longer
lifespan
All modern formats use the same basic sandwich of
materials structure.
The base is formed by using a hard-plastic substrate,
and a reflective layer of metallic foil is used for
encoding the digital data.
Next, a layer of clear polycarbonate protects the foil
and allows the laser beam to pass through to the
reflective layer.
Uses
o Used to transfer data to various devices.
o They are used to deliver the software to others.
o They help users to hold large amounts of data, like
videos, photos, music, and more.
o Also, optical media are used to get back up from a
local machine.
CD-Compact Discs
Computers can read and write to CDs and DVDs using a
CD writer or DVD writer drive.
Drives such as CD-R (compact disc recordable) and DVD-R
(digital versatile disc recordable) drives that read and
write information to discs are known as MO (magneto-
optic).
MO drives, such as CD-R and DVD-R drives, are used to
read and write information to discs (magneto-optic)
S.NO CD DVD
Accessibility It is directly accessible by the It is not directly accessible via the processor.
processor.
Other names It is also known as the main memory It is also known as the secondary or auxiliary
of the system. memory of a computer system.
Data The data that must be executed is It is utilized to store data that requires
copied to the main memory. should be stored permanently.
Access Speed The speed of accessing data is faster The speed of accessing data is slower in
in primary memory. secondary memory.
Size The size of primary memory is small. The size of secondary memory is large.
Types It is mainly of two types: RAM and Magnetic memory, semiconductor memory,
ROM. and optical memory are the three most
popular types of secondary memory.
Access It is accessed via the data bus. It is accessed via the input-output channel.
Cache Memory
Data in primary memory can be accessed faster than
secondary memory but still, access times of primary
memory are generally in a few microseconds, whereas
the CPU is capable of performing operations in
nanoseconds. Due to the time lag between accessing
data and acting on data performance of the system
decreases as the CPU is not utilized properly, it may
remain idle for some time. In order to minimize this time
gap new segment of memory is introduced known as
Cache Memory.
Role of Cache Memory
It provides faster access.
It acts buffer between CPU and main memory(RAM).
Primary role is to reduce average time taken to
access data, improving overall system performance.
3. Size Its size is very small as Its size is very large as compared to
compared to Virtual the Cache Memory.
Memory.