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.
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.
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
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.
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.
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.
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.
Next, Day 06 looks at a different challenge: once information has been processed, how does it travel from one place to another?
Data transmission: Moving information
References and further reading
- NVIDIA, CUDA Programming Guide, Programming Model: docs.nvidia.com/cuda
- Intel, Comparing Benefits of CPUs, GPUs, and FPGAs for oneAPI Workloads: intel.com/developer
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.