Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Race condition, critical section, mutual exclusion, lock » ?

Aussi appelé : race condition · critical section · mutual exclusion · lock

Definition 31.6 High School Computer Science · Chapitre 31 — Processes and Scheduling

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.

Lire dans le chapitre →