encyclopegia.org

Maekawa's algorithm

Maekawa's algorithm is an algorithm for mutual exclusion on a distributed system.[src] The basis of this algorithm is a quorum-like approach where any one site needs only to seek permissions from a subset of other sites.[src]

Maekawa's algorithm is an algorithm for mutual exclusion on a distributed system.[src] The basis of this algorithm is a quorum-like approach where any one site needs only to seek permissions from a subset of other sites.[src] ==Algorithm== ===Algorithm=== Requesting site: A requesting site P_i sends a message \text{request}(ts, i) to all sites in its quorum set R_i .[src] Receiving site: Upon reception of a \text{request}(ts, i) message, the receiving site P_j will: If site P_j does not have an outstanding \text{grant} message (that is, a \text{grant} message that has not been released), then site P_j sends a \text{grant}(j) message to site P_i .[src] If site P_j has an outstanding \text{grant} message with a process with higher priority than the request, then site P_j sends a \text{failed}(j) message to site P_i and site P_j queues the request from site P_i .[src] If site P_j has an outstanding \text{grant} message with a process with lower priority than the request, then site P_j sends an \text{inquire}(j) message to the process which has currently been granted access to the critical section by site P_j .[src] (That is, the site with the outstanding \text{grant} message.) Upon reception of a \text{inquire}(j) message, the site P_k will: Send a \text{yield}(k) message to site P_j if and only if site P_k has received a \text{failed} message from some other site or if P_k has sent a yield to some other site but have not received a new \text{grant} .[src] Upon reception of a \text{yield}(k) message, site P_j will: Send a \text{grant}(j) message to the request on the top of its own request queue.[src] Note that the requests at the top are the highest priority.[src] Place P_k into its request queue.[src] Upon reception of a \text{release}(i) message, site P_j will: Delete P_i from its request queue.[src] Send a \text{grant}(j) message to the request on the top of its request queue.[src] Critical section: Site P_i enters the critical section on receiving a \text{grant} message from all sites in R_i .[src] Upon exiting the critical section, P_i sends a \text{release}(i) message to all sites in R_i .[src] Quorum set ( R_x ): A quorum set must abide by the following properties: \forall i \,\forall j\, [R_i \bigcap R_j \ne \empty ] \forall i\, [ P_i \in R_i ] \forall i\, [ |R_i| = K ] Site P_i is contained in exactly K request sets Therefore: |R_i| \geq \sqrt{N-1} ===Performance=== Number of network messages; 3 \sqrt{N} to 6 \sqrt{N} Synchronization delay: 2 message propagation delays The algorithm can deadlock without protections in place.[src] ==See also== Lamport's bakery algorithm Lamport's Distributed Mutual Exclusion Algorithm Ricart–Agrawala algorithm Raymond's algorithm ==References== M.[src] Maekawa, "A √N algorithm for mutual exclusion in decentralized systems”, ACM Transactions in Computer Systems, vol.[src] 3., no.[src] 2., pp.[src] 145–159, 1985.[src] Mamoru Maekawa, Arthur E.[src] Oldehoeft, Rodney R.[src] Oldehoeft (1987).[src] Operating Systems: Advanced Concept.[src] Benjamin/Cummings Publishing Company, Inc.[src] B.[src] Sanders (1987).[src] The Information Structure of Distributed Mutual Exclusion Algorithms.[src] ACM Transactions on Computer Systems, Vol.[src] 3, No.[src] 2, pp. 145–59.[src]

33 sentences · 33 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Maekawa's algorithm." encyclopegia.org, 2025, https://encyclopegia.org/wiki/maekawa-s-algorithm. Accessed 01 December 2026.

Chicago

"Maekawa's algorithm." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/maekawa-s-algorithm.

APA

encyclopegia.org. (2025). Maekawa's algorithm. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/maekawa-s-algorithm

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

μ-law algorithm

stub · references available

bitap algorithm

stub · references available

QR algorithm

stub · references available

Prim's algorithm

stub · references available

greedy algorithm

stub · references available

Apriori algorithm

stub · references available

Baum–Welch algorithm

stub · references available

Glushkov's construction algorithm

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1306919367 · 0.5 · snapshot enwiki-001306919367

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.