Fun Comp Notes
Fun Comp Notes
Fun Comp Notes
KOLLAM
Components of Computer
A computer is an electronic device that accepts data, performs operations, displays results, and stores the data
or results as needed. It is a combination of hardware and software resources that integrate together and provides various
functionalities to the user. Hardware is the physical components of a computer like a processor, memory devices,
monitor, keyboard, etc., while software is a set of programs or instructions that are required by the hardware resources
to function properly.
1. Input Unit
2. Central Processing Unit(CPU)
3. Output Unit
The input unit consists of input devices that are attached to the computer. These devices take input and
convert it into binary language that the computer understands. Some of the common input devices are keyboard,
mouse, joystick, scanner etc.
The Input Unit is formed by attaching one or more input devices to a computer.
A user input data and instructions through input devices such as a keyboard, mouse, etc.
The input unit is used to provide data to the processor for further processing.
Once the information is entered into the computer by the input device, the processor processes it. The
CPU is called the brain of the computer because it is the control centre of the computer. It first fetches instructions
from memory and then interprets them so as to know what is to be done. If required, data is fetched from memory
or input device. Thereafter CPU executes or performs the required computation, and then either stores the output
or displays it on the output device. The CPU has three main components, which are responsible for different
functions: Arithmetic Logic Unit (ALU), Control Unit (CU) and Memory registers
A. Arithmetic and Logic Unit (ALU): The ALU, as its name suggests performs mathematical calculations and
takes logical decisions. Arithmetic calculations include addition, subtraction, multiplication and division.
Logical decisions involve the comparison of two data items to see which one is larger or smaller or equal.
B. Control Unit: The Control unit coordinates and controls the data flow in and out of the CPU, and also controls
all the operations of ALU, memory registers and also input/output units. It is also responsible for carrying out
all the instructions stored in the program. It decodes the fetched instruction, interprets it and sends control signals
to input/output devices until the required operation is done properly by ALU and memory.
The Control Unit is a component of the central processing unit of a computer that directs the operation
of the processor.
It instructs the computer’s memory, arithmetic and logic unit, and input and output devices on how to
respond to the processor’s instructions.
In order to execute the instructions, the components of a computer receive signals from the control unit.
It is also called the central nervous system or brain of the computer.
C. Memory Registers: A register is a temporary unit of memory in the CPU. These are used to store the data,
which is directly used by the processor. Registers can be of different sizes(16 bit, 32 bit, 64 bit and so on) and
each register inside the CPU has a specific function, like storing data, storing an instruction, storing address of a
location in memory etc. The user registers can be used by an assembly language programmer for storing
operands, intermediate results etc. Accumulator (ACC) is the main register in the ALU and contains one of the
operands of an operation to be performed in the ALU.
3. Output Unit:
The output unit consists of output devices that are attached to the computer. It converts the binary data coming
from the CPU to human understandable form. The common output devices are monitor, printer, plotter, etc.
The output unit displays or prints the processed data in a user-friendly format.
The output unit is formed by attaching the output devices of a computer.
The output unit accepts the information from the CPU and displays it in a user-readable form.
Characteristics of a Computer
1. Speed: Computers can perform millions of calculations per second. The computation speed is extremely fast.
2. Accuracy: Because computers operate on pre-programmed software, there is no space for human error.
3. Diligence: They can perform complex and long calculations at the same time and with the same accuracy.
4. Versatile: Computers are designed to be versatile. They can carry out multiple operations at the same time.
5. Storage: Computers can store a large amount of data/ instructions in its memory, which can be retrieved at
any point of time.
The electrically conducting path along which data is transmitted inside any digital electronic device. A Computer
bus consists of a set of parallel conductors, which may be conventional wires, copper tracks on a PRINTED
CIRCUIT BOARD, or microscopic aluminum trails on the surface of a silicon chip. Each wire carries just one
bit, so the number of wires determines the most significant data WORD the bus can transmit: a bus with eight
wires can carry only 8-bit data words and hence defines the device as an 8-bit device.
System bus contains 3 categories of lines used to provide the communication between the CPU, memory
and IO named as:
2. Data Lines:
Used to carry the binary data between the CPU, memory and IO.
Bidirectional.
Based on the width of a data bus we can determine the word length of a CPU.
Based on the word length we can determine the performance of a CPU.
3. Control Lines:
Cache memory is an extremely fast memory type that acts as a buffer between RAM and the CPU.
Cache Memory holds frequently requested data and instructions so that they are immediately available
to the CPU when needed.
Cache memory is costlier than main memory or disk memory but more economical than CPU registers.
Cache Memory is used to speed up and synchronize with a high-speed CPU.
Cache Performance
When the processor needs to read or write a location in the main memory, it first checks for a corresponding
entry in the cache.
If the processor finds that the memory location is in the cache, a Cache Hit has occurred and data is read
from the cache.
If the processor does not find the memory location in the cache, a cache miss has occurred. For a cache
miss, the cache allocates a new entry and copies in data from the main memory, then the request is
fulfilled from the contents of the cache.
The performance of cache memory is frequently measured in terms of a quantity called Hit ratio.
1. Primary Cache: A primary cache is always located on the processor chip. This cache is small and its
access time is comparable to that of processor registers.
2. Secondary Cache: Secondary cache is placed between the primary cache and the rest of the memory. It
is referred to as the level 2 (L2) cache. Often, the Level 2 cache is also housed on the processor chip.
3. Spatial Locality of Reference: Spatial Locality of Reference says that there is a chance that the element
will be present in close proximity to the reference point and next time if again searched then more close
proximity to the point of reference.
4. Temporal Locality of Reference: Temporal Locality of Reference uses the Least recently used
algorithm will be used. Whenever there is page fault occurs within a word will not only load the word in
the main memory but the complete page fault will be loaded because the spatial locality of reference rule
says that if you are referring to any word next word will be referred to in its register that’s why we load
complete page table so the complete block will be loaded.
Motherboard
In a computer system, the motherboard is a main printed circuit. It is also called the main circuit board
or mainboard. It includes several components on a single platform. It allows communication between the RAM,
ROM, hard drive, and other computer hardware components. The motherboard is also called the backbone of a
computer.
The first motherboard was used in an IBM computer in the year 1981. Later, IBM also introduced the
full AT motherboard in 1984. After that, in 1985 the Baby AT motherboard was introduced and quickly filled
by western digital, in 1987 and the LPX motherboard was introduced. In July 1995, the first version of the ATX
motherboard was released by Intel. Later, Intel also introduced the micro ATX motherboard. As time passes
motherboards become more advanced in technology. In days, the advanced version of ATX is used.
A motherboard connected to a desktop computer case using standouts. These standouts are made with
lite metal or plastic screws and these standouts prevent the motherboard from touching the case of the computer.
If the motherboard keeps in touch with the computer case then some defects can arise in the motherboard.
Components of motherboards
Heat sink
Parallel port
Capacitor
Back pane connectors
Northbridge
Southbridge
Jumpers
IC (integrated circuit)
PCI slot
Memory slot
USB headers
Super I/O
Serial port connector
Serial ATA connections
System panel connectors
1. Heat Sink: A heat sink is used to maintain the required temperature of the processor and other
components to work properly because most of the components are made with semiconductor material.
We know that semiconductor material varies their resistant as changes in temperature. As usual heat sink
made using aluminum and copper alloy. There are two types of heat sinks available: active heat sinks and
passive heat sinks.
2. Parallel Port: A parallel port was used for old printers. It has a 25-pin female DB connector. These
multiple ports were used to send and receive data collection in a single go.
3. Capacitor: A capacitor is a two-terminal electrical device that is used to store energy electrostatically
in an electric field. It is also known as condensers.
4. Back Panel Connectors: Like its name, it is the back portion of the motherboard that allows connecting
peripherals such as to monitor, keyboard, mouse, speakers, etc.
5. Northbridge: It is an integrated circuit that is directly connected to the memory, AGP (Accelerated
Graphics Port), and CPU interface. This integrated circuit has a chipset that is responsible for connected
components with it. Or in other words, north bridge is used to providing a communication channel
between the CPU and the external devices.
6. Southbridge: It is also an IC on the motherboard, used as an I/O controller, and hard drive controller.
Dept: of Computer Science
7. Jumpers: Jumpers are small metal connectors to close off an electrical circuit. It is used to flow
electricity to some regions of the circuit board.
8. Integrated Circuit: The integrated circuit is a small chip that is used as an amplifier, timer, oscillator,
and it is also used in computer memory.
9. PCI Slot: PCI Slot stands for peripheral component interface slot. It is used to add internal components
to a desktop computer.
10. Memory Slot: A memory slot is used to insert RAM into a computer system. Usually, a motherboard
consists of two or four memory slots.
11. USB Headers: It is a collection of pins that are used to connect additional USB ports to the computer.
12. Super I/O: It is also an integrated circuit that is used on the mothers of PC.
13. Serial Port Connector: It is an interface to receive or transmit one-bit data on a computer system.
14. Serial ATA Connections: The serial ATA was introduced to replacement of parallel ATA. It can
provide 1.5Gbps of performance to every drive.
15. System Panel Connectors: It is also known as panel connectors that are used to control the power button,
reset button, lock button, and case speaker of a computer system.
Serial port
Parallel port
USB port
PS/2 port
VGA port
Modem port
FireWire Port
Sockets
Infrared Port
Game Port
Digital Video Interface(DVI) Port
Ethernet Port
A serial port is also called a communication port and they are used for connection of external devices like a
modem, mouse, or keyboard (basically in older PCs). Serial cables are cheaper to make in comparison to parallel
cables and they are easier to shield from interference. There are two versions of it, which are 9 pin model and 25
pin model. It transmits data at 115 KB/sec.
Parallel ports are generally used for connecting scanners and printers. It can send several bits at the same time
as it uses parallel communication. Its data transfer speed is much higher in comparison with the serial port. It is
a 25 pin model. It is also known as Printer Port or Line Printer Port.
4. PS/2 Port:
PS/2 ports are special ports used for connecting old computer keyboard and mouse. It was invented by IBM. In
old computers, there are minimum of two PS/2 Ports, each for the keyboard and the mouse. It is a 6 pin mini Din
connector.
5. VGA Port:
VGA ports also known as Video Graphic Array connector are those which connect the monitor to a computer’s
video card. VGA port has 15 holes and it is similar to the serial port connector. But VGA Ports have holes in it
and the serial port connector has pins in it.
6. Sockets:
Microphones and speakers are connected with the help of Sockets to the sound card of the computer.
7. FireWire Port:
8. Infrared Port:
An Infrared(IR) port is used to sends and receives infrared signals from other devices. It is a kind of wireless
type port with a limited range of 5-10ft.
9. Game Port:
These ports are used previously to connect a joystick to a PC. But nowadays it is replaced by USB ports.
As the name suggests, a Modem port is used to connects a PC’s modem to the telephone network.
DVI Port is used to connects LCD (flat panel) monitor to the computer’s high-end video graphic cards and it is
very popular among video card manufacturers.
Ethernet Port helps to connect to a network and high-speed Internet (provided by LAN or other sources). It
connects the network cable to a computer and resides in a Ethernet card. It provides a data travel speed of 10 Mb
to 1000 Mb (megabits) per second.
Expansion Card
An expansion card is an electronic card/board that is used to add extra functionality to a computer. It is
inserted into an expansion slot on the motherboard of a computer. Expansion cards contain edge connectors that
are used to create an electronic link between motherboard and card, thus enabling these two to communicate.
Many different classes of expansion card are available, including sound cards, video graphics cards, and
network cards and so on. All expansion cards are used to enhance the quality of their specific function. For
example, video graphics cards are used to enhance the video quality on a computer.
Primary memory
is directly accessible to the central processing unit (CPU) and includes any data actively or continuously
operated upon. Random access memory (RAM) is a good example of a primary memory type. Primary memory
allows for fast data access but is limited to smaller storage space.
Secondary memory
is not directly accessible by the CPU and is used for longer-term data storage. It is much slower to access
compared with primary memory, but it allows for much greater capacity. Secondary memory devices include
hard disks, solid state drives and optical drives.
Memory devices may also be grouped as volatile or non-volatile, depending on the device's behavior
when power is interrupted. Volatile memory (more frequently known as temporary memory) retains information
as long as it is supplied with power, but experiences the total loss of stored memory when power is cut off.
Conversely, non-volatile memory retains stored data even when not powered. Because of this fact, non-volatile
As semiconductor devices, memory chips are composed of transistors and capacitors: the capacitors serve
to store two binary logic bits (0 or 1), while transistors allow reading and writing of data to the capacitors. A
memory chip is comprised of thousands of these tiny circuits, known as memory cells. Data stored in the cells
can be nondestructively accessed (or "read") by means of binary memory addresses assigned to each cell. While
early chips could hold only a few bits of information, the largest semiconductor memory chips can now store
several gigabits, with higher capacities constantly being developed and introduced.
Chip Types
Memory chips are primarily identified and specified based on their technology type, which includes their
methods for reading, writing, and storing data. Before exploring each specific type, it is helpful to examine two
broader classes of memory chips distinguished by their data storage qualities.
is used as a generic term for any memory chip that can be written to and read from which is not a read-only
(ROM) chip, as described below. Most RAM is classified as volatile; special types of non-volatile RAM
(NVRAM), such as ferroelectric RAM (FRAM), are non-volatile. RAM types include:
is more difficult to modify than RAM and is normally used to read permanent data. ROM is typically non-
volatile and is used to store frequently-read (but not written/modified) system software. ROM types include:
Time of
Type Volatility Subtype Applications/description
introduction
Byte-
DRAM Volatile Main memory 1969
addressable
Byte-
SRAM Volatile High speed buffers/caches 1970s
addressable
Non- Rewritable-
EPROM Microcontroller programming Early 1970s
volatile when-removed
Byte-
Non-
EEPROM addressable Small data storage Early 1980s
volatile
(symmetric)
NVRAM
(includes Non- Byte- Effectively backed-up RAM
1980s-present
NVSRAM & volatile addressable chips
FRAM)
1. Primary Memory
2. Secondary Memory
3. Tertiary Memory
1. Primary Memory: It is also known as internal memory and main memory. This is a section of the CPU
that holds program instructions, input data, and intermediate results. It is generally smaller in size. RAM
(Random Access Memory) and ROM (Read Only Memory) are examples of primary storage.
2. Secondary Memory: Secondary storage is a memory that is stored external to the computer. It is mainly
used for the permanent and long-term storage of programs and data. Hard Disks, CDs, DVDs, Pen/Flash
drives, SSD, etc, are examples of secondary storage.
3. Tertiary Memory: Tertiary Memory is a type of Memory that is rarely used in personal computers and due
to this, tertiary memory is not considered to be an important one. Tertiary memory works automatically
without human intervention.
Now we will discuss different types of storage devices available in the market. These storage devices have
their own specification and use. Some of the commonly used storage devices are:
RAM:
It stands for Random Access Memory. It is used to store information that is used immediately or we
can say that it is a temporary memory. Computers bring the software installed on a hard disk to RAM to
process it and to be used by the user. Once, the computer is turned off, the data is deleted. With the help
of RAM, computers can perform multiple tasks like loading applications, browsing the web, editing a
spreadsheet, experiencing the newest game, etc. It allows you to modify quickly among these tasks,
remembering where you’re in one task once you switch to a different task. It is also used to load and run
applications, like your spreadsheet program, answers commands, like all edits you made within the
1. SRAM:
It stands for Static Random Access Memory. It consists of circuits that retain stored
information as long as the power supply is on. It is also known as volatile memory. It is used to
build Cache memory. The access time of SRAM is lower and it is much faster as compared to
DRAM but in terms of cost, it is costly as compared to DRAM.
2. DRAM:
It stands for Dynamic Random Access Memory. It is used to store binary bits in the form
of electrical charges that are applied to capacitors. The access time of DRAM is slower as
compared to SRAM but it is cheaper than SRAM and has a high packaging density.
3. SDRAM:
It stands for Synchronous Dynamic Random Access Memory. It is faster than DRAM. It
is widely used in computers and others. After SDRAM was introduced, the upgraded version of
double data rate RAM, i.e., DDR1, DDR2, DDR3, and DDR4 was entered into the market and
widely used in home/office desktops and laptops.
ROM:
It stands for Read-Only Memory. The data written or stored in these devices are non-volatile, i.e,
once the data is stored in the memory cannot be modified or deleted. The memory from which will only
read but cannot write it. This type of memory is non-volatile. The information is stored permanently
during manufacture only once. ROM stores instructions that are used to start a computer. This operation
is referred to as bootstrap. It is also used in other electronic items like washers and microwaves. ROM
chips can only store a few megabytes (MB) of data, which ranges between 4 and 8 MB per ROM chip.
There are two types of ROM:
1. PROM:
PROM is Programmable Read-Only Memory. These are ROMs that can be programmed.
A special PROM programmer is employed to enter the program on the PROM. Once the chip has
been programmed, information on the PROM can’t be altered. PROM is non-volatile, that is data
is not lost when power is switched off.
2. EPROM:
3. EEPROM:
Floppy Disk:
Floppy Disk is also known as a floppy diskette. It is generally used on a personal computer to
store data externally. A Floppy disk is made up of a plastic cartridge and secured with a protective case.
Nowadays floppy disk is replaced by new and effective storage devices like USB, etc.
Hard Disk:
Hard Disk is a storage device (HDD) that stores and retrieves data using magnetic storage. It is
a non-volatile storage device that can be modified or deleted n number of times without any problem.
Most computers and laptops have HDDs as their secondary storage device. It is actually a set of stacked
disks, just like phonograph records. In every hard disk, the data is recorded electromagnetically in
concentric circles or we can say track present on the hard disk, and with the help of a head just like a
phonograph arm(but fixed in a position) to read the information present on the track. The read-write
speed of HDDs is not so fast but decent. It ranges from a few GBs to a few and more TB.
Magnetic Card:
It is a card in which data is stored by modifying or rearranging the magnetism of tiny iron-based
magnetic particles present on the band of the card. It is also known as a swipe card. It is used like a
passcode (to enter the house or hotel room), credit card, identity card, etc.
Tape Cassette:
It is also known as a music cassette. It is a rectangular flat container in which the data is stored
in an analog magnetic tape. It is generally used to store audio recordings.
Super Disk:
It is also called LS-240 and LS-120. It is introduced by Imation Corporation and it is popular
with OEM computers. It can store data up to 240 MB.
It is a cheaper and more portable storage device. It is the most commonly used device to store data because
is more reliable and efficient as compared to other storage devices. Some of the commonly used flash memory
devices are:
Pen Drive:
It is also known as a USB flash drive that includes flash memory with an integrated USB interface.
We can directly connect these devices to our computers and laptops and read/write data into them in a
much faster and more efficient way. These devices are very portable. It ranges from 1GB to 256GB
generally.
SSD:
It stands for Solid State Drive, a mass storage device like HDD. It is more durable because it does
not contain optical disks inside like hard disks. It needs less power as compared to hard disks, is
lightweight, and has 10x faster read and writes speed as compared to hard disks. But, these are costly as
well. While SSDs serve an equivalent function as hard drives, their internal components are much
different. Unlike hard drives, SSDs don’t have any moving parts and thus they’re called solid-state drives.
Instead of storing data on magnetic platters, SSDs store data using non-volatile storage. Since SSDs
haven’t any moving parts, they do not need to “spin up”. It ranges from 150GB to a few more TB.
SD Card:
It is known as a Secure Digital Card. It is generally used with electronic devices like phones,
digital cameras, etc. to store larger data. It is portable and the size of the SD card is also small so that it
can easily fit into electronic devices. It is available in different sizes like 2GB, 4GB, 8GB, etc.
Memory Card:
It is generally used in digital cameras. printers, game consoles, etc. It is also used to store large
amounts of data and is available in different sizes. To run a memory card on a computer you require a
separate memory card reader.
Multimedia Card:
It is also known as MMC. It is an integrated circuit that is generally used in-car radios, digital
cameras, etc. It is an external device to store data/information.
CD:
t is known as Compact Disc. It contains tracks and sectors on its surface to store data. It is made up
of polycarbonate plastic and is circular in shape. CD can store data up to 700MB. It is of two types:
o CD-R:
It stands for Compact Disc read-only. In this type of CD, once the data is written can not be
erased. It is read-only.
o CD-RW:
It stands for Compact Disc Read Write. In this type of CD, you can easily write or erase data
multiple times.
DVD:
It is known as Digital Versatile Disc. DVDs are circular flat optical discs used to store data. It comes
in two different sizes one is 4.7GB single-layer discs and another one is 8.5GB double-layer discs. DVDs
look like CDs but the storage capacity of DVDs is more than as compared to CDs. It is of two types:
o DVD-R:
It stands for Digital Versatile Disc read-only. In this type of DVD, once the data is written
can not be erased. It is read-only. It is generally used to write movies, etc.
o DVD-RW:
It stands for Digital Versatile Disc Read Write. In this type of DVD, you can easily write
or erase data multiple times.
Blu-ray Disc:
It is just like CD and DVD but the storage capacity of blu ray is up to 25GB. To run a Blu-ray
disc you need a separate Blu-ray reader. This Blu-ray technology is used to read a disc from a blue-violet
laser due to which the information is stored in greater density with a longer wavelength.
Nowadays, secondary memory has been upgraded to virtual or cloud storage devices. We can store our
files and other stuff in the cloud and the data is stored for as long as we pay for the cloud storage. There are many
companies that provide cloud services largely Google, Amazon, Microsoft, etc. We can pay the rent for the
amount of space we need and we get multiple benefits out of it. Though it is actually being stored in a physical
Dept: of Computer Science
device located in the data centers of the service provider, the user doesn’t interact with the physical device and
its maintenance. For example, Amazon Web Services offers AWS S3 as a type of storage where users can store
data virtually instead of being stored in physical hard drive devices. These sorts of innovations represent the
frontier of where storage media goes.
Processor
Processor or Central Processing Unit (CPU) refers to logic circuitry that responds to and processes basic
instructions that drive computers. This integrated electronic circuit performs calculations that run computers.
These circuits are found in electronic devices. They receive input in the form of program instructions and execute
calculations for providing with which the user will interact.
Components of a Processor
A processor has four components: a floating point unit (FPU), an arithmetic logic unit (ALU), registers,
and cache memories.
ALU is the main component in a processor that performs various arithmetic and logic operations. It is an
integrated circuit within the CPU/GPU, due to which it is also known as an integer unit (IU). This is the last
component that performs calculations in the processor.
It is part of the computer system used for carrying out operations on floating-point numbers. These
operations include square root, multiplication, division, subtraction, and addition. It can perform transcendental
functions such as trigonometric and exponential functions; however, it may not be accurate.
3. Registers
Registers are types of computer memory that accept, transfer, and store data and instructions being used.
It instructs ALU about the processes that must be carried out and stores the results of these operations.
4. Cache
Cache is the smaller yet faster memory located close to the processor’s core. This memory stores the
copy of data from the frequently used main locations. There are three levels of cache: L1, L2 and L3 cache. L1
is the primary chip, which is embedded in the processor chip.
Since it is small, it has limited storage. L2 cache is the secondary cache that is either embedded on a
processor chip or a separate chip with a high-speed bus that connects it to the CPU. Also known as processor
cache, L3 is a specialized backup memory for L1 and L2. It boosts the performance of L1 and L2.
Types of Processors
According to Flynn’s taxonomy, processors can be classified based on concurrent instructions and data
streams available in architecture. Let us now discuss each of the above one by one.
Here, instructions are sent to the control unit from the memory module. Then, they are
decoded and sent to a processing unit that processes data retrieved from the memory module and then
sends it back. Examples of SSID are traditional uniprocessor machines such as PCs, old mainframes,
pipelined, and superscalar processors.
It is a type of computer that comes with multiple processing elements. It simultaneously performs
same operation on multiple data points as well as parallel computations on only a single instruction
at a given time. SIMD may be a part of the hardware design and is directly accessible through
instruction set architecture (ISA). These machines do not exploit concurrency.
It is a type of parallel computing architecture where multiple functional units perform different
operations on the same data. Every CU here handles and processes one instruction stream through
corresponding processing elements. It has an architecture that is used for fault tolerance. MISD
organization computers are used rarely. Space Shuttle flight control computer is an example of MISD.
This refers to a technique used for achieving parallelism. Machines that have MIMD have several
processors that function independently and asynchronously. Multiple autonomous processors
execute, at any time, execute different instructions on different data pieces.
These machines can be either shared or distributed memory categories based on how MIMD
processors access memory. Shared memory may be bus-based, hierarchical or extended types.
Distributed memory may be of hypercube or mesh types.
3.2 Multi-core
Multi-core processors are microprocessors on a single integrated unit having two or more cores.
Each core reads and executes the program instructions. Here, a single processor can simultaneously
run instructions on a separate core. Due to this, the overall speed for programs supporting
multithreading and parallel computing techniques increases.
3.3 Hyper-Threading
It is a technology that is used in the Intel microprocessors. This technology allows a single
microprocessor to act as two processors for the operating system and the application. Through hyper
threading, processor resources are more efficiently used, allowing multiple threads to run on each
core.
4. Special processors
It is a specialized electronic circuit that manipulates and alters memory to accelerate the creation
of images in frame buffers that are intended for output to display devices. They can efficiently
manipulate image processing and computer graphics.
Due to their highly parallel structure, they are more efficient than general-purpose CPUs for those
algorithms where processing of large data blocks is performed in parallel. GPU may be embedded
on motherboards or video cards.
Also known as the Physics Acceleration card, it is a dedicated microprocessor that handles physics
calculations, unlike GPU. It is used specifically for the physics engine of video games. This
microprocessor helps offload time-consuming tasks for the computer’s Central Processing Unit. It
provides physics simulation data and communicates this data to the CPU. These are used in high-
performance computers.
It is another specialized microprocessor having an architecture optimized for the operational needs
of digital signal processing. This measures, compresses, and filters continuous real-world analog
signals. They are more power efficient, due to which they can be used in portable electronic data.
It is a special-purpose hardware device that is programmable. Like RISC processors, these are low-
cost and flexible, scalable and fast as ASIC chips. Such processors are used for designing
networking applications.
They have characteristics that are similar to general-purpose CPUs used in different types of
equipment and products. Firewalls, routers, switches and network security devices use network
processors.
These are smaller computers that connect networks to host computers. Data is transferred
between the front-end processor and the host computer through high-speed parallel interfaces.
They offload the host computer from managing peripheral devices, packet assembly and
disassembly, and error detection and correction. These processors communicate with peripheral
devices using serial interfaces via communication networks.
CPU Registers
In Computer Architecture, the Registers are very fast computer memory which are used to execute
programs and operations efficiently. This does by giving access to commonly used values, i.e., the values which
are in the point of operation/execution at that time. So, for this purpose, there are several different classes of
CPU registers which works in coordination with the computer memory to run operations efficiently.
The sole purpose of having register is fast retrieval of data for processing by CPU. Though accessing
instructions from RAM is comparatively faster with hard drive, it still isn’t enough for CPU. For even better
processing, there are memories in CPU which can get data from RAM which are about to be executed
beforehand. After registers we have cache memory, which are faster but less faster than registers.
1. Carry C: Set to 1 if an add operation produces a carry or a subtract operation produces a borrow;
otherwise cleared to 0.
2. Overflow V: Useful only during operations on signed integers.
3. Zero Z: Set to 1 if the result is 0, otherwise cleared to 0.
4. Negate N: Meaningful only in signed number operations. Set to 1 if a negative result is produced.
5. Extend X: Functions as a carry for multiple precision arithmetic operations.
Cache Memory
A faster and smaller segment of memory whose access time is as close as registers are known as Cache memory.
In a hierarchy of memory, cache memory has access time lesser than primary memory. Generally, cache memory
is very small and hence is used as a buffer.
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.
It is based on principle of locality of reference, which refers to the observation that program tries to access
a relatively small portion of their address space at any given time, and repeatedly tries to access some portion of
the memory. For ex: In fees department of your college, transactions are accessed frequently to check on the
dues.
Primary role of it is to reduce average time taken to access data, thereby improving overall system
performance.
2. Reducing memory latency: Memory access latency refers to time taken for processes to retrieve data
from memory. Caches are designed to exploit principle of locality.
3. Lowering bus traffic: Accessing data from main memory involves transferring it over system bus. Bus
is shared resource and excessive traffic can lead to congestion and slower data transfers. By utilizing
cache memory, processor can reduce frequency of accessing main memory resulting in less bus traffic
and improves system efficiency.
4. Increasing effective CPU utilization: Cache memory allows CPU to operate at a higher effective speed.
CPU can spend more time executing instruction rather than waiting for memory access. This leads to
better utilization of CPU’s processing capabilities and higher overall system performance.
5. Enhancing system scalability: Cache memory helps improve system scalability by reducing impact of
memory latency on overall system performance.
Whenever CPU needs any data it searches for corresponding data in the cache (fast process) if data is
found, it processes the data according to instructions, however, if data is not found in the cache CPU search for
that data in primary memory(slower process) and loads it into the cache. This ensures frequently accessed data
are always found in the cache and hence minimizes the time required to access the data.
L1 or Level 1 Cache:
It is the first level of cache memory that is present inside the processor. It is present in a small amount
inside every core of the processor separately. The size of this memory ranges from 2KB to 64 KB.
L2 or Level 2 Cache:
It is the second level of cache memory that may present inside or outside the CPU. If not present inside
the core, It can be shared between two cores depending upon the architecture and is connected to a processor
with the high-speed bus. The size of memory ranges from 256 KB to 512 KB.
L3 or Level 3 Cache:
It is the third level of cache memory that is present outside the CPU and is shared by all the cores of the
CPU. Some high processors may have this cache. This cache is used to increase the performance of the L2 and
L1 cache. The size of this memory ranges from 1 MB to 8MB.
RAM Cache
The cache is smaller in size. Memory ranges from 2KB
RAM is larger in size compared to cache. Memory
to a few MB generally.
ranges from 1MB to 16GB
It stores data that is currently processed by the It holds frequently accessed data.
processor.
OS interacts with primary memory to get data to be
OS interacts with secondary memory to get data to be
stored in Cache.
stored in Primary Memory or RAM
It is ensured that data in RAM are loaded before access CPU searches for data in Cache, if not found cache
to the CPU. This eliminates RAM miss never. miss occur.
Virtual Memory
Virtual Memory is a storage allocation scheme in which secondary memory can be addressed as though
it were part of the main memory. The addresses a program may use to reference memory are distinguished from
the addresses the memory system uses to identify physical storage sites and program-generated addresses are
translated automatically to the corresponding machine addresses.
The size of virtual storage is limited by the addressing scheme of the computer system and the amount
of secondary memory available not by the actual number of main storage locations.
It is a technique that is implemented using both hardware and software. It maps memory addresses used
by a program, called virtual addresses, into physical addresses in computer memory.