A race condition is a bug whose effect depends on the order in which processes happen to run. A critical section is a part of a program that uses shared data and must not run in two processes at once. Mutual exclusion is the guarantee that at most one process is in a critical section at any time. A lock provides it: a process acquires the lock before the critical section and releases it after; a process that tries to acquire a lock already held waits until it is released.
Computer Science · Glossário
O que é Race condition, critical section, mutual exclusion, lock?
Também chamado de: race condition · critical section · mutual exclusion · lock