Professional Documents
Culture Documents
Week 2
2-1
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-2
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-3
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-4
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
CONTROL UNIT
The control unit must communicate with both the arithmetic/logic
unit and memory.
The functions performed by the control unit vary greatly by the
internal architecture of the CPU, since the control unit really
implements this architecture.
The control unit performs the tasks of fetching, decoding,
managing execution and then storing results.
The control unit uses the instruction contained in the Instruction
Register to decide which circuits need to be activated. It co-
ordinates the activities of the other two units as well as all
peripheral and auxiliary storage devices linked to the computer.
The control unit instructs the arithmetic logic unit which
arithmetic operations or logical operation is to be performed. It
is literally in control.
2-5
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
MEMORY UNIT
The Memory Unit is the part of the computer that
holds data and instructions for processing.
Although it is closely associated with the CPU, in
actual fact it is separate from it.
Memory associated with the CPU is also called
primary storage, primary memory, main storage,
internal storage and main memory.
2-6
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-7
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-8
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-9
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-10
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
Comparison operations
Comparison operations test for three conditions:
Equal-to condition
Less-than condition
Greater-than condition
2-11
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
LOGIC FUNCTIONS
The arithmetic logic unit performs logic
functions such as AND, OR and NOT.
2-12
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
2-14
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
DEFINITION: MICROPROCESSOR
In a microcomputer, the CPU is contained on a single silicon chip called the
microprocessor.
A microprocessor is a computer processor on a microchip.
It's sometimes called a logic chip.
It is the "engine" that goes into motion when you turn your computer on.
A microprocessor is designed to perform arithmetic and logic operations
that make use of small number-holding areas called registers.
Typical microprocessor operations include
adding, subtracting, comparing two
numbers, and fetching numbers from one
area to another.
When the computer is turned on, the
microprocessor is designed to get the
first instruction from the Basic
Input/Output System (BIOS) that comes
with the computer as part of its memory.
2-15
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
DATA PROCESSING
Processing data requires the
access to data stored in files.
Data may be stored in sequential
files or in on-line direct access
files.
It may be processed in batch mode
or a record at a time
6-16
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
Batch Processing
On-Line Processing
6-17
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
6-18
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
B
A
T
C
H
PROCESSING
6-19
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
BATCH CONTROLS
Transaction
6-21
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
ON-LINE PROCESSING
In on-line processing, the data records in a file
or database table are immediately accessible
without reading through a sequential file.
Input data enters the computer directly as soon
as it is being transacted. This information will
be processed immediately and updated into the
master file.
It does not provide as much efficiency, security
and control as batch file processing.
6-22
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
6-23
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
6-24
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
SIMPLE DEFINITION OF
REAL-TIME PROCESSING SYSTEM
One which controls the environment by
receiving data processing them and
returning results sufficiently quickly to
affect the functioning of the environment
at that time example, ATM SYSTEM when
you withdraw cash from your account and
your account balance is updated
immediately at the point of withdrawal.
6-25
INTRODUCTION TO COMPUTER SYSTEMS AND PROGRAMMING
quick
Disadvantages
6-27