SlideShare a Scribd company logo
7
Most read
10
Most read
13
Most read
LAMPORT’S  ALGORITHM BY Neelamani Samal
What is Lamport’s Algorithm It is a computer algorithm Intended to improve the safety in the usage of shared resources   Using  mutual exclusion.
Related Terms Mutual exclusion Types of mutual exclusion algorithm Critical Section(C.S.) Logical Clock Causal Ordering Of Messages
Algorithm Every site  Si keeps a  request_queuei,  contains mutual exclusion requests ordered by their timestamps  messages to be delivered in the FIFO order between every pair of sites
System Models Requesting The C.S. Executing The C.S. Releasing The  C.S. `
Example We have S1,S2,S3 as sites S1,S2 request for CS S2 Being first
(2,1) S1 S2 S3 (1,2) S1,S2 making requesr for entering CS
(1,2),(2,1) S1 S2 S3 (1,2) (2,1) Site S2  enters CS (1,2) (1,2),(2,1) (1,2),(2,1) S2 enters CS
S1 S2 S3 (1,2) (2,1) Site S2 exitsCS and release message (1,2) (1,2),(2,1) (1,2),(2,1) (1,2),(2,1) S2 exits CS
(2,1) S1 S2 S3 (1,2) (2,1) Site S1 entersCS (1,2) (1,2),(2,1) (1,2),(2,1) (1,2),(2,1) S1enters CS (2,1)
Performance Analysis Total No. of REQUEST  (N-1) Total No. Of REPLY  (N-1) Total No. Of RELEASE  (N-1) Total  =  3(N-1)
Conclusion Though it does not explain the Modern scenario of distributed systems but , it gave the basic of developing the  present way of handling distributed resources.
 

More Related Content

PPTX
Distributed system lamport's and vector algorithm
DOC
Distributed Mutual exclusion algorithms
PPT
clock synchronization in Distributed System
PPT
Logical Clocks (Distributed computing)
PPTX
Distributed Systems
PPT
Deadlock Detection in Distributed Systems
PPTX
Distributed Mutual Exclusion and Distributed Deadlock Detection
PDF
8. mutual exclusion in Distributed Operating Systems
Distributed system lamport's and vector algorithm
Distributed Mutual exclusion algorithms
clock synchronization in Distributed System
Logical Clocks (Distributed computing)
Distributed Systems
Deadlock Detection in Distributed Systems
Distributed Mutual Exclusion and Distributed Deadlock Detection
8. mutual exclusion in Distributed Operating Systems

What's hot (20)

PPTX
Csma protocols
PDF
Resource management
PPTX
Distributed concurrency control
PPTX
Dead Lock in operating system
PPTX
Message and Stream Oriented Communication
PPT
Paging.ppt
PPTX
Multiple access protocol
PPT
Ecg analysis in the cloud
PPTX
Message passing in Distributed Computing Systems
PPTX
Distributed dbms architectures
PPTX
Access to non local names
PPTX
Security services and mechanisms
PPTX
Concurrency Control in Distributed Database.
PPT
Chapter 6 intermediate code generation
PPTX
Vector clock algorithm
PPTX
substitution and transposition techniques_ppt.pptx
PPTX
Assignment problem branch and bound.pptx
PPTX
Issues in knowledge representation
PPT
Sliding window protocol
PPTX
CMACs and MACS based on block ciphers, Digital signature
Csma protocols
Resource management
Distributed concurrency control
Dead Lock in operating system
Message and Stream Oriented Communication
Paging.ppt
Multiple access protocol
Ecg analysis in the cloud
Message passing in Distributed Computing Systems
Distributed dbms architectures
Access to non local names
Security services and mechanisms
Concurrency Control in Distributed Database.
Chapter 6 intermediate code generation
Vector clock algorithm
substitution and transposition techniques_ppt.pptx
Assignment problem branch and bound.pptx
Issues in knowledge representation
Sliding window protocol
CMACs and MACS based on block ciphers, Digital signature
Ad

Similar to Lamport’s algorithm for mutual exclusion (15)

PPTX
DC_PRESENTATION.pptx_20240408_121141_0000.pptx
PPTX
DC_PRESENTATION.pptx_20240408_145938_0000.pptx
PDF
Chapter 15 slides Distributed System Presentation
PPTX
os distributed system theoretical foundation
PDF
Chapter9.pdf
PDF
Unit 3 Part 1.pdf distribution computing
PPTX
Module 3 (1).pptx
PDF
Unit_5_Distributed Mutual Exclusion.pdf
PPTX
Mutual Exclusion using Peterson's Algorithm
PPT
Mutual-Exclusion Algorithm.ppt
PPT
Distributed System
PPTX
mutual exclusion algos 16619.4 pptx cloud computing
PPTX
PPTX
distributed system ppt presentation in cs
PPTX
An optimal algorithm for mutual exclusion in computer networks
DC_PRESENTATION.pptx_20240408_121141_0000.pptx
DC_PRESENTATION.pptx_20240408_145938_0000.pptx
Chapter 15 slides Distributed System Presentation
os distributed system theoretical foundation
Chapter9.pdf
Unit 3 Part 1.pdf distribution computing
Module 3 (1).pptx
Unit_5_Distributed Mutual Exclusion.pdf
Mutual Exclusion using Peterson's Algorithm
Mutual-Exclusion Algorithm.ppt
Distributed System
mutual exclusion algos 16619.4 pptx cloud computing
distributed system ppt presentation in cs
An optimal algorithm for mutual exclusion in computer networks
Ad

More from Neelamani Samal (16)

PDF
Fault Tolerance token Based Algorithm
DOCX
Os scheduling Algorithms
PDF
RTS Question Paper 2012
PDF
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
PDF
Os lab manual
PDF
computer architecture lab manual
PDF
Software Engineering Sample Question paper for 2012
PDF
Software Engineering Lab Manual
PDF
Software engineering note
PPS
Values oflife
PPS
Attitute
PPT
Cd writning technology
PPT
Turing machine
PPT
How to install windows Xp sp2
PPT
Game Playing In A I Final
PPT
Computer Brain Power
Fault Tolerance token Based Algorithm
Os scheduling Algorithms
RTS Question Paper 2012
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
Os lab manual
computer architecture lab manual
Software Engineering Sample Question paper for 2012
Software Engineering Lab Manual
Software engineering note
Values oflife
Attitute
Cd writning technology
Turing machine
How to install windows Xp sp2
Game Playing In A I Final
Computer Brain Power

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
August Patch Tuesday
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25-Week II
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectral efficient network and resource selection model in 5G networks
Accuracy of neural networks in brain wave diagnosis of schizophrenia
MIND Revenue Release Quarter 2 2025 Press Release
1. Introduction to Computer Programming.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Unlocking AI with Model Context Protocol (MCP)
August Patch Tuesday
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative study of natural language inference in Swahili using monolingua...
Machine learning based COVID-19 study performance prediction
Tartificialntelligence_presentation.pptx
Spectroscopy.pptx food analysis technology

Lamport’s algorithm for mutual exclusion

  • 1. LAMPORT’S ALGORITHM BY Neelamani Samal
  • 2. What is Lamport’s Algorithm It is a computer algorithm Intended to improve the safety in the usage of shared resources   Using mutual exclusion.
  • 3. Related Terms Mutual exclusion Types of mutual exclusion algorithm Critical Section(C.S.) Logical Clock Causal Ordering Of Messages
  • 4. Algorithm Every site Si keeps a request_queuei, contains mutual exclusion requests ordered by their timestamps messages to be delivered in the FIFO order between every pair of sites
  • 5. System Models Requesting The C.S. Executing The C.S. Releasing The C.S. `
  • 6. Example We have S1,S2,S3 as sites S1,S2 request for CS S2 Being first
  • 7. (2,1) S1 S2 S3 (1,2) S1,S2 making requesr for entering CS
  • 8. (1,2),(2,1) S1 S2 S3 (1,2) (2,1) Site S2 enters CS (1,2) (1,2),(2,1) (1,2),(2,1) S2 enters CS
  • 9. S1 S2 S3 (1,2) (2,1) Site S2 exitsCS and release message (1,2) (1,2),(2,1) (1,2),(2,1) (1,2),(2,1) S2 exits CS
  • 10. (2,1) S1 S2 S3 (1,2) (2,1) Site S1 entersCS (1,2) (1,2),(2,1) (1,2),(2,1) (1,2),(2,1) S1enters CS (2,1)
  • 11. Performance Analysis Total No. of REQUEST (N-1) Total No. Of REPLY (N-1) Total No. Of RELEASE (N-1) Total = 3(N-1)
  • 12. Conclusion Though it does not explain the Modern scenario of distributed systems but , it gave the basic of developing the present way of handling distributed resources.
  • 13.