← Back to examples

OpenMP schedule() Visualizer

A parallel loop of 32 iterations, spread across 4 threads. The colour of each cell tells you which thread ran that iteration. Notice how the three policies hand out work differently — and how uneven workloads change which one keeps every thread busy. This is exactly what 01-omp-for-schedule.c prints as text; here you can see the shape of it.

Ready — pick a schedule and press Run.
static splits the 32 iterations into 4 equal, contiguous blocks decided up front — zero coordination cost. Perfect when every iteration costs the same.