# Concurrency vs Parallelism — Interactive Animation

Extract this ZIP and open concurrency-parallelism-animation.html in any modern browser. No install, server or network access is needed.

Use Play/Pause, Next slot, Reset, Speed and the Slot slider. The animation starts paused when the browser reports a preference for reduced motion. All panels use the same clock and the same twelve work units. At slot 6, sequential execution has finished A only, interleaving has executed three units of each task, and the two-core model has finished both tasks. At slot 12, all have finished.

This is a conceptual CPU scheduling model, not a Java benchmark. It assumes independent, equally sized tasks and omits I/O waiting and coordination overhead. Virtual threads do not add CPU cores.

Copyright 2026 Homann Software. Provided under the MIT license included in the Java/Spring concurrency lab.
