Lamport's Bakery Algorithm
Definition - What does Lamport's Bakery Algorithm mean?
Lamport’s bakery algorithm is a computing algorithm that ensures efficient use of shared resources in a multithreaded environment. This algorithm was conceived by Leslie Lamport and was inspired by the first-come-first-served, or first-in-first-out (FIFO), operational methodology of a bakery. Lamport’s bakery algorithm is a mutual exclusion algorithm that restricts two or more processes from accessing a resource simultaneously.
Techopedia explains Lamport's Bakery Algorithm
The operational principles behind Lamport’s bakery algorithm are very simple. All process threads must take a number and wait their turn to use a shared computing resource or to enter their critical section. The number can be any of the global variables, and processes with the lowest number will be processed first. If there is a tie or similar number shared by both processes, it is managed through their process ID. If a process terminates before its turn, it has to start over again in the process queue.
Join thousands of others with our weekly newsletter
The 4th Era of IT Infrastructure: Superconverged Systems:
Approaches and Benefits of Network Virtualization:
Free E-Book: Public Cloud Guide:
Free Tool: Virtual Health Monitor:
Free 30 Day Trial – Turbonomic: