The Ricart–Agrawala algorithm is an algorithm for mutual exclusion on a distributed system.
A mutual exclusion algorithm, like the Ricart–Agrawala algorithm, is used to manage access to shared resources in a distributed system.