← Back to Home

Session 02 — Flynn's Taxonomy & Memory Models

Session 02 is about classifying parallel machines, so these are interactive demos, not code files. Open them full-screen and show them live in class.

▶  Open the Interactive Slides

1. Flynn's Taxonomy Classifier

Two toggles — instruction streams and data streams — reveal the Flynn category (SISD / SIMD / MISD / MIMD) with a real example. Great for "you name the machine, class predicts the box."

2. Shared vs Distributed Memory

Side-by-side diagram: N cores sharing one memory box vs N processors each with their own, connected by message arrows. Makes the "easy but doesn't scale / hard but scales forever" trade-off visual.

3. SIMD Is Already In Your Laptop (C)

20 lines. Don't run it — compile it twice on godbolt.org and watch addss (1 float) become vaddps (8 floats). Same source, same one core. That's SISD → SIMD in one letter.

No installs, no compilers — these run in any modern browser. Real OpenMP / MPI / CUDA code starts in Session 03 and Unit IV.