All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Atomic operation?

Definition 15.6 University Computer Science — Year 2 · Chapter 15 — Threads and Synchronisation

An operation is atomic when no other thread can observe it half done: it takes effect as one indivisible step of every interleaving. atomic_fetch_add(&x, 1) reads, adds and writes as one step.

Read in context →