DELAPARRA
Index
Color
NL
Category: Programming paradigms

Amdahl's Law

Explained by Updated

What is Amdahl's Law?

Amdahl's Law: A formula showing that the non-parallelisable portion of a program caps the maximum possible speedup, no matter how many cores you add. Amdahl's Law says the part of a program that must run sequentially limits how much faster it can get with more processors. If ten percent of the work cannot be parallelised, the maximum speedup is ten times, however many cores you add.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Amdahl's Law

How is Amdahl's Law used in practice?

It is a useful reality check. Adding servers or threads helps only the parallel part. The serial part, such as a single database write or a lock everyone waits for, quickly becomes the bottleneck.

What should you keep in mind with Amdahl's Law?

In web applications this means scaling out web servers helps up to a point, then the shared database or a single queue becomes the limit. Before adding hardware, find the part that cannot be split and make that faster. Often that means caching, batching writes or rethinking a step that does not really need to happen in sequence.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with A

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.