Introduction To Computer
Introduction To Computer
Computers are machines that perform tasks or Digital Computers are generally classified by
calculations according to a set of instructions or size and power as follows
programs.
Micro Computer
It is an electronic device used to store data and Mini Computer
gives the results accurately within a fraction of a Mainframe Computer
second. Super Computer
It mainly consists of four basic units such as, Micro Computer is a small, relatively
inexpensive computer with a microprocessor as
Input Unit
its CPU. The invention of the microprocessor
Storage Unit
(single-chip CPU) gave birth to the much
CPU cheaper microcomputers.
Output Unit
Micro Computers are commonly divided into
Analog Computer four types such as
An analog computer represents the data as Desktop
physical quantities and operates on the data by
Laptop
manipulating the quantities. It is designed to
Notebook
process data in which the variable quantities
PDA (Personal Digital Assistant)
vary continuously.
Desktop
Hybrid Computer
A desktop computer is a personal computer (PC)
A hybrid is a combination of digital and analog
in a form intended for regular use at a single
computers. It combines the best features of
location. Early desktop computers are designed
both types of computers, i.e. It has the speed of
to lie flat on the desk, while modern towers
an analog computer and the memory and
stand upright. Most modern desktop computers
accuracy of a digital computer. It accepts analog
have separate screens and keyboards.
signals, converts them into digital, and
processes them in digital form. A hybrid Laptop Computer
computer may use or produce analog data or
A laptop is a portable computer that has the
digital data. It accepts a continuously varying
same capabilities as a desktop but is small
input, which is then converted into a set of
enough for easy mobility.
discrete values for digital processing.
Notebook Computer
Digital Computer
A notebook computer has a keyboard with an A computer can be categorized according to:
attached screen. A notebook's screen is thinner
Speed
than the usual desktop computer monitor
Accuracy
because the machine is designed to be portable,
which is why the notebook itself is small, Versatility
compact, and lightweight. Reliability
Power of remembering
Personal Digital Assistant Diligence
A Personal Digital Assistant (PDA) is a device Storage
similar to a computer that fits in the palm of Speed
users' hands and allows them to collect
information such as contacts, appointments, Computers work at an incredible speed. It can
files, programs, and more. carry out instructions at a very high speed. A
powerful computer is capable of performing
Mini Computer about 3-4 million simple instructions per
Mini computers were designed for control, second. It can perform arithmetic and logical
instrumentation, human interaction, and operations within a fraction of a second.
communication switching as it is distinct from Accuracy
calculation and record keeping. A small, multi-
user computer that can support 10 to a hundred The computer provides a high degree of
users simultaneously. accuracy. Computers perform all jobs with 100%
accuracy. The degree of accuracy of a computer
Mainframe Computer depends on the instruction and processor type.
Mainframe Computers is a powerful multi-user Versatility
computer that can support thousands of users
simultaneously. Mainframe computers can also The computer is versatile in nature. It can
process data at very high speeds, i.e., hundreds perform different types of tasks easily. At one
of million instructions per second and they are moment users can use the computer to prepare
also quite expensive. Normally, they are used in a letter document and in the next moment, they
banking, airlines, and railways, etc. for their may play music or print a document.
applications. Power of remembering
Super Computer A computer can store and recall any
Super Computers are best in terms of information because it has secondary storage.
processing capacity and also the most expensive All information can be retained as long as
one. An extremely fast computer that can desired by the user and that can be recalled
perform hundreds of millions of instructions per almost simultaneously and accurately even after
second. several years.
What are the characteristics of a computer? Computers can perform long and complex
calculations with the same speed and accuracy
Computers have some important features from the start till the end. Being a machine, a
which have made them so popular.
computer does not suffer from the human traits Input Unit
of tiredness and lack of concentration.
An input device is hardware or peripheral
Storage device used to send data to a computer. An
input device allows users to communicate and
A large volume of data and information can be
feed instructions and data to computers for
stored in the computer and also retrieved
processing, display, storage, and/or
whenever required. The computer has two
transmission.
types of storage. They are Primary storage and
Secondary storage. The important and most commonly used input
devices are
In Primary Storage, a limited amount of data
can be stored temporarily like RAM, ROM. Keyboard
Mouse
Secondary storage can store a large amount of
data permanently like a floppy and compact Other input devices are
disk.
Joystick
Components of Computer System Scanner
Barcode Reader
What are the components of a computer
system? CPU (Processing Unit)
The computer is an electronic device that The CPU is the heart of the computer, it is the
accepts (reads) data from the user and part of a computer that interprets and executes
processes the data by performing calculations the instruction.
and operations on it and generates (writes) the
desired output. The two components in the CPU are
A computer consists of four major components Arithmetic and logic unit (ALU)
such as Control Unit (CU)
Input Devices (Input Unit) The ALU performs arithmetic and logical
CPU (Processing Unit) operations. Arithmetic operations include
Memory (Storage Unit) addition, subtraction, multiplication, and
Output Devices (Output Unit) division. Logical operations include comparing
numbers, letters, and special characters. The
ALU is a fundamental building block of the
Central Processing Unit of a computer.
Monitors
Printer
Graphic Plotter
The Design is based on a fixed architecture. The Steps to find the CPU speed in the different
CU is made up of flip-flops, logic gates, digital operating system
circuits, and encoder & decoder.
To find the CPU speed in Windows XP “click the
b. Micro-program control START button, then scroll go to my computer
and right-click on that and select Properties”.
Micro-programs are stored in a special control
memory and are based on flowcharts. They are Users can also find the CPU speed by the Help
replaceable and ideal because of their and Support Center.
simplicity.It directs all input and output flow,
To find the CPU speed in Vista and Windows 7
fetches code for instructions from
“click the START button and scroll to Control
microprograms, and directs other units and
Panel then select the System and Security, in
models by providing control and timing signals.
that click on the System”.
For checking CPU speed in Macs “ click on the The Memory Unit is the part of the computer
Apple menu and select About this Mac". that holds data and instructions for processing.
It stores program results or any kind of
For advanced Windows users of Windows XP
information.
“click the START button and select RUN “.
Memory stores binary information i.e. 0's and
Booting
1's. Memory is measured in bytes.
Booting is the initialization of the computerized
Types of Memory
system. The booting process can be “hard”
when electrical power to the CPU is switched The computer memory is divided into two
from off to on. Soft booting can be initiated by types, they are
hardware such as a button press, or by software
Primary or Main memory
command.
Secondary memory
A boot loader is a computer program that loads
an operating system or some other software for
the computer.
The small program stored in the boot sector is RAM (Random Access Memory)
then executed and the operating system will ROM (Read Only Memory)
begin to load. To be a valid boot sector, the
RAM (Random Access Memory)
two-byte hex word 0xAA55, called the boot
sector signature, must exist at the end of the Random Access Memory is the central storage
sector. Otherwise, either the BIOS or MBR code unit in a computer system. The information
will report an error message and halt any OS stored in the RAM is typically loaded from the
bootstrapping process. computer's hard disk and includes data related
to the operating system and certain
Memory
applications.
Hierarchy Memory
There are primarily two forms of RAM
Memory
Static RAM (SRAM) developed that can be erased and
Dynamic RAM (DRAM) reprogrammed.
In SRAM, a bit of data is stored using the state EPROM stands for Erasable Programmable
of a flip-flop. This is most expensive among Read-Only Memory. This type of memory uses
other forms of RAMs, but is generally faster and floating-gate transistors and can be erased by
requires less power than DRAM and, in modern strong ultraviolet light.
computers, is often used as cache memory for
EEPROM
the CPU.
EEPROM stands for Electrically Erasable
Dynamic RAM (DRAM)
Programmable Read-Only Memory. EEPROM
Widely used in modern computers as primary can be erased with an electrical charge and is
memory, DRAM is slower than SRAM but is used in flash memory
inexpensive due to its one transistor-one
Memory
capacitor paired assembly of memory storage.
Secondary Memory
ROM (Read Only Memory)
Secondary Memory refers to storage devices,
The CPU can only fetch or read instructions
such as hard drives and Solid State Drives (SSD).
from ROM. ROM comes with instructions
It may also refer to removable storage media,
permanently stored inside. And these
such as USB flash drives, CDs, and DVDs.
instructions cannot be overwritten by the
Secondary memory is much slower than
computer's CPU.
primary memory, it typically offers a far greater
Types of ROM storage capacity.
CD-ROM stands for CD-Read Only Memory and Most CPUs have different independent caches,
they function in the same way as Read Only including instruction and data caches, where
Memory does. the data cache is usually organized as a
hierarchy of more cache levels (L1, L2, etc.).
CD-RW Stands for CD-Rewritable, these disks
can be erased and rewritten at any time When the processor needs to read from or
write to a location in main memory, it first
DVD checks whether a copy of that data is in the
DVD is an abbreviation of Digital Versatile Disc cache or not. If so, the processor immediately
and is an optical disc storage media format that reads from or writes to the cache, which is
can be used for data storage. The DVD supports much faster than reading from or writing to the
disks with capacities of 4.7 GB to 17 GB and main memory.
access rates of 600 KBps to 1.3 MBps. A Cache Memory Entries
standard DVD disc store up to 4.7 GB of data.
Data is transferred between memory and cache
There are two types of DVD's in blocks of fixed size, called cache lines. When
DVD-ROM stands for DVD-Read Only Memory a cache line is copied from memory into the
and they function in the same way as Read Only cache, a cache entry is created.
Memory does.
A cache entry will include the copied data as measure of the effectiveness of the cache for a
well as the requested memory location that is given program or algorithm. Read misses delay
called a tag. When a processor needs to read or execution because they require data to be
write a location in main memory, it first checks transferred from memory much more slowly
the corresponding entry in the cache. The cache than the cache itself. Write misses may occur
checks for the contents of the requested without such a penalty since the processor can
memory location in any cache lines that contain continue execution while data is copied to the
the address. main memory in the background.
If the processor finds that the memory location The cache may have to evict one of the existing
is in the cache, a cache hit has occurred. If a entries, for the new entry on cache miss in
cache hit, the processor immediately reads or order to make room. It uses to choose the entry
writes the data in the cache line. to evict is called the replacement policy. The
fundamental problem with any replacement
Cache Miss
policy is that it must predict which existing
If the processor does not find the memory cache entry is least likely to be used in the
location in the cache, a cache miss has future. Predicting the future is difficult, so there
occurred. In cache miss, the cache allocates a is no perfect way to choose among the variety
new entry, copies data from the main memory. of replacement policies available.
Then the request is fulfilled from the contents
Write Policies
of the cache.
If data is written to the cache, at some point it
Structure of Cache Entry
must also be written to the main memory. The
Cache row entries usually have the following timing of this write is known as the write policy.
structure In a write-through cache, every write to the
cache causes a write to the main memory.
Tag Alternatively, in a write-back or copy-back
data block cache, writes are not immediately mirrored to
flag bits the main memory. Instead, the cache tracks
The data block (cache line) contains the actual which locations have been written over (these
data fetched from the main memory. locations are marked dirty). The data in these
locations are written back to the main memory
The tag contains (part of) the address of the only when that data is evicted from the cache.
actual data fetched from the main memory.
Cache Performance