Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Atomic operation » ?

Definition 15.6 University Computer Science — Year 2 · Chapitre 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.

Lire dans le chapitre →