Resources | Subject Notes | Computer Science
This section describes the fundamental operations performed by the key hardware components within a computer system. Understanding these operations is crucial for comprehending how a computer processes information and executes instructions.
The CPU is the 'brain' of the computer. It fetches instructions from memory, decodes them, and executes them. This cycle is known as the fetch-decode-execute cycle.
The speed at which the CPU can perform these operations is a major factor in the overall performance of the computer, often measured in Hertz (Hz) or Gigahertz (GHz).
Component | Description |
---|---|
Arithmetic Logic Unit (ALU) | Performs arithmetic (addition, subtraction, etc.) and logical (AND, OR, NOT, etc.) operations. |
Control Unit (CU) | Fetches instructions, decodes them, and controls the execution of those instructions. It manages the flow of data within the CPU and to other components. |
Registers | Small, high-speed storage locations within the CPU used to hold data and addresses during processing. Examples include the Program Counter (PC), Instruction Register (IR), and Accumulator. |
Cache Memory | Small, fast memory used to store frequently accessed data and instructions, reducing the time it takes to retrieve information from main memory. Levels of cache (L1, L2, L3) exist, with L1 being the fastest and smallest. |
Random Access Memory (RAM) is the computer's primary working memory. It stores data and instructions that the CPU is actively using. Data in RAM is volatile, meaning it is lost when the power is turned off.
Different types of RAM exist, each with varying speeds and characteristics:
RAM allows the CPU to quickly access data and instructions, significantly improving the speed of program execution. The amount of RAM available affects the computer's ability to run multiple programs simultaneously and handle large datasets.
Storage devices provide non-volatile storage for data and programs. This means the data persists even when the power is off.
Device | Description | Speed | Cost |
---|---|---|---|
Hard Disk Drive (HDD) | Uses magnetic platters to store data. | Slower | Lower |
Solid State Drive (SSD) | Uses flash memory to store data. | Faster | Higher |
USB Flash Drive | Portable flash memory device. | Variable | Medium |
Optical Discs (CD, DVD, Blu-ray) | Store data using lasers to read and write information. | Slow | Low |
Input devices allow data to be entered into the computer, while output devices display or present the results of processing.
The bus system is a set of electrical pathways that allow data to be transmitted between different components of the computer.
Bus Type | Description | Speed |
---|---|---|
Address Bus | Carries the memory address being accessed. | - |
Data Bus | Carries the actual data being transferred. | - |
Control Bus | Carries control signals that coordinate the activities of different components. | - |
The width of the data bus (e.g., 8-bit, 16-bit, 32-bit) determines how much data can be transferred at once, affecting the system's performance.