Skip to content
BENIBIX Learn

Parallelism

Development⚙️ Compilers & RuntimesConcurrency

Also known as Parallel Computing, Parallel Processing, Parallel

Doing many tasks at once, each on its own core.

Think of it like

Think of it like four cooks, each making one dish at once. Dinner is ready four times sooner.

Example

Emma's video app splits a 10-minute clip into 8 parts. Each of her 8 cores encodes one part at once, and the job takes 2 minutes instead of 12.

Why it matters

Single cores stopped getting much faster years ago. Using many cores at once is now the main way to speed up heavy work.

Definition

Parallelism is running several tasks at the very same instant on different CPU cores. A big job is split into parts, and each core works on one part. A laptop with 8 cores can, at best, finish such a job about 8 times faster. In practice the gain is smaller, because the parts must be split and joined again. Parallelism needs more than one core, while concurrency does not.

Common mistake

Expecting double the cores to always mean double the speed. Any part that cannot be split still runs on one core.

Key takeaways

  1. 1
    Same instant. Not just taking turns.
  2. 2
    Many cores. One part each.
  3. 3
    Split and join. That has a cost.

Compare