Lecture 3
Lecture 3
A Computer system is divided into three main categories of hardware units. Those
are below:
Input-Output units: Input devices (keyboard, mouse etc.) and output devices such
as monitor, printer etc.
Memory units: Primary memory such as RAM, ROM and secondary memory such
as HD, CD, DVD etc.
Processing unit: Central Processing Unit (CPU) or microprocessor.
Computer System
Secondary
Memory
(HD, CD, DVD )
CPU
(Processor)
P = Program
Secondary D = Data
Memory Ins = Instruction
(HD, CD, DVD ) Inf = Information
P, D Inf
Ins, D Inf
CPU
(Processor)
To execute a program, the program along with its data must be loaded into
primary memory RAM either directly from an input unit or from a secondary
memory. CPU then takes one instruction and its corresponding data from
RAM. Using that instruction the data is processed and information is
generated. The generated information is then stored back to RAM. Finally,
the information is sent to the output unit and/or saved in secondary memory
for future use.