The Central Processing Unit (CPU)
The CPU is the core component of a computer system responsible for processing instructions and managing operations. It fetches instructions from memory, decodes them to understand the required action, executes the instructions, and then stores or outputs the results. This cycle is continuous while the computer is powered on.
For example, when you open a word processor, the CPU retrieves the program instructions from memory, processes your keystrokes, and updates the display accordingly.
The CPU’s speed and efficiency directly affect how fast a computer can perform tasks. It acts as the 'brain' of the computer, coordinating all activities and ensuring instructions are carried out correctly.
- Fetch, decode, execute, and store cycle forms the CPU’s operation.
- Processes data and controls other components.
- Determines overall system performance.
Internal Memory: ROM and RAM
Internal memory is essential for a computer’s operation and is located on the motherboard close to the CPU. It temporarily or permanently holds data and instructions needed by the CPU.
Read-Only Memory (ROM) contains permanent instructions that cannot be altered during normal operation. These instructions include the computer’s startup process, such as the BIOS (Basic Input Output System). Because ROM is non-volatile, it retains data even when the computer is switched off.
Random Access Memory (RAM) is volatile memory used to store data and programs currently in use. It allows the CPU to access information quickly while performing tasks. However, all data in RAM is lost when the computer is powered down, making it temporary storage.
- ROM stores permanent startup instructions; non-volatile.
- RAM stores active data and programs; volatile.
- RAM allows fast read/write access; ROM is read-only.
Differences Between ROM and RAM
The key differences between ROM and RAM lie in their purpose, volatility, and mutability. ROM is permanent and used mainly for booting the system, while RAM is temporary and used for active processing.
For example, the instructions to start the computer are stored in ROM, ensuring they are always available. In contrast, when you open a web browser, its data is loaded into RAM for quick access but disappears when the computer shuts down.
Understanding these differences helps in troubleshooting and optimising computer performance.
- ROM is non-volatile and read-only; RAM is volatile and read/write.
- ROM holds essential startup code; RAM holds current working data.
- Data in ROM persists without power; data in RAM does not.
Input and Output Devices
Input devices allow users to send data and commands to the computer. Common examples include keyboards, mice, scanners, and microphones. These devices convert user actions or external data into digital signals the computer can process.
Output devices present processed data from the computer to the user or another system. Examples include monitors, printers, speakers, and projectors. They convert digital signals back into human-readable or perceivable forms.
Some devices, like touchscreens, can function as both input and output devices, but generally, input and output devices have distinct roles.
- Input devices send data to the computer (e.g., keyboard, mouse).
- Output devices display or produce results (e.g., monitor, printer).
- Devices differ by direction of data flow relative to the computer.
Backing Storage and Its Differences from Internal Memory
Backing storage refers to devices that store data permanently or semi-permanently, such as hard disk drives (HDDs), solid-state drives (SSDs), USB flash drives, and optical discs. Unlike internal memory, backing storage retains data even when the computer is turned off.
Backing storage typically has a much larger capacity than internal memory but slower access speeds. It is used to save files, applications, and the operating system for long-term use.
For example, when you save a document, it is written to backing storage. When you open it later, the data is loaded into RAM for editing. This separation allows computers to manage large amounts of data efficiently.
- Backing storage retains data without power; internal memory does not.
- Backing storage has larger capacity but slower access than RAM.
- Used for long-term data retention, including files and programs.
At-a-glance summary
Comparison table
| Aspect | ROM | RAM | Backing Storage |
|---|---|---|---|
| Volatility | Non-volatile (data retained without power) | Volatile (data lost when power off) | Non-volatile (data retained without power) |
| Purpose | Stores permanent startup instructions | Stores data and programs currently in use | Stores data and programs long-term |
| Mutability | Read-only during normal operation | Read and write | Read and write |
| Capacity | Small (usually a few MB) | Larger than ROM (several GB) | Much larger (GB to TB range) |
| Speed | Slower than RAM | Fast access for CPU | Slower than RAM, faster than some external media |
Active recall
Quick check
1. What is the main function of the CPU?
To fetch, decode, execute instructions, and control the computer’s operations.
2. How does ROM differ from RAM?
ROM is non-volatile and stores permanent startup instructions; RAM is volatile and stores data temporarily for active use.
3. Give two examples of input devices.
Keyboard and mouse.
4. What is backing storage used for?
For permanent storage of data and programs, retaining information even when the computer is off.
