SlideShare a Scribd company logo
COMPUTER
PROCESSING
CSE-101
LECTURE-02
SHAKILA MAHJABIN TONNI,
LECTURER, DEPT OF CSE, BAIUST
1©SMT,Faculty,CSE,BAIUST
©SMT,Faculty,CSE,BAIUST
What is Processing?
The procedure that
transforms raw data into
useful information is
called processing.
2
©SMT,Faculty,CSE,BAIUST
Components of Processing
1. CPU:
The Control Unit (CU)
The Arithmetic Logic Unit
(ALU)
2. Memory
4. Bus:
System Bus
Address Bus
Data Bus
Control Bus
Expansion Bus
3. Registers
3
The CPU
 The processor is also called the Central
Processing Unit (CPU)
 Converts data into information
 Set of electronic circuitry attached to the
computer's main circuit board (the
motherboard) that executes stored program
instructions
 It manages all devices and performs the
actual processing of data.
 Two parts
 Control Unit (CU)
 Arithmetic Logic Unit (ALU)
4
©SMT,Faculty,CSE,BAIUST
CENTRAL PROCESSING UNIT
(CPU)5
©SMT,Faculty,CSE,BAIUST
CENTRAL PROCESSING UNIT
(CPU)
The Control Unit (CU):
All the computer’s resources are managed from the
control unit. This is the logical hub of the computer.
The Arithmetic Logic Unit (ALU):
Arithmetic operations include addition, subtraction,
multiplication and division.
When the control unit encounters an instruction that
involves arithmetic or logic, it passes that instruction to
ALU.
6
©SMT,Faculty,CSE,BAIUST
Memory
Memory also consists of chips attached to the
motherboard. Memory holds data and program
instructions as the CPU works with them. This
memory is called Random Access Memory (RAM).
The CPU can find any piece of data in RAM, when
it needs it for processing.
Also called as Primary
storage/ Primary
memory/ Main
storage/ Internal
storage/Main memory
7
©SMT,Faculty,CSE,BAIUST
MEMORY SIZE
6.9
Unit Approx. Value Actual Value
(bytes) (bytes) (bytes)
Kilobyte (KB) 1,000 B 1,024
Megabyte (MB) 1,000 KB 1,048,576
Gigabyte (GB) 1,000 MB 1,073,741,824
Terabyte (TB) 1,000 GB 1,099,511,627,776
8
©SMT,Faculty,CSE,BAIUST
Types of Memory
Non- Volatile: Non-volatile chips hold data even when the
computer is unplugged. For example, ROM,
PROM(Programmable Read Only Memory), BIOS.
Volatile: Volatile memory requires power to store data. For
example, RAM, SIMM, DIMM, SO-DIMM.
Flush: Flush memory is a special type of non-volatile RAM. It is
often used as portable storage device.
Used in Digital camera, portable MP3 player, USB device.
9
©SMT,Faculty,CSE,BAIUST
Types of Memory
Cache: Moving data between RAM and the CPU’s register is one of the most
time consuming task, as Ram is more slower than CPU.
A partial solution is to add a small memory with the CPU. It is similar to RAM, but
very fast. It holds common or recently used data.
Speeds up computer processing. Most computers have several caches.
When a program is running and CPU needs to read data, it first checks whether
the data is in the Cache memory. If the data is not there, then CPU loads the data
from RAM to registers and also, loads a copy to the Cache.
10
©SMT,Faculty,CSE,BAIUST
Cache
Step 1
Processor
requests
data or
instructions
Step 2
Go to address in main
memory and read
Step 3
Transfer to main CPU and cache
Next processor request
• Look first at cache
• Go to memory
P
R
O
C
E
S
S
O
R
R
A
M
Cache
11
©SMT,Faculty,CSE,BAIUST
RAM (Random Access
Memory)
 Requires current to retain values
 Volatile
 Data and instructions can be read and
modified
 Users typically refer to this type of memory
 Maximum amount of RAM that can be
installed is based upon the motherboard
design
 RAM contains-
Systems current instructions
Program currently running
12
ROM (Read Only Memory)
 Non-volatile
 Instructions for booting the computer
 Data and instructions can be read, but not
modified
 Instructions are typically recorded at factory
PROM
 Programmable ROM
 ROM burner can change instructions on some
ROM chips
13
©SMT,Faculty,CSE,BAIUST
Register
Special-purpose, High-speed , Temporary storage
Located inside CPU
The size of a register is sometimes called the word-size. It indicates
the amount of data or bits with which a processor can work at a single
time.
The bigger the word size, the more quickly computer can process
data.
In real life the terminologies “16-bit processor” or, “64-bit processor”
is refers to the size of registers in the processor.
If other factors are kept normal, than 32-bit registers can process
data twice as fast as the registers with 16-bits.
Instruction register
Holds instruction currently
being executed
Data register
Holds data waiting to be
processed and results from
processing
14
©SMT,Faculty,CSE,BAIUST
Bus
 Paths that transport electrical signals
 Bus width
 Number of bits of data that can be carried at a time
 Normally the same as the CPUs word size
 Speed measured in MHz
15
©SMT,Faculty,CSE,BAIUST
System Bus
 Transports data between the CPU and memory
 System Bus is of three types-
 Address bus,
 Data bus,
 Control bus.
 Address - the components pass memory
addresses to one another over the address bus.
 Control - used to send out signals to coordinate
and manage the activities of the motherboard
components.
 Data - transferred between peripherals, memory
and the CPU. Obviously, the data bus can be a
16
©SMT,Faculty,CSE,BAIUST
System Bus
CPU
PRIMARY
STORAGE
DATA BUS
ADDRESS BUS
CONTROL BUS
INPUT
DEVICES
OUTPUT
DEVICES
SECONDARY
STORAGE
17 ©SMT,Faculty,CSE,BAIUST
Expansion Buses
 Connect the motherboard to expansion slots
 Plug expansion boards into slots
 interface cards
 adapter cards
 Provides for external connectors / ports
 Serial
 Parallel
18
©SMT,Faculty,CSE,BAIUST
External/PC Buses
ISA Slow-speed devices like mouse, modem
PCI High-speed devices like hard disks and network cards
AGP Connects memory and graphics card for faster video
performance
USB Supports “daisy-chaining” eliminating the need for
multiple expansion cards; hot-swappable
IEEE 1394
(FireWire)
High-speed bus connecting video equipment to the
computer
PC Card Credit card sized PC card devices normally found on
laptops
19
©SMT,Faculty,CSE,BAIUST
Buses
20
©SMT,Faculty,CSE,BAIUST
Decoders
This type of devices is used to tell the processor what must be
done based on the instructions in the memory written by users.
So if, for example, some bytes are found in the memory that
corresponds to an addition instruction the decoder will read them and
knows that it is addition based on the bytes contained then it will
activate the control lines to inform the processor that it is an addition.
Thus the decoder is considered an interface between the memory
and the processor
©SMT,Faculty,CSE,BAIUST
Other Components21
Processors
Ό A processor is part of the computer that interpret and
executes instructions.
Ό Microprocessor: A microprocessor is essentially a
processor that happens to be on a chip (or a small
number of chips), as opposed to one made from a large
number of individual components.
 Chip size is ¼ x ¼ inch
 Composed of silicon
 Contains millions of transistors
22
©SMT,Faculty,CSE,BAIUST
Types of Microprocessors
Intel
 Pentium
 Celeron
 Xeon and Itanium
 Core i -series
Intel-compatible
 Cyrix
 AMD
23
©SMT,Faculty,CSE,BAIUST
Based on the types of instruction sets, processors are of two types
 CISC Processor (Complex Instruction Set Computing)
 CISC Technology instructions
 Supplies a large number of complex instructions at the assembly
language level.
 During the early years, since memory was slow and instructions
could be retrieved up to 10 times faster from a local ROM than
from main memory, programmers tried to put as many
instructions as possible in a microcode.
 Many of the instructions were remain unused.
 The CISC approach attempts to minimize the number of
instructions per program, sacrificing the number of cycles per
instruction.
Processor Types24
©SMT,Faculty,CSE,BAIUST
 RISC Processor (Reduced Instruction Set Computing)
 Reduced instruction set
 Small subset of instructions
 Increases speed
 RISC reduces the cycles per instruction at the cost of the
number of instructions per program.
 It is designed to operate at a higher speed (perform more million
instructions per second, or millions of instructions per second).
 Earlier, computers used only 20% of the instructions. Making the
other 80% unnecessary. One advantage of reduced instruction
set computers is that they can execute their instructions very fast
because the instructions are so simple.
Processor Types25
©SMT,Faculty,CSE,BAIUST
Types of Processing
 Serial processing
 Execute one instruction at a time
 Fetch, decode, execute, store
 Parallel Processing
 Multiple processors used at the same time
 Can perform trillions of floating-point instructions
per second (teraflops)
 Ex: network servers, supercomputers
26
©SMT,Faculty,CSE,BAIUST
Types of Processing
TASK 1
RESULT
TASK 2
RESULT
Progra
m
CPU
Progra
m
CPU
Progra
m
CPU
TASK 2
CPU
TASK 3
CPU
TASK 1
RESULT
SERIAL
PARALLEL
27
©SMT,Faculty,CSE,BAIUST
Pipelining
 Instruction’s
action need not
be complete
before the next
begins
 Fetch instruction
1, begin to
decode and fetch
instruction 2
28
©SMT,Faculty,CSE,BAIUST
Executing Programs
 CU gets an instruction
and places it in memory
 CU decodes the
instruction
 CU notifies the
appropriate part of
hardware to take action
 Control is transferred to
the appropriate part of
hardware
 Task is performed
 Control is returned to the
CU
29
©SMT,Faculty,CSE,BAIUST
Fetching
Decodin
g
Executio
n
Storing
 Steps by CPU to process data.
 CPU performance is dependent upon Instruction Count, CPI (Cycles
per instruction) and Clock cycle time. And all three are affected by the
instruction set architecture.
Fetching: This is the
instruction cycle.
Here, CPU fetches the
instruction from
memory to registers.
Decoding: CPU breaks
downs the
instructions to
correspond with the
CPU’s instruction set.
Machine Cycle
30 ©SMT,Faculty,CSE,BAIUST
Machine Cycle
©SMT,Faculty,CSE,BAIUST
Execution: CPU
carries out the
instructions in
order.
Storing: Often
CPU may required
to store the
outcome into the
memory.
Machine Cycle
31
Speed and Power
What makes a computer fast?
 Microprocessor speed
 Bus line size
 Availability of cache
 Flash memory
 RISC computers
 Parallel processing
32
©SMT,Faculty,CSE,BAIUST
THANK YOU!!33
©SMT,Faculty,CSE,BAIUST

More Related Content

What's hot

Computer hardware
Computer hardwareComputer hardware
Computer hardware
Chinmoy Jena
 
what is computer
what is computerwhat is computer
what is computerJelz JZ
 
COMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONS
Angel Mary George
 
Motherboard ppt
Motherboard pptMotherboard ppt
Motherboard ppt
Vipin Gupta
 
Basic Components of Computer
Basic Components of ComputerBasic Components of Computer
Basic Components of Computer
RajGopalAgrawal
 
Central Processing Unit(CPU)
Central Processing Unit(CPU)Central Processing Unit(CPU)
Central Processing Unit(CPU)
ANSANS8
 
computer hardware
computer hardwarecomputer hardware
computer hardware
Rajat Singla
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
RIAH ENCARNACION
 
The Inside of a Computer
The Inside of a ComputerThe Inside of a Computer
The Inside of a Computer
Roselyn Villanueva
 
Input devices presentation
Input devices presentationInput devices presentation
Input devices presentation
Tayyab Hussain
 
Computer Hardware Basics
Computer Hardware BasicsComputer Hardware Basics
Computer Hardware Basics
Mark Rotondella
 
Computer - Hardware components
Computer -  Hardware componentsComputer -  Hardware components
Computer - Hardware components
Computer Science
 
Computer literacy
Computer literacyComputer literacy
Computer literacyPaulyn Go
 
Processing Devices
Processing DevicesProcessing Devices
Processing Devices
itsvineeth209
 
Storage devices
Storage devicesStorage devices
Storage devices
rabail asghar
 
System Unit
System UnitSystem Unit
System Unit
Waqar Ahmad
 
CHAP 1 - INTRODUCTION TO COMPUTERS
CHAP 1 - INTRODUCTION TO COMPUTERSCHAP 1 - INTRODUCTION TO COMPUTERS
CHAP 1 - INTRODUCTION TO COMPUTERS
Cikgu Johan Johari
 
Processors
ProcessorsProcessors
Processors
HIMANSHU JAIN
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardware
meryy21
 

What's hot (20)

Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
what is computer
what is computerwhat is computer
what is computer
 
COMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONS
 
Motherboard ppt
Motherboard pptMotherboard ppt
Motherboard ppt
 
Basic Components of Computer
Basic Components of ComputerBasic Components of Computer
Basic Components of Computer
 
Central Processing Unit(CPU)
Central Processing Unit(CPU)Central Processing Unit(CPU)
Central Processing Unit(CPU)
 
computer hardware
computer hardwarecomputer hardware
computer hardware
 
Computer storage
Computer storageComputer storage
Computer storage
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
 
The Inside of a Computer
The Inside of a ComputerThe Inside of a Computer
The Inside of a Computer
 
Input devices presentation
Input devices presentationInput devices presentation
Input devices presentation
 
Computer Hardware Basics
Computer Hardware BasicsComputer Hardware Basics
Computer Hardware Basics
 
Computer - Hardware components
Computer -  Hardware componentsComputer -  Hardware components
Computer - Hardware components
 
Computer literacy
Computer literacyComputer literacy
Computer literacy
 
Processing Devices
Processing DevicesProcessing Devices
Processing Devices
 
Storage devices
Storage devicesStorage devices
Storage devices
 
System Unit
System UnitSystem Unit
System Unit
 
CHAP 1 - INTRODUCTION TO COMPUTERS
CHAP 1 - INTRODUCTION TO COMPUTERSCHAP 1 - INTRODUCTION TO COMPUTERS
CHAP 1 - INTRODUCTION TO COMPUTERS
 
Processors
ProcessorsProcessors
Processors
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardware
 

Viewers also liked

"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
Sakline Zubair Sifat
 
Arrays in CPP
Arrays in CPPArrays in CPP
Arrays in CPP
Shakila Mahjabin
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
Shakila Mahjabin
 
Normalization
NormalizationNormalization
Normalization
Shakila Mahjabin
 
String operation
String operationString operation
String operation
Shakila Mahjabin
 
Arrays
ArraysArrays
Merge sort and quick sort
Merge sort and quick sortMerge sort and quick sort
Merge sort and quick sort
Shakila Mahjabin
 
SQL : introduction
SQL : introductionSQL : introduction
SQL : introduction
Shakila Mahjabin
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 

Viewers also liked (9)

"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
 
Arrays in CPP
Arrays in CPPArrays in CPP
Arrays in CPP
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
Normalization
NormalizationNormalization
Normalization
 
String operation
String operationString operation
String operation
 
Arrays
ArraysArrays
Arrays
 
Merge sort and quick sort
Merge sort and quick sortMerge sort and quick sort
Merge sort and quick sort
 
SQL : introduction
SQL : introductionSQL : introduction
SQL : introduction
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 

Similar to Computer processing

Multilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMahesh Kumar Attri
 
02 the cpu
02 the cpu02 the cpu
02 the cpuJim Finn
 
Components of the System Unit.pdf
Components of the System Unit.pdfComponents of the System Unit.pdf
Components of the System Unit.pdf
ODINARARCH
 
Central processor amd memory
Central processor amd memoryCentral processor amd memory
Central processor amd memoryOscar Becwarika
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
wajanga
 
COMPONENTS OF SYSTEM UNIT
COMPONENTS OF SYSTEM UNITCOMPONENTS OF SYSTEM UNIT
COMPONENTS OF SYSTEM UNITarunakshidatta
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
vishi1993
 
Bindura university of science education
Bindura university of science educationBindura university of science education
Bindura university of science education
Innocent Tauzeni
 
Processor Management
Processor ManagementProcessor Management
Processor Management
Sumit kumar
 
System Unit
System UnitSystem Unit
System Unit
Reina Mae Salido
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
Lofi19
 
Csc118 chapter1
Csc118 chapter1Csc118 chapter1
Csc118 chapter1
Mazlan Salleh
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
Luqman al-Hakim
 
Lesson three hardware basics
Lesson three hardware basicsLesson three hardware basics
Lesson three hardware basicsMik Endale
 
3. Component of computer - System Unit ( CSI-321)
3. Component of computer - System Unit  ( CSI-321) 3. Component of computer - System Unit  ( CSI-321)
3. Component of computer - System Unit ( CSI-321)
ghayour abbas
 
Computer System.ppt
Computer System.pptComputer System.ppt
Computer System.ppt
jguuhxxxfp
 

Similar to Computer processing (20)

Multilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memory
 
02 the cpu
02 the cpu02 the cpu
02 the cpu
 
Components of the System Unit.pdf
Components of the System Unit.pdfComponents of the System Unit.pdf
Components of the System Unit.pdf
 
Ppt Lesson 04
Ppt Lesson 04Ppt Lesson 04
Ppt Lesson 04
 
Central processor amd memory
Central processor amd memoryCentral processor amd memory
Central processor amd memory
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
COMPONENTS OF SYSTEM UNIT
COMPONENTS OF SYSTEM UNITCOMPONENTS OF SYSTEM UNIT
COMPONENTS OF SYSTEM UNIT
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
Bindura university of science education
Bindura university of science educationBindura university of science education
Bindura university of science education
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Processor Management
Processor ManagementProcessor Management
Processor Management
 
System Unit
System UnitSystem Unit
System Unit
 
4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
 
Csc118 chapter1
Csc118 chapter1Csc118 chapter1
Csc118 chapter1
 
Computer hardware ppt1
Computer hardware ppt1Computer hardware ppt1
Computer hardware ppt1
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
 
Lesson three hardware basics
Lesson three hardware basicsLesson three hardware basics
Lesson three hardware basics
 
3. Component of computer - System Unit ( CSI-321)
3. Component of computer - System Unit  ( CSI-321) 3. Component of computer - System Unit  ( CSI-321)
3. Component of computer - System Unit ( CSI-321)
 
Computer System.ppt
Computer System.pptComputer System.ppt
Computer System.ppt
 

More from Shakila Mahjabin

CSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL QuestionCSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL Question
Shakila Mahjabin
 
Solution of Erds
Solution of ErdsSolution of Erds
Solution of Erds
Shakila Mahjabin
 
Stack and queue
Stack and queueStack and queue
Stack and queue
Shakila Mahjabin
 
Algo analysis
Algo analysisAlgo analysis
Algo analysis
Shakila Mahjabin
 
Codes on structures
Codes on structuresCodes on structures
Codes on structures
Shakila Mahjabin
 
array, function, pointer, pattern matching
array, function, pointer, pattern matchingarray, function, pointer, pattern matching
array, function, pointer, pattern matching
Shakila Mahjabin
 
Data Structure Basics
Data Structure BasicsData Structure Basics
Data Structure Basics
Shakila Mahjabin
 

More from Shakila Mahjabin (7)

CSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL QuestionCSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL Question
 
Solution of Erds
Solution of ErdsSolution of Erds
Solution of Erds
 
Stack and queue
Stack and queueStack and queue
Stack and queue
 
Algo analysis
Algo analysisAlgo analysis
Algo analysis
 
Codes on structures
Codes on structuresCodes on structures
Codes on structures
 
array, function, pointer, pattern matching
array, function, pointer, pattern matchingarray, function, pointer, pattern matching
array, function, pointer, pattern matching
 
Data Structure Basics
Data Structure BasicsData Structure Basics
Data Structure Basics
 

Recently uploaded

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 

Recently uploaded (20)

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 

Computer processing

  • 1. COMPUTER PROCESSING CSE-101 LECTURE-02 SHAKILA MAHJABIN TONNI, LECTURER, DEPT OF CSE, BAIUST 1©SMT,Faculty,CSE,BAIUST
  • 2. ©SMT,Faculty,CSE,BAIUST What is Processing? The procedure that transforms raw data into useful information is called processing. 2
  • 3. ©SMT,Faculty,CSE,BAIUST Components of Processing 1. CPU: The Control Unit (CU) The Arithmetic Logic Unit (ALU) 2. Memory 4. Bus: System Bus Address Bus Data Bus Control Bus Expansion Bus 3. Registers 3
  • 4. The CPU  The processor is also called the Central Processing Unit (CPU)  Converts data into information  Set of electronic circuitry attached to the computer's main circuit board (the motherboard) that executes stored program instructions  It manages all devices and performs the actual processing of data.  Two parts  Control Unit (CU)  Arithmetic Logic Unit (ALU) 4 ©SMT,Faculty,CSE,BAIUST
  • 6. CENTRAL PROCESSING UNIT (CPU) The Control Unit (CU): All the computer’s resources are managed from the control unit. This is the logical hub of the computer. The Arithmetic Logic Unit (ALU): Arithmetic operations include addition, subtraction, multiplication and division. When the control unit encounters an instruction that involves arithmetic or logic, it passes that instruction to ALU. 6 ©SMT,Faculty,CSE,BAIUST
  • 7. Memory Memory also consists of chips attached to the motherboard. Memory holds data and program instructions as the CPU works with them. This memory is called Random Access Memory (RAM). The CPU can find any piece of data in RAM, when it needs it for processing. Also called as Primary storage/ Primary memory/ Main storage/ Internal storage/Main memory 7 ©SMT,Faculty,CSE,BAIUST
  • 8. MEMORY SIZE 6.9 Unit Approx. Value Actual Value (bytes) (bytes) (bytes) Kilobyte (KB) 1,000 B 1,024 Megabyte (MB) 1,000 KB 1,048,576 Gigabyte (GB) 1,000 MB 1,073,741,824 Terabyte (TB) 1,000 GB 1,099,511,627,776 8 ©SMT,Faculty,CSE,BAIUST
  • 9. Types of Memory Non- Volatile: Non-volatile chips hold data even when the computer is unplugged. For example, ROM, PROM(Programmable Read Only Memory), BIOS. Volatile: Volatile memory requires power to store data. For example, RAM, SIMM, DIMM, SO-DIMM. Flush: Flush memory is a special type of non-volatile RAM. It is often used as portable storage device. Used in Digital camera, portable MP3 player, USB device. 9 ©SMT,Faculty,CSE,BAIUST
  • 10. Types of Memory Cache: Moving data between RAM and the CPU’s register is one of the most time consuming task, as Ram is more slower than CPU. A partial solution is to add a small memory with the CPU. It is similar to RAM, but very fast. It holds common or recently used data. Speeds up computer processing. Most computers have several caches. When a program is running and CPU needs to read data, it first checks whether the data is in the Cache memory. If the data is not there, then CPU loads the data from RAM to registers and also, loads a copy to the Cache. 10 ©SMT,Faculty,CSE,BAIUST
  • 11. Cache Step 1 Processor requests data or instructions Step 2 Go to address in main memory and read Step 3 Transfer to main CPU and cache Next processor request • Look first at cache • Go to memory P R O C E S S O R R A M Cache 11 ©SMT,Faculty,CSE,BAIUST
  • 12. RAM (Random Access Memory)  Requires current to retain values  Volatile  Data and instructions can be read and modified  Users typically refer to this type of memory  Maximum amount of RAM that can be installed is based upon the motherboard design  RAM contains- Systems current instructions Program currently running 12
  • 13. ROM (Read Only Memory)  Non-volatile  Instructions for booting the computer  Data and instructions can be read, but not modified  Instructions are typically recorded at factory PROM  Programmable ROM  ROM burner can change instructions on some ROM chips 13 ©SMT,Faculty,CSE,BAIUST
  • 14. Register Special-purpose, High-speed , Temporary storage Located inside CPU The size of a register is sometimes called the word-size. It indicates the amount of data or bits with which a processor can work at a single time. The bigger the word size, the more quickly computer can process data. In real life the terminologies “16-bit processor” or, “64-bit processor” is refers to the size of registers in the processor. If other factors are kept normal, than 32-bit registers can process data twice as fast as the registers with 16-bits. Instruction register Holds instruction currently being executed Data register Holds data waiting to be processed and results from processing 14 ©SMT,Faculty,CSE,BAIUST
  • 15. Bus  Paths that transport electrical signals  Bus width  Number of bits of data that can be carried at a time  Normally the same as the CPUs word size  Speed measured in MHz 15 ©SMT,Faculty,CSE,BAIUST
  • 16. System Bus  Transports data between the CPU and memory  System Bus is of three types-  Address bus,  Data bus,  Control bus.  Address - the components pass memory addresses to one another over the address bus.  Control - used to send out signals to coordinate and manage the activities of the motherboard components.  Data - transferred between peripherals, memory and the CPU. Obviously, the data bus can be a 16 ©SMT,Faculty,CSE,BAIUST
  • 17. System Bus CPU PRIMARY STORAGE DATA BUS ADDRESS BUS CONTROL BUS INPUT DEVICES OUTPUT DEVICES SECONDARY STORAGE 17 ©SMT,Faculty,CSE,BAIUST
  • 18. Expansion Buses  Connect the motherboard to expansion slots  Plug expansion boards into slots  interface cards  adapter cards  Provides for external connectors / ports  Serial  Parallel 18 ©SMT,Faculty,CSE,BAIUST
  • 19. External/PC Buses ISA Slow-speed devices like mouse, modem PCI High-speed devices like hard disks and network cards AGP Connects memory and graphics card for faster video performance USB Supports “daisy-chaining” eliminating the need for multiple expansion cards; hot-swappable IEEE 1394 (FireWire) High-speed bus connecting video equipment to the computer PC Card Credit card sized PC card devices normally found on laptops 19 ©SMT,Faculty,CSE,BAIUST
  • 21. Decoders This type of devices is used to tell the processor what must be done based on the instructions in the memory written by users. So if, for example, some bytes are found in the memory that corresponds to an addition instruction the decoder will read them and knows that it is addition based on the bytes contained then it will activate the control lines to inform the processor that it is an addition. Thus the decoder is considered an interface between the memory and the processor ©SMT,Faculty,CSE,BAIUST Other Components21
  • 22. Processors Ό A processor is part of the computer that interpret and executes instructions. Ό Microprocessor: A microprocessor is essentially a processor that happens to be on a chip (or a small number of chips), as opposed to one made from a large number of individual components.  Chip size is ¼ x ¼ inch  Composed of silicon  Contains millions of transistors 22 ©SMT,Faculty,CSE,BAIUST
  • 23. Types of Microprocessors Intel  Pentium  Celeron  Xeon and Itanium  Core i -series Intel-compatible  Cyrix  AMD 23 ©SMT,Faculty,CSE,BAIUST
  • 24. Based on the types of instruction sets, processors are of two types  CISC Processor (Complex Instruction Set Computing)  CISC Technology instructions  Supplies a large number of complex instructions at the assembly language level.  During the early years, since memory was slow and instructions could be retrieved up to 10 times faster from a local ROM than from main memory, programmers tried to put as many instructions as possible in a microcode.  Many of the instructions were remain unused.  The CISC approach attempts to minimize the number of instructions per program, sacrificing the number of cycles per instruction. Processor Types24 ©SMT,Faculty,CSE,BAIUST
  • 25.  RISC Processor (Reduced Instruction Set Computing)  Reduced instruction set  Small subset of instructions  Increases speed  RISC reduces the cycles per instruction at the cost of the number of instructions per program.  It is designed to operate at a higher speed (perform more million instructions per second, or millions of instructions per second).  Earlier, computers used only 20% of the instructions. Making the other 80% unnecessary. One advantage of reduced instruction set computers is that they can execute their instructions very fast because the instructions are so simple. Processor Types25 ©SMT,Faculty,CSE,BAIUST
  • 26. Types of Processing  Serial processing  Execute one instruction at a time  Fetch, decode, execute, store  Parallel Processing  Multiple processors used at the same time  Can perform trillions of floating-point instructions per second (teraflops)  Ex: network servers, supercomputers 26 ©SMT,Faculty,CSE,BAIUST
  • 27. Types of Processing TASK 1 RESULT TASK 2 RESULT Progra m CPU Progra m CPU Progra m CPU TASK 2 CPU TASK 3 CPU TASK 1 RESULT SERIAL PARALLEL 27 ©SMT,Faculty,CSE,BAIUST
  • 28. Pipelining  Instruction’s action need not be complete before the next begins  Fetch instruction 1, begin to decode and fetch instruction 2 28 ©SMT,Faculty,CSE,BAIUST
  • 29. Executing Programs  CU gets an instruction and places it in memory  CU decodes the instruction  CU notifies the appropriate part of hardware to take action  Control is transferred to the appropriate part of hardware  Task is performed  Control is returned to the CU 29 ©SMT,Faculty,CSE,BAIUST
  • 30. Fetching Decodin g Executio n Storing  Steps by CPU to process data.  CPU performance is dependent upon Instruction Count, CPI (Cycles per instruction) and Clock cycle time. And all three are affected by the instruction set architecture. Fetching: This is the instruction cycle. Here, CPU fetches the instruction from memory to registers. Decoding: CPU breaks downs the instructions to correspond with the CPU’s instruction set. Machine Cycle 30 ©SMT,Faculty,CSE,BAIUST
  • 31. Machine Cycle ©SMT,Faculty,CSE,BAIUST Execution: CPU carries out the instructions in order. Storing: Often CPU may required to store the outcome into the memory. Machine Cycle 31
  • 32. Speed and Power What makes a computer fast?  Microprocessor speed  Bus line size  Availability of cache  Flash memory  RISC computers  Parallel processing 32 ©SMT,Faculty,CSE,BAIUST