Content deleted Content added
No edit summary |
Corrected See Also link for Nami-Trehel's Algorithm to point to existing Wikipedia page. |
||
(22 intermediate revisions by 16 users not shown) | |||
Line 1:
{{Short description|Algorithm for mutual exclusion on a distributed system}}
The '''Ricart-Agrawala Algorithm''' is an algorithm for [[mutual exclusion]] on a [[distributed system]]. This algorithm is an extension and optimization of [[Lamport's Distributed Mutual Exclusion Algorithm]], by removing the need for <math>release</math> messages<ref>{{cite journal|last1=Ricart|first1=Glenn|last2=Agrawala|first2=Ashok K.|title=An optimal algorithm for mutual exclusion in computer networks|journal=Communications of the ACM|date=1 January 1981|volume=24|issue=1|pages=9–17|doi=10.1145/358527.358537|url=https://dl.acm.org/citation.cfm?id=358537|ref=origpaper}}</ref>{{Unreferenced|date=December 2009}}. It was developed by [[Glenn Ricart]] and [[Ashok Agrawala]].▼
{{more citations needed|date=December 2009}}
▲The '''
==Algorithm==
Line 18 ⟶ 20:
* Otherwise, the receiving process will defer the reply message. This means that a reply will be sent only after the receiving process has finished using the critical section itself.
''' Critical Section: '''
* Requesting site enters its critical section only after receiving all reply messages.
* Upon exiting the critical section, the site sends all deferred reply messages.
===Performance===
*
* Synchronization Delays: One message propagation delay
===Common
Once site <math>P_i</math> has received a <math>reply</math> message from site <math>P_j</math>, site <math>P_i</math> may enter the critical section multiple times without receiving permission from <math>P_j</math> on subsequent attempts up to the moment when <math>P_i</math> has sent a <math>reply</math> message to <math>P_j</math>. This is called Roucairol-Carvalho optimization or Roucairol-Carvalho algorithm.
Line 34 ⟶ 36:
==See also==
* [[Lamport's bakery algorithm
* [[Lamport's
* [[Maekawa's
* [[
* [[Raymond's
* [[Naimi–Trehel algorithm|Naimi–Trehel's algorithm]]
==References==
{{
*Maekawa, M., Oldehoeft, A., Oldehoeft, R.(1987). Operating Systems: Advanced Concept.Benjamin/Cummings Publishing Company, Inc.
{{DEFAULTSORT:Ricart-Agrawala Algorithm}}
|