Welcome to "Types of Processor"!

In this chapter, we’re going to look "under the hood" of different computer systems. Just like a tractor, a racing car, and a bicycle all have different types of "engines" to suit their jobs, computers use different types of processors depending on what they need to achieve.

Whether you’re aiming for a top grade or just trying to make sense of the jargon, don't worry! We’ll break these concepts down using simple analogies and clear steps. By the end of this, you’ll know exactly why your smartphone uses a different "brain" than your gaming PC.


1. CISC vs. RISC: Two Different Philosophies

The first thing to understand is that there are two main ways to design a processor's "instruction set" (the list of commands it understands). These are CISC and RISC.

CISC (Complex Instruction Set Computing)

CISC processors are designed to complete a task in as few lines of assembly code as possible. The hardware is complex because it does a lot of the heavy lifting.

  • Instruction Length: Variable (some instructions are short, some are very long).
  • Hardware: Very complex.
  • Clock Cycles: One instruction might take several clock cycles to finish.
  • Physical Size: Usually larger and requires more power (which produces more heat).

Real-world Analogy: Imagine a CISC processor is like a high-end Automatic Bread Maker. You press one button ("Make Bread"), and the machine handles the mixing, kneading, rising, and baking internally. The command is simple for you, but the machine's internal "hardware" is very complicated.

RISC (Reduced Instruction Set Computing)

RISC processors use a small, highly optimized set of simple instructions. Each instruction is designed to take exactly one clock cycle.

  • Instruction Length: Fixed (every instruction is the same size).
  • Hardware: Simpler and smaller.
  • Clock Cycles: Every instruction takes exactly one cycle.
  • Physical Size: Smaller, uses less power, and stays cooler.

Real-world Analogy: Imagine RISC is like a Chef with a Knife. To make bread, the chef has to perform many simple, separate steps: "Pour flour," "Add water," "Stir," "Knead." Each step is very simple and fast, but you need more lines of "code" to get the job done.

Quick Comparison Table

CISC: Complex hardware, simple software, variable instruction length, used in Desktops/Laptops (e.g., Intel, AMD).
RISC: Simple hardware, complex software, fixed instruction length, used in Smartphones/Tablets (e.g., ARM chips).

Common Mistake to Avoid: Students often think "Reduced" means the processor is less powerful. That’s not true! RISC is often faster for many tasks because its simple instructions can be processed so efficiently (and it's great for pipelining!).

Memory Aid: The First Letter Trick

RISC = Realistically Simple (Simple instructions, one cycle).
CISC = Complicated (Complex instructions, many cycles).

Key Takeaway: CISC focuses on making the compiler's job easy with complex hardware, while RISC focuses on simple, fast-executing hardware that relies on clever software.


2. GPUs (Graphics Processing Units)

You might have a GPU in your computer for gaming, but in Computer Science, we care about its architecture. A GPU is a specialized electronic circuit designed to rapidly manipulate and alter memory.

Why are GPUs different from CPUs?

A CPU (Central Processing Unit) is like a General Practitioner Doctor: it’s a genius that can do anything, but it usually handles one patient (task) at a time.

A GPU is like a Massive Choir: it consists of thousands of much smaller, simpler "cores." They can’t do complex tasks as well as a CPU, but they can do the same simple task thousands of times simultaneously.

Uses of GPUs

Because GPUs are great at doing the same calculation to lots of data at once (known as Parallel Processing), they are used for:

  • Graphics and Gaming: Calculating the color and position of millions of pixels on a screen.
  • Machine Learning / AI: Processing vast amounts of data to train neural networks.
  • Oil and Gas Exploration: Processing seismic data.
  • Weather Modelling: Calculating complex fluid dynamics.
  • Cryptocurrency Mining: Performing repetitive mathematical "hashes."

Did you know? When a GPU is used for things other than graphics (like science or math), we call it GPGPU (General-Purpose computing on Graphics Processing Units).

Key Takeaway: While a CPU is great for Serial Processing (one task after another), a GPU is the king of Parallel Processing (many simple tasks at once).


3. Multicore and Parallel Systems

In the old days, if you wanted a faster computer, you just made the "clock speed" faster. But we hit a limit—processors got too hot! Now, we make computers faster by adding more "brains."

Multicore Systems

A Multicore processor is a single chip that contains two or more independent processing units (called cores). Each core can read and execute program instructions independently.

  • Dual-core: 2 cores.
  • Quad-core: 4 cores.

The Kitchen Analogy: If one core is one chef, a multicore system is a kitchen with four chefs. They can work on different parts of the meal at the same time!

Parallel Systems

Parallel processing is the simultaneous execution of the same task on multiple processors to obtain results faster. This can happen within a single multicore chip, or across a huge Supercomputer with thousands of separate processors working together.

The "Speed-Up" Catch

Don't worry if this seems tricky, but adding more cores doesn't always make a computer perfectly faster. Why?
1. The Software must be "Parallelizable": If you are writing a book, four people can’t easily write the same sentence at the same time. Some tasks are "serial" and must be done in order.
2. Overhead: The cores need to talk to each other to coordinate. This takes time!

Quick Review Box:
- CISC: Complex instructions, variable cycles.
- RISC: Simple instructions, 1 cycle, used in mobile devices.
- GPU: Highly parallel, great for math and graphics.
- Multicore: Multiple CPUs on one chip to share the workload.

Key Takeaway: Multicore and Parallel systems aim to increase performance by doing multiple things at once, but they rely heavily on software being designed to split tasks up effectively.


Summary Checklist

Before you move on, make sure you can answer these three questions:

1. Can I name two differences between RISC and CISC? (e.g., Instruction length and power consumption).
2. Why is a GPU better than a CPU for weather modelling? (Because it can process thousands of data points in parallel).
3. Does doubling the number of cores always double the speed of a computer? (No, because the software must be written to use them, and there is communication overhead).

Great job! You've just mastered one of the core parts of the "Computer Systems" module. Keep going!