Devices, interrupts and parallel hardware

How the processor talks to devices with polling, interrupts and DMA, and how multicore chips, GPUs and cache coherence work.

About 3 hours of study

Learning objectives

Lessons

  1. 1

    Input and output: polling, interrupts and DMA Intermediate

    How the processor talks to devices: memory-mapped I/O, polling, interrupts and how they are handled, and direct memory access.

  2. 2

    Parallel processors and multicore Advanced

    Doing many things at once: Flynn's taxonomy, multicore processors and cache coherence, GPUs, and the limits set by Amdahl's law.

  3. 3

    Cache coherence and the MESI protocol Advanced

    How cores that each keep a private cache agree on the value of shared data: write-invalidate, the four MESI states, false sharing and memory consistency.

Module practice

Module quiz

1. Which I/O method copies a whole block without the CPU handling each byte?
2. In MESI, what does the Modified state mean?
3. A program is 75% parallel. What is the best speedup with unlimited cores?
4. Which Flynn class describes a multicore processor running different programs?
5. Two cores each update their own counter, but the counters are 8 bytes apart in one 64-byte block. What happens?
6. Core 0 and core 1 both hold a block Shared. Core 0 writes it. What are the final states of core 0 and core 1?

‹ Caches and virtual memoryFinal assessment ›