Computer Hardware
Explores the core internal components of a computer, how they function and interact.
Introduction & Core Concept
Assalam-o-Alaikum, future leaders of Pakistan! Dr. Amir Hussain here, and I am thrilled to guide you through one of the most fundamental topics in Computer Science: the very heart of the machine, its hardware.
Now, I know what you might be thinking. "Hardware? Isn't that just boring chips and wires?" Let me tell you a quick story. Last week, I was craving some classic Karachi biryani. I opened my phone, tapped on a food delivery app, selected my order, and paid. In less than 30 minutes, a rider was at my door with a hot, delicious meal. Magical, isn't it?
But what *really* happened inside my phone during those few seconds? How did my taps on a screen translate into a specific instruction sent to a restaurant's kitchen? The answer lies in understanding computer hardware. The principles we'll discuss today are the reason that app could take my order (data), process it using its code (instructions), and communicate with the world.
Why does this matter for your O Levels? Because this topic is the *foundation*. If you don't understand how a computer physically works, understanding software, programming, and networking becomes incredibly difficult. Cambridge examiners love to test these core concepts because they separate the students who simply memorise from those who truly understand. Mastering this will not only help you ace your exams, Insha'Allah, but it will also give you a powerful mental model for how all digital technology works, from your PlayStation to the systems that manage the Indus River Basin's water flow.
Our big-picture mental model for today is a Professional Kitchen. Imagine a master chef running a busy restaurant. This kitchen is our computer, and every component has a role to play in preparing the final 'dish' (the result of a calculation or task). We will refer back to this analogy throughout the lesson to make these complex ideas crystal clear.
Theoretical Foundation
Let's build our understanding from the ground up, just like constructing a building. We start with the blueprint, the master plan for all modern computers.
#### The Von Neumann Architecture: The Master Blueprint
In the old days of computing, the machines were designed for one specific task. The instructions (the recipe) were physically wired into the machine, and the data (the ingredients) was fed in separately. This was incredibly inefficient. If you wanted to do a different task, you had to literally rewire the computer!
Then, in the 1940s, a brilliant mathematician named John von Neumann proposed a revolutionary idea. He suggested a computer architecture where both the program instructions and the data that the program uses are stored together in the same memory.
This is the Von Neumann Architecture, and it is the single most important concept in this topic.
Think of it like a single, large cookbook. Each page can either contain a recipe (an instruction, like "add two numbers") or a list of ingredients (data, like the numbers 5 and 10). The computer can read from any page, whether it's an instruction or a piece of data. This flexibility is what allows your computer to be a general-purpose machine, able to run a web browser one moment and a video game the next.
This architecture consists of three main parts connected by a series of electronic pathways called buses:
- The Central Processing Unit (CPU): The master chef.
- Primary Memory (RAM): The chef's main countertop/workstation.
- Input/Output (I/O) Devices: The waiters and the ordering system (keyboard, mouse, screen).
#### The Central Processing Unit (CPU): The Chef
The CPU is the brain, the engine, the heart—whatever you want to call it, it's where the thinking happens. Its job is to perform a continuous, relentless cycle of fetching instructions from memory, decoding them to understand what they mean, and then executing them. This is called the Fetch-Decode-Execute Cycle.
A CPU's speed is measured in Hertz (Hz). One Hertz is one cycle per second. Modern CPUs operate at speeds of Gigahertz (GHz), which means *billions* of cycles per second. So, a 3.2 GHz processor can, in theory, perform 3.2 billion Fetch-Decode-Execute cycles every single second.
The CPU itself is not one single block; it's made of several highly specialized components. For your O Levels, you must know three:
1. The Control Unit (CU):
The CU is the *manager* of the kitchen. It doesn't do any cooking itself, but it directs the entire workflow. Its job is to:
* Fetch the next instruction from memory.
* Decode the instruction to understand what needs to be done (e.g., "This is an addition operation").
* Manage Execution: It sends control signals to other parts of the computer, telling them what to do and when. It tells the ALU "get ready to add," tells the memory "send me the data from this location," and so on. It synchronises everything, ensuring data flows to the right place at the right time.
2. The Arithmetic Logic Unit (ALU):
The ALU is the *master calculator* and *decision-maker* of the CPU. It's the sous-chef who does the actual chopping and mixing. The CU gives it orders, and the ALU executes them. It performs two types of operations:
* Arithmetic Operations: All the basic maths: addition (`+`), subtraction (`-`), multiplication (`*`), division (`/`).
* Logic Operations: Comparing two pieces of data. For example, is `A > B`? Is `C == D`? It also performs logical operations like `AND`, `OR`, and `NOT`. These are the foundation of all decision-making in a program (e.g., `if student_marks > 50 then...`).
3. Registers:
Registers are extremely small, but incredibly fast, memory locations *inside the CPU itself*. They are the chef's personal spice rack or a small chopping board right next to him. Instead of walking over to the main countertop (RAM) every single time he needs something, he keeps the most immediate ingredients and tools right there. This saves a huge amount of time.
You need to know several key registers for your exam:
* Program Counter (PC): Holds the memory address of the *next* instruction to be fetched. It’s like a bookmark in the cookbook, always ready for the next step.
* Memory Address Register (MAR): Holds the memory address of the instruction or data that is about to be fetched from or written to memory. When the CPU needs to access memory, it first puts the required address into the MAR. It's like writing the shelf number on a sticky note before going to the pantry.
* Memory Data Register (MDR): A two-way register that holds the data or instruction that has just been fetched from memory, or is about to be written to memory. It's the temporary holding tray. Data from memory comes into the MDR; data going to memory goes from the MDR.
* Current Instruction Register (CIR): Holds the *current* instruction while it is being decoded and executed. Once an instruction is fetched and brought into the CPU, it's copied into the CIR.
* Accumulator (ACC): A general-purpose register that stores the results of calculations made by the ALU. Think of it as the main mixing bowl where intermediate results are kept.
#### The Buses: The Communication Highway
How do all these components talk to each other? They use a set of parallel wires called buses. Think of them as the nervous system of the computer, or the network of waiters in our kitchen. There are three types of buses:
- Address Bus: This bus carries memory addresses. When the CPU wants to read or write data, it places the memory address on the address bus. It is unidirectional—the information flows only one way, from the CPU to the memory. The CPU is the boss; it dictates *which* memory location to access.
* The "Why": The width of the address bus (the number of wires) determines the maximum amount of memory the CPU can address. If an address bus has `n` wires, it can specify `2^n` unique memory locations.
- Data Bus: This bus carries the actual data or instruction between the CPU and memory. It is bidirectional—data can flow from the CPU to memory (a "write" operation) or from memory to the CPU (a "read" operation). The waiter can carry an order to the kitchen, and also carry food from the kitchen.
- Control Bus: This bus carries command and control signals from the CU to other components. It is also bidirectional. It carries signals like "memory read" (telling memory to put data onto the data bus), "memory write" (telling memory to take data from the data bus), and clock signals to synchronise everything. It's the head chef shouting commands: "Read the order now!", "Write this down!", "Everyone work faster!".
#### The Fetch-Decode-Execute Cycle in Detail
Let's put this all together and walk through a single cycle. This is a guaranteed high-mark question on your exam.
1. Fetch Stage:
* The address of the next instruction is copied from the Program Counter (PC) to the Memory Address Register (MAR). `PC -> MAR`
* The PC is then incremented to point to the *next* instruction for the *next* cycle. `PC + 1`
* The Control Unit sends a 'read' signal along the control bus to the memory.
* The instruction stored at the address in the MAR is fetched and placed onto the data bus.
* This instruction travels along the data bus to the Memory Data Register (MDR).
* The instruction is then copied from the MDR to the Current Instruction Register (CIR).
2. Decode Stage:
* The Control Unit reads the instruction now held in the CIR.
* It decodes the instruction, figuring out what operation needs to be performed (e.g., ADD, LOAD, STORE) and what data is needed.
3. Execute Stage:
* The decoded instruction is carried out. This could involve several steps. For example, if the instruction is `ADD 50`, the CU might:
* Tell the memory to fetch the number stored at address 50 (this involves using the MAR and MDR again).
* Send the fetched number and the current value in the Accumulator (ACC) to the ALU.
* Instruct the ALU to perform addition.
* Store the result from the ALU back into the Accumulator (ACC).
This cycle repeats billions of times per second. It is the fundamental rhythm, the heartbeat, of your computer.
Key Definitions & Formulae
Von Neumann Architecture: A computer architecture where program instructions and data are stored in the same memory space.
CPU (Central Processing Unit): The component that executes program instructions. Comprises the CU, ALU, and registers.
CU (Control Unit): The part of the CPU that coordinates all computer activities by sending control signals. It fetches, decodes, and manages the execution of instructions.
ALU (Arithmetic Logic Unit): The part of the CPU that performs arithmetic calculations and logical comparisons.
Register: A small, high-speed storage location directly within the CPU.
Bus: A set of parallel wires connecting two or more components of a computer.
* Address Bus: Carries memory addresses from the CPU to memory. Unidirectional.
* Data Bus: Carries data and instructions between the CPU and memory. Bidirectional.
* Control Bus: Carries command and timing signals. Bidirectional.
Clock Speed: The number of Fetch-Decode-Execute cycles a CPU can perform per second.
* Unit: Hertz (Hz). 1 Hz = 1 cycle per second.
* Commonly measured in Gigahertz (GHz). `1 GHz = 1,000,000,000 Hz`.
Key Formula: Maximum Addressable Memory
The maximum amount of memory a CPU can access is determined by the width of its address bus.
* Formula: `Maximum Memory Locations = 2^n`
* Where `n` = the number of wires (or bits) in the address bus.
Why `2^n`? Each wire in the bus can be either a 0 (low voltage) or a 1 (high voltage). This is a binary system. If you have `n` wires, you have `n` binary digits. The number of unique combinations you can make with `n` binary digits is `2^n`. Each unique combination represents a unique memory address.
Worked Examples
#### Example 1: WAPDA Power Grid Controller in Lahore
Scenario: A computer system at a WAPDA control centre in Lahore is used to monitor the power grid. It has an address bus with a width of 32 bits. Calculate the maximum amount of memory this system can address. Give your answer in Gigabytes (GB).
Working:
- Identify the formula: The relationship between address bus width (`n`) and memory locations is `2^n`.
* Here, `n = 32`.
- Calculate the number of unique addresses:
* `Number of locations = 2^32`
* `2^32 = 4,294,967,296` unique memory locations.
- Convert locations to Bytes: In modern systems, each memory location typically holds one Byte (8 bits) of data.
* So, the maximum memory is `4,294,967,296 Bytes`.
- Convert Bytes to meaningful units (KB, MB, GB):
* We know: `1 KB = 1024 Bytes` (`2^10`)
* `1 MB = 1024 KB` (`2^10`)
* `1 GB = 1024 MB` (`2^10`)
- Step-by-step conversion:
* To convert Bytes to KB: `4,294,967,296 / 1024 = 4,194,304 KB`
* To convert KB to MB: `4,194,304 / 1024 = 4,096 MB`
* To convert MB to GB: `4,096 / 1024 = 4 GB`
Shortcut: Since `1 GB = 1024 * 1024 * 1024 = (2^10)^3 = 2^30` Bytes, you can also calculate:
`2^32 Bytes / 2^30 Bytes/GB = 2^(32-30) GB = 2^2 GB = 4 GB`.
Answer: The system can address a maximum of **4 Gigabytes (GB)** of memory.
#### Example 2: Tracing an Instruction during a PSL Cricket Match
Scenario: A program is calculating the total runs for a batsman. The current score, `96`, is stored in memory location `101`. The next instruction is `ADD 101`, which means "add the contents of memory location 101 to the Accumulator". Let's assume the Accumulator currently holds the value `0`, and the instruction `ADD 101` is stored at memory location `50`. The Program Counter (PC) currently holds the value `50`.
Trace the Fetch-Decode-Execute cycle for this instruction.
Working:
FETCH Stage:
- The value of the PC (`50`) is copied to the MAR. `MAR = 50`.
- The PC is incremented. `PC = 51`.
- A 'read' signal is sent on the control bus.
- The instruction at address `50` (`ADD 101`) is fetched and placed on the data bus.
- The instruction travels to the MDR. `MDR = "ADD 101"`.
- The instruction is copied from the MDR to the CIR. `CIR = "ADD 101"`.
DECODE Stage:
- The CU decodes the instruction in the CIR. It understands:
* The operation is `ADD`.
* The operand (the address of the data) is `101`.
EXECUTE Stage:
- The address part of the instruction (`101`) is placed in the MAR. `MAR = 101`.
- A 'read' signal is sent on the control bus.
- The data at address `101` (which is `96`) is fetched and placed on the data bus.
- The data travels to the MDR. `MDR = 96`.
- The CU instructs the ALU to perform addition. The value from the MDR (`96`) and the value from the Accumulator (`0`) are sent to the ALU.
- The ALU performs the addition: `96 + 0 = 96`.
- The result (`96`) is stored back in the Accumulator. `ACC = 96`.
The cycle is now complete. The CPU is ready to fetch the next instruction from address `51`, where the PC is now pointing.
#### Example 3: Buying a Laptop in Hafeez Centre, Lahore
Scenario: Ali is at Hafeez Centre trying to buy a laptop. He sees two options:
* Laptop A: 3.5 GHz Dual-Core (2 cores) CPU, 2 MB Cache
* Laptop B: 3.0 GHz Quad-Core (4 cores) CPU, 8 MB Cache
Ali thinks Laptop A is better because `3.5 GHz` is a bigger number than `3.0 GHz`. Explain why Laptop B is likely the better performing machine, especially for multitasking.
Working:
- Analyse Clock Speed: Laptop A has a higher clock speed. This means each of its individual cores can execute more Fetch-Decode-Execute cycles per second (3.5 billion vs 3.0 billion). For a simple, single-threaded task, Laptop A might be slightly faster.
- Analyse Cores: This is the key difference. A 'core' is essentially a complete processing unit within the main CPU.
* Laptop A has 2 cores. It can genuinely work on 2 different tasks simultaneously.
* Laptop B has 4 cores. It can genuinely work on 4 different tasks simultaneously.
- Apply to Multitasking: Modern computing involves heavy multitasking. Imagine Ali wants to play a game, stream a cricket match on another screen, and have a chat application open.
* Laptop B can dedicate a separate core to each of these tasks, allowing them to run smoothly in parallel.
* Laptop A would have to rapidly switch its 2 cores between the tasks, which can lead to slowdowns and stuttering.
- Analyse Cache: CPU Cache is a small amount of super-fast memory, even faster than RAM, built into the CPU. It stores frequently used data and instructions.
* Laptop B has 8 MB of cache, four times more than Laptop A's 2 MB.
* This means Laptop B's CPU can store more data "close to home" and doesn't have to go all the way to the slower RAM as often. This significantly speeds up overall performance.
Conclusion: Although Laptop A has a slightly higher clock speed, Laptop B's advantage in having double the number of cores and four times the cache makes it a much more powerful and efficient machine for modern, multitasking use. It's like having four very good chefs (Laptop B) versus two slightly faster chefs (Laptop A) – the team of four will get much more work done overall.
Visual Mental Models
To solidify these concepts, picture them in your mind.
- The Von Neumann Kitchen:
* CPU: The Head Chef, standing in the middle, shouting orders.
* CU: The Chef's brain, reading the recipe book.
* ALU: The Chef's hands, doing the chopping and mixing.
* Registers: A small spice rack and cutting board right in front of the Chef for immediate access.
* RAM: The main kitchen countertop. Big, but further away than the personal cutting board.
* Hard Drive: The large pantry/refrigerator in the back. Stores all ingredients but is slow to access.
* Buses: The waiters running between the Chef, the countertop, and the pantry.
- ASCII Diagram of Computer Architecture:
+-----------------+
| CPU |
| +------+------+ |
| | CU | ALU | |
| +------+------+ |
| | Registers | |
+-------+---------+
|
<-- Control Bus ->|
<---- Data Bus --->|
|
+-------+---------+
| Primary Memory |
| (RAM) |
+-----------------+
This simple diagram shows the CPU connected to Memory. Critically, it shows the direction of the buses. The Address bus is one-way (CPU to RAM), while the Data and Control buses are two-way.
- The FDE Cycle as a Circular Conveyor Belt:
Imagine a circular conveyor belt.
* Station 1 (FETCH): A robotic arm (the CU) grabs an instruction from a shelf (RAM) and places it in a special inspection box (the CIR).
* Station 2 (DECODE): The instruction in the box is scanned and understood.
* Station 3 (EXECUTE): Other robotic arms (the ALU) perform the task described by the instruction, perhaps grabbing ingredients (data from RAM) and mixing them in a bowl (the Accumulator).
* The belt then moves, and the cycle begins for the next instruction.
Common Mistakes & Misconceptions
- "Higher Clock Speed (GHz) is always better."
* Why it's wrong: As seen in our Hafeez Centre example, this is a massive oversimplification. The number of cores, the amount of cache memory, and the overall architecture of the CPU are often more important for real-world performance than raw clock speed.
* Correct Thinking: Performance is a combination of clock speed, cores, cache, and efficiency. A modern quad-core CPU is almost always better than an older dual-core CPU, even if the older one has a higher clock speed.
- Confusing RAM (Primary Memory) with the Hard Drive (Secondary Storage).
* Why it's wrong: Students often use "memory" and "storage" interchangeably. They have very different roles.
* Correct Thinking: RAM is the kitchen countertop—volatile (loses its contents when the power is off), fast, and holds what you are *currently* working on. The Hard Drive is the pantry—non-volatile (keeps its contents), slower, and holds *everything* you own, even when the computer is off.
- Mixing up the MAR and the MDR.
* Why it's wrong: They sound similar, but their jobs are distinct. Putting the wrong one in an FDE cycle description will lose you marks.
* Correct Thinking: Remember the letters. A is for Address (MAR holds the *location*). D is for Data (MDR holds the *thing* at that location). The MAR is like the house number; the MDR is like the person living inside the house.
- Thinking the Control Unit (CU) executes instructions.
* Why it's wrong: This is a subtle but critical error. The CU is a manager, not a worker.
* Correct Thinking: The CU *orchestrates* the execution. It fetches and decodes the instruction, and then it *directs* the appropriate components (like the ALU or memory) to carry out the actual task.
- Confusing the Address Bus and Data Bus directionality.
* Why it's wrong: Stating that the address bus is bidirectional is a common mistake that shows a lack of understanding.
* Correct Thinking: The CPU is always in charge of deciding *which* memory location to access. Therefore, the address only needs to travel *from* the CPU *to* the memory. It's a one-way street. Data, however, needs to be read *from* memory and written *to* memory, so the data bus must be a two-way street.
Exam Technique & Mark Scheme Tips
Cambridge examiners are precise. You must be too.
- Master the Command Words:
* State: Give a name or a single-word answer. "State the register that holds the address of the next instruction." Answer: "Program Counter (PC)". No explanation needed.
* Describe: Provide the key features of something. "Describe the function of the ALU." Answer: "The ALU performs arithmetic operations, such as addition and subtraction, and logical operations, such as comparing values."
* Explain: Give reasons and show understanding of the process. This requires more detail. "Explain the 'fetch' stage of the FDE cycle." This requires a step-by-step account mentioning the PC, MAR, MDR, and the buses, as shown in our worked example. A 6-mark question on this needs all the details.
- Be Specific About Registers: When describing the FDE cycle, don't just say "the CPU fetches the instruction." A top-grade answer says: "The address from the PC is copied to the MAR. The instruction at this address is then moved via the data bus to the MDR, and finally to the CIR." Naming the registers and buses is where you get the marks.
- Bus Width Questions: A classic Cambridge question is "Explain the effect of increasing the width of the address bus."
* Weak Answer: "The computer gets faster." (0 marks)
* Good Answer: "Increasing the width of the address bus, for example from 16 to 32 bits, increases the number of unique memory addresses the CPU can access." (1 mark)
* Excellent Answer: "Increasing the width of the address bus by `n` bits increases the maximum addressable memory by a factor of `2^n`. For example, increasing the width from 32 to 33 bits doubles the maximum addressable RAM from 4GB to 8GB, allowing the computer to run more complex programs and handle larger datasets simultaneously." (2-3 marks)
- Structure Your Answers: For long questions (e.g., "Compare two CPUs"), use paragraphs. Start with a point (e.g., "Firstly, consider the number of cores."), explain it, and then relate it back to the question. Use comparison words like "whereas," "on the other hand," and "however."
Memory Tricks & Mnemonics
Beta, sometimes our brains need a little help to remember these technical terms. Try these!
* FDE Cycle: Friends Don't Eat. (Fetch, Decode, Execute)
* The Key Registers (Think of a Postman delivering a letter):
* PC (Program Counter): The postman's Planned Course for the next house.
* MAR (Memory Address Register): The Mail Address on the Road.
* MDR (Memory Data Register): The Mail Data in the Received box.
* CIR (Current Instruction Register): The Current Instruction being Read.
* ACC (Accumulator): The ACCount where the final sum is kept.
* Bus Directionality:
* Address Bus: Think of a one-way street (A-road) leading away from the city centre (CPU).
* Data Bus: It's Dual-carriageway (two-way).
Pakistan & Everyday Connections
- NADRA's CNIC System: When a government officer in Islamabad enters your CNIC number to verify your identity, their computer's CPU is executing a program. Your CNIC number is the *data*. The instruction might be `SEARCH database FOR CNIC`. The CPU fetches this instruction, decodes it, and then executes it, pulling your record from a massive server. The speed and efficiency of the Von Neumann architecture allow millions of such queries to happen daily across Pakistan.
- EasyPaisa & JazzCash Transactions: When you send Rs. 500 to your friend, your smartphone's CPU is at work. The app's instruction (`SEND amount TO number`) and the data (`500`, `friend's_number`) are both in your phone's RAM. The CPU's ALU performs checks (e.g., `is balance >= 500?`), and the CU coordinates sending the final transaction request over the network.
- Simulating Indus River Flow: Engineers at WAPDA use powerful computers to simulate water flow, dam levels, and electricity generation. These simulations involve billions of calculations. The computer's CPU is constantly fetching instructions (mathematical formulas) and data (water levels, rainfall data) from memory, with the ALU performing the intense calculations required to predict outcomes and manage our country's most vital resource.
Practice Problems
- (Bookwork) Describe the purpose of the Memory Data Register (MDR) and the Program Counter (PC) within the CPU. [4 marks]
* Answer Outline: Define MDR (holds data/instruction being transferred to/from memory, bidirectional). Define PC (holds address of the *next* instruction, is incremented during fetch).
- (Calculation) A simple microprocessor has an address bus that is 12 bits wide. Calculate the maximum number of memory locations it can address. [2 marks]
* Answer Outline: State formula `2^n`. Substitute `n=12`. Calculate `2^12 = 4096`.
- (Process) Explain what happens during the 'decode' and 'execute' stages of the FDE cycle for an instruction that loads a value from memory into the accumulator. [5 marks]
* Answer Outline: Decode: CU interprets the instruction in the CIR. Execute: Address part of instruction copied to MAR. Read signal sent. Data from memory goes to MDR. Data from MDR is copied to the Accumulator.
- (Application) The Pakistan Meteorological Department needs a new supercomputer for weather forecasting. They are offered two systems. System A has CPUs with a very high clock speed but less cache. System B's CPUs have a slightly lower clock speed but significantly more cores and a very large cache. Which system would you recommend and why? [4 marks]
* Answer Outline: Recommend System B. Explain that weather forecasting involves processing vast amounts of parallel data (temperature, pressure, wind for many locations). More cores allow for parallel processing, speeding this up immensely. Large cache means frequently accessed weather models don't need to be fetched from slow RAM, further boosting performance. Clock speed is less critical than parallelism for this task.
I hope this detailed lesson has made the inner workings of a computer much clearer. Go through it carefully, try the practice problems, and you'll be in an excellent position for your exams. Allah Hafiz
Key Points to Remember
- 1The Von Neumann architecture is a computer design where both program instructions and data are stored together in the same memory.
- 2This architecture is based on the stored-program concept, where the program itself can be manipulated in memory like data.
- 3Computer hardware refers to the physical components of a computer system that execute instructions.
- 4A key principle of the Von Neumann architecture is using a single, shared memory for both instructions and data.
- 5This design allows a computer to change tasks simply by loading a different program into memory, without physical rewiring.
- 6The Von Neumann architecture is the fundamental blueprint for most modern general-purpose computers.
- 7Instructions are the steps a program follows, while data is the information that the instructions operate on.
- 8Early computers stored instructions and data separately, which was inefficient and inflexible.
- 9The Von Neumann architecture was proposed by mathematician John von Neumann in the 1940s.
- 10Understanding hardware is a foundational concept for learning about software, programming, and networking.
Pakistan Example
Hafeez Centre Lahore — Pakistan's Tech Hub
Walk into Hafeez Centre in Lahore and you'll find every computer component discussed in this chapter. Vendors sell RAM sticks (4GB, 8GB, 16GB — more RAM means more programs can run simultaneously). SSDs are taking over HDDs because they're faster (no spinning disk). A budget gaming PC might have: Intel i5 CPU (4 cores, 3.5 GHz clock speed — that's 3.5 billion fetch-decode-execute cycles per second!), 16GB RAM, 512GB SSD, and a dedicated GPU. The shopkeeper who can explain these specs knows his computer architecture!
Quick Revision Infographic
Computer Science — Quick Revision
Computer Hardware
Key Concepts
Hafeez Centre Lahore — Pakistan's Tech Hub
Walk into Hafeez Centre in Lahore and you'll find every computer component discussed in this chapter. Vendors sell RAM sticks (4GB, 8GB, 16GB — more RAM means more programs can run simultaneously). SSDs are taking over HDDs because they're faster (no spinning disk). A budget gaming PC might have: Intel i5 CPU (4 cores, 3.5 GHz clock speed — that's 3.5 billion fetch-decode-execute cycles per second!), 16GB RAM, 512GB SSD, and a dedicated GPU. The shopkeeper who can explain these specs knows his computer architecture!