Ez Computerहिन्दीOpen app

Deep Dive 8 — The Processor Under the Hood

Preview Part K: Deep Dive · Chapter 46 · 15 min read · 20 practice questions

After this chapter you will be able to

  • convert a clock speed into cycle time and instructions per second
  • explain cores, threads and simultaneous multithreading
  • calculate performance using clock speed, IPC and Amdahl’s law
  • trace the instruction cycle and calculate pipeline speed-up
  • compare RISC with CISC and x86 with ARM
  • decode a CPU name and read a CPU spec sheet

Units used in this chapter. Clock speeds: 1 GHz = 10⁹ cycles per second. Memory addresses follow the exam convention, where 1 GB = 2³⁰ bytes, so 2³² bytes = 4 GB. MIPS means million instructions per second.

The ProcessorClock and speedGHz = cycles per secondCycle time = 1 ÷ clockClock alone ≠ speedCores and threadsCore = full CPU unitThread = instr. streamSMT = Hyper-ThreadingPerformance mathsInstr/s = clock × IPCAmdahl: serial limitsp 0.8, 4 cores: 2.5×Instruction cycle4 stages, repeatedPC, MAR, MDR, IR, ACCInstr = several ticksPipeline5 stages: IF to WBOverlaps instructionsHazards slow it downRISC vs CISCARM = RISCx86 = CISCRISC: only LOAD, STOREWord size32-bit = 4 GB64-bit = 16 EB (theory)Word = register widthPower and specsTDP is in wattsBase vs boost clockF suffix: no graphics
Chapter 46 at a glance Chain to recall: clock → cycles → instructions. Cores add parallel work, but Amdahl's Law limits the gain.

46.1 What the Clock Counts

The clock is an electrical signal that switches at a steady rate, like a metronome for the processor. Each tick is one clock cycle. The CPU performs its steps in time with these ticks.

Worked example — a 3.5 GHz processor

Cycle time = 1 ÷ (3.5 × 10⁹) s = 0.2857 × 10⁻⁹ s ≈ 0.286 ns.

Clock speed Cycle time
1 GHz 1 ns
2 GHz 0.5 ns
3 GHz 0.33 ns
4 GHz 0.25 ns
5 GHz 0.2 ns

Clock speed rose quickly through the 1990s and early 2000s, reaching a few GHz. Heat and power limits then pushed designers to add cores and improve the work done per cycle, rather than raise the clock further.

⚠ COMMON CONFUSION — GHz counts cycles, not work. A 2 GHz processor that completes 3 instructions per cycle does 6 billion instructions per second. A 3 GHz processor that completes 1 instruction per cycle does only 3 billion. The 2 GHz chip is faster.

⚡ QUICK FACT — Gordon Moore observed in 1965 that the number of transistors on a chip was doubling every year. In 1975 he revised the pace to about every two years. This observation is known as Moore’s Law.

46.2 Cores, Threads and SMT

The operating system sees each thread as a logical processor.

Processor Cores Threads Logical processors seen by the OS
Quad-core, no SMT 4 4 4
Quad-core with SMT 4 8 8
Six-core with SMT 6 12 12

★ EXAM POINT — Threads = logical processors seen by the operating system. Hyper-Threading is Intel’s name for SMT.

Extra cores and threads help only when the work can be split. The next section shows why.

What the full chapter covers

The full chapter has these sections:

  1. 46.1 What the Clock Counts
  2. 46.2 Cores, Threads and SMT
  3. 46.3 Performance Maths: Clock, IPC and Parallel Limits
  4. 46.4 The Instruction Cycle
  5. 46.5 The Pipeline
  6. 46.6 RISC vs CISC; x86 vs ARM
  7. 46.7 Word Size: 32-bit vs 64-bit
  8. 46.8 Power, Heat and Clock Behaviour
  9. 46.9 How to Read a CPU Name and Spec Sheet
  10. Chapter Quick Revision
  11. Most Important Terms
  12. Common Confusions
  13. Rapid Recall

Sample questions from this chapter

1. Register holding the instruction being decoded?

  1. Program Counter
  2. Memory Data Register
  3. Instruction Register
  4. Accumulator
Show answer

Answer: C. Instruction Register

The Instruction Register (IR) holds the current instruction while the Control Unit decodes it.

2. Temporary higher clock that a CPU may use?

  1. Cycle time
  2. Boost clock
  3. Base clock
  4. Clock cycle
Show answer

Answer: B. Boost clock

Boost clock is a higher frequency a CPU may use briefly when temperature and power allow.

3. Frequency guaranteed under the rated design?

  1. Base clock
  2. Boost clock
  3. Cycle time
  4. Clock cycle
Show answer

Answer: A. Base clock

Base clock is the frequency guaranteed under the rated design; boost is temporary.

4. Clock cycles needed for 100 instructions in a 5-stage pipeline with no hazards?

  1. 500
  2. 104
  3. 105
  4. 100
Show answer

Answer: B. 104

The first instruction takes 5 cycles, then each of the other 99 adds one more: 5 + 99 = 104.

5. Cycle time of a 2 GHz clock?

  1. 1 ns
  2. 0.25 ns
  3. 2 ns
  4. 0.5 ns
Show answer

Answer: D. 0.5 ns

Cycle time = 1 ÷ frequency; at 2 GHz that is 1 ÷ (2 × 10⁹) s, or 0.5 ns.