Antoine Rakotozafy ← From Bits to Agents
From Bits to Agents · 05/31Chapter I · The Foundations

Parallel computing: More than one thing at a time

In Day 04, we looked at how a computer’s components work together to execute instructions. But what happens when one task becomes too large for a single execution path?

One answer is to divide the work.

A computing workload divided into smaller tasks that are processed simultaneously.

From sequence to parallel work

A simple program often runs instructions in sequence: complete one step, then move to the next. Some problems depend on that order. Others contain independent pieces that can be processed at the same time.

Consider applying the same colour adjustment to every pixel in a large image. One pixel’s calculation doesn’t need to wait for another pixel’s result. The image can be split into smaller pieces, processed concurrently and assembled into a finished result.

This is parallel computing: arranging work so that multiple operations can run at once. It depends on the work itself. If one step needs the result of another, dividing the task may offer little benefit.

Hotel analogy. Cleaning 12 rooms splits well: four housekeepers take three rooms each at the same time. One guest check-in does not: check ID, assign a room and issue a key must happen in order.

Why CPUs and GPUs have different strengths

A CPU is designed to handle a variety of tasks, including sequences of instructions with branching decisions. A GPU is designed to run many similar operations in parallel. In NVIDIA’s CUDA programming model, for example, CPU code can launch work on the GPU, where many threads execute the same kernel across different pieces of data. NVIDIA CUDA Programming Guide

A CPU handling varied tasks while a GPU processes many similar operations in parallel.

That makes GPUs useful for workloads such as image processing, graphics and simulations, where large amounts of data can be handled through similar calculations. CPUs remain useful for coordinating work and handling tasks that don’t divide neatly into many similar operations. The two often work together. Intel’s CPU, GPU and FPGA comparison discusses how workload structure affects performance.

To brighten a photo, the CPU loads it and launches the work, the GPU adjusts every pixel’s colour in parallel, and the CPU saves the result.

This is a difference in design priorities, not a simple ranking of “slower” and “faster.” The right processor depends on the shape of the work.

More workers mean more coordination

Parallelism also brings overhead. A system has to split the workload, distribute it, coordinate progress and combine results. Some tasks are too small to justify that effort; others depend too heavily on earlier results.

Imagine 12 equal tasks and four workers. In an idealized example, with no setup, waiting or coordination costs, the workers could complete the work in three rounds instead of 12. That gives a theoretical fourfold speedup. Real workloads rarely match that ideal exactly. Some tasks take longer, workers may wait for shared data, and results may need to be synchronized.

That is why “use more cores” is not a universal performance strategy. The workload must contain enough independent work to keep those cores useful. Intel’s comparison describes cases where workload characteristics limit parallel gains.

Twelve equal tasks completed in sequence by one worker and in three idealized rounds by four workers.

The capability and the abstraction

Parallel computing helps systems process larger workloads within practical time limits. It can make image rendering, scientific simulations and data processing more capable. For people, the benefit often appears simply as a result arriving sooner.

Everyday results of parallel computing: a photo filter that previews as you drag a slider, a map that redraws smoothly as you scroll, and a weather forecast computed by a simulation split across many processors.

The complexity has not disappeared. It has moved into hardware, software and coordination mechanisms that most users never need to manage directly.

That’s the pattern we’ve been following through the series: abstraction makes more powerful capabilities usable while leaving underlying complexity in place.

Conceptual layers from a person tapping Apply filter, through the app, graphics software, the operating system and driver, down to the GPU running thousands of threads. Each layer takes over part of splitting, scheduling and combining the work.

Next, Day 06 looks at a different challenge: once information has been processed, how does it travel from one place to another?

References and further reading

About the author. I’m a Solution Architect with a background in Software Engineering, Product Management and Data Science & AI. My experience spans hospitality, retail, telecommunications and payments. I’m passionate about demystifying technology, connecting technical capabilities with business outcomes, and designing solutions that create meaningful human experiences.