Information Technology
Information Technology
Information Technology
CHAPTER 2
COMPUTER DEVICES – PART 2
Central Processing Unit
• A central processing unit
(CPU) is the electronic
circuitry within a
computer that carries out
the instructions of a
computer program by
performing the basic
arithmetic, logical, control
and input/output (I/O)
operations specified by
the instructions.
Central Processing Unit
• Complex set of
electronic circuitry
• Executes stored program
instructions
• Two parts
– Control unit
– Arithmetic/logic unit
(ALU)
Control Unit
Control Unit
• Directs the computer system to execute stored
program instructions
• Must communicate with memory and ALU
• Sends data and instructions from secondary
storage to memory as needed
Arithmetic Logic Unit
Arithmetic Logic Unit
• Executes all arithmetic and logical operations
• Arithmetic operations
– Addition, subtraction, multiplication, division
• Logical operations
– Compare numbers, letters, or special characters
– Tests for one of three conditions
• Equal-to condition
• Less-than condition
• Greater-than condition
Storage Device
• A piece of computer equipment on which information
can be stored.
• A storage device refers to a computing hardware used
to store information permanently or temporarily.
• The device can be external or internal to a computer,
server, and other computing systems.
• Storage devices are also known as storage medias or
storage medium.
Storage Device
• Two types of storage:
– Primary storage (main memory)
• Stores data temporarily
• CPU refers to it for both program instructions and data
– Secondary storage
• Long-term storage
• Stored on external medium, such as a disk
Storage Device
Storage Device
• Two types of storage:
– Primary storage (memory)
• Stores data temporarily
• CPU refers to it for both program instructions and data
– Secondary storage
• Long-term storage
• Stored on external medium, such as a disk
Primary Storage - Memory
• Also known as primary storage and main
memory
– Often expressed as random-access memory (RAM)
– Not part of the CPU
• Holds data and instructions for processing
• Stores information only as long as the
program is in operation
The CPU and Memory
• CPU cannot process data from disk or input device
– It must first reside in memory
– Control unit retrieves data from disk and moves it into
memory
• Items sent to ALU for processing
– Control unit sends items to ALU, then sends back to
memory after processing
• Data and instructions held in memory until sent to an
output or storage device or program is shut down
Secondary Storage
• Auxiliary memory, also
known as auxiliary
storage, secondary
storage, secondary
memory or external
memory, is a non-volatile
memory that is not
directly accessible by the
CPU, because it is not
accessed via the
input/output channels
Secondary Storage
• Separate from the computer itself
• Software and data stored on a sem-permanent
basis
– Unlike memory, not lost when power is lost
• Benefits
Difference between Primary storage and secondary storage