Nepedia
Back to Discover
Fluent Reader
💻

Parallel computing

technology Maturity 7-9 Next article →

Parallel computing is a way for computers to solve big problems by doing many calculations at once.

IBM Blue Gene P supercomputer
IBM Blue Gene P supercomputer

Most older software was written for serial computation. This means the computer follows a single stream of instructions one by one. In serial computing, one instruction must finish before the next one starts. Parallel computing changes this by breaking a huge problem into smaller, independent parts. Each part can then be solved at the same time by different processing elements. This method allows computers to handle much more difficult tasks much faster.

This way of working happens in several different ways. There is bit-level parallelism and instruction-level parallelism. There is also data parallelism and task parallelism.

Parallelism vs concurrency
Parallelism vs concurrency

Some machines use multi-core processors, which have many independent computing units on one chip. Other setups use clusters or grids made of many different computers working together.

Beowulf
Beowulf

In some cases, the parallelism is hidden from the person writing the code. However, writing programs that use concurrency can be a hard job. Programmers must worry about things like race conditions, which are common software bugs.

For a long time, the main way to make computers faster was frequency scaling. This meant making the clock frequency higher so each instruction finished faster. From the mid-1980s until 2004, this was the most common method.

Nopipeline
Nopipeline

However, increasing frequency uses a lot of power and creates a lot of heat. This problem is often called the power wall. In May 2004, Intel cancelled its Tejas and Jayhawk processors because of these power issues. This event marked the end of frequency scaling as the main way to improve computers.

Because of these heat problems, the industry changed its focus. Instead of making one core faster, makers began adding more cores to a single chip.

AmdahlsLaw
AmdahlsLaw

This is why multi-core processors are now the standard for most devices. In 2012, quad-core processors became standard for desktop computers. Servers often have processors with 10 or more cores. Moore's law predicted that the number of cores would double every 18 to 24 months. By 2023, some processors were even able to have over one hundred cores.

Even with many cores, there is a limit to how much faster a program can go. This limit is explained by Amdahl's law.

Optimizing-different-parts
Optimizing-different-parts

The law says the speed-up is limited by the part of the task that cannot be done in parallel. If a large part of the work must stay in a single line, adding more processors won't help much. This is known as diminishing returns. To get the best results, programmers must balance the parts that can work together with the parts that must work alone. This helps them make the most of the increasing power in modern computers.

460 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (15)
File:IBM Blue Gene P supercomputer.jpg
IBM Blue Gene P supercomputer.jpg
File:Parallelism_vs_concurrency.png
Parallelism_vs_concurrency.png
File:AmdahlsLaw.svg
AmdahlsLaw.svg
File:Optimizing-different-parts.svg
Optimizing-different-parts.svg
File:Gustafson.png
Gustafson.png
File:Taiwania 3 Supercomputer.jpg
Taiwania 3 Supercomputer.jpg
File:Nopipeline.png
Nopipeline.png
File:Fivestagespipeline.png
Fivestagespipeline.png
File:Superscalarpipeline.svg
Superscalarpipeline.svg
File:Numa.svg
Numa.svg
File:Beowulf.jpg
Beowulf.jpg
File:BlueGeneL cabinet.jpg
BlueGeneL cabinet.jpg

+ 3 more

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.