SlideShare a Scribd company logo
Presented By โ€“
Mushfekur Rahman
Implementation of
Election Algorithm of
Distributed Systems in
Client-Server Architecture
2
Distributed Systems
โ€ข Distributed systems are networked
computers or processes operating with same
resources generally mentioned as CRITICAL
SECTION.
โ€ข Critical Section can be any shared memory or
any shared data structure which can be
needed to update by each process.
3
Distributed Algorithms
โ€ข Distributed Algorithms are used to solve
some standard problems in Distributed
Systems such as mutual exclusion,
resource allocation, distributed search
and so on.
โ€ข Our project deals with only Mutual
Exclusion Problem.
4
Algorithms
โ€ข Here we will be describing about two common
algorithms to achieve mutual exclusion in
Distributed Systems.
1. Centralized Algorithm
2. Token Ring Algorithm
5
Centralized Algorithm โ€ฆ
โ€ข One process elected as coordinator
โ€ข Others send request to access into the
Critical Section
1. Request resource
2. Wait for response
3. Receive grant
4. access resource
5. Release resource
6
Centralized Algorithm โ€ฆ
โ€ข If another process claimed resource:
- Coordinator does not reply until release
- Maintain queue
โ€ขService requests in FIFO order
7
Benefits
โ€ข All requests processed in order since there
is no priority so FIFO order is maintained
โ€ข Easy to implement, understand and verify
8
Token Ring Algorithm
โ€ข Assume known group of processes
- Some ordering can be imposed on group
- Construct logical ring in software
- Process communicates with neighbor
9
Token Ring Algorithm โ€ฆ
โ€ข Initialization
-Process 0 gets token for resource R
โ€ข Token circulates around ring
- From Pi to P(i+1)mod N
โ€ข When process acquires token
- Checks to see if it needs to enter
critical section
- If no, send ring to neighbor
- If yes, access resource
โ€ขHold token until done
โ€ข Only one process at a time has token
โ€“ Mutual exclusion guaranteed
โ€ข Order well-defined
โ€“ Starvation cannot occur
โ€ข If token is lost (e.g. process died)
โ€“ It will have to be regenerated
โ€ข Does not guarantee FIFO order
โ€“ sometimes this is undesirable
10
Token Ring Algorithm โ€ฆ
THANK YOU !!!
11

More Related Content

What's hot (20)

PDF
Operating Systems 1 (8/12) - Concurrency
Peter Trรถger
ย 
PDF
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
ย 
PPT
Dist deadlock sureka
Arun Kannan
ย 
DOCX
Critical section operating system
Muhammad Baqar Kazmi
ย 
PPTX
Concurrency: Mutual Exclusion and Synchronization
Anas Ebrahim
ย 
PPTX
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
ย 
PDF
Deadlock in Distributed Systems
Pritom Saha Akash
ย 
PPTX
Operating systems question bank
anuradha raheja
ย 
PPTX
A survey of distributed deadlock detection algorithms
anaykh1992
ย 
PPTX
Process synchronization in operating system
Ruaha Catholic university
ย 
PPTX
Critical Section in Operating System
MOHIT AGARWAL
ย 
PPTX
Process synchronization
Ali Ahmad
ย 
PPT
Mutual exclusion and sync
Dr. C.V. Suresh Babu
ย 
PPTX
SYNCHRONIZATION
atanuanwesha
ย 
PPT
Process Synchronization
Sonali Chauhan
ย 
PPT
Process synchronization(deepa)
Nagarajan
ย 
PPTX
Semaphore
Arafat Hossan
ย 
PPT
Operating Systems - "Chapter 5 Process Synchronization"
Ra'Fat Al-Msie'deen
ย 
PDF
Process Synchronization
Shipra Swati
ย 
PPT
Semaphores and Monitors
sathish sak
ย 
Operating Systems 1 (8/12) - Concurrency
Peter Trรถger
ย 
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
ย 
Dist deadlock sureka
Arun Kannan
ย 
Critical section operating system
Muhammad Baqar Kazmi
ย 
Concurrency: Mutual Exclusion and Synchronization
Anas Ebrahim
ย 
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
ย 
Deadlock in Distributed Systems
Pritom Saha Akash
ย 
Operating systems question bank
anuradha raheja
ย 
A survey of distributed deadlock detection algorithms
anaykh1992
ย 
Process synchronization in operating system
Ruaha Catholic university
ย 
Critical Section in Operating System
MOHIT AGARWAL
ย 
Process synchronization
Ali Ahmad
ย 
Mutual exclusion and sync
Dr. C.V. Suresh Babu
ย 
SYNCHRONIZATION
atanuanwesha
ย 
Process Synchronization
Sonali Chauhan
ย 
Process synchronization(deepa)
Nagarajan
ย 
Semaphore
Arafat Hossan
ย 
Operating Systems - "Chapter 5 Process Synchronization"
Ra'Fat Al-Msie'deen
ย 
Process Synchronization
Shipra Swati
ย 
Semaphores and Monitors
sathish sak
ย 

Similar to Implementation of Election Algorithm of Distributed Systems in Client-Server Architecture (20)

PDF
DC Lecture 04 and 05 Mutual Excution and Election Algorithms.pdf
LegesseSamuel
ย 
PPTX
distributed system ppt presentation in cs
Anonymous9etQKwW
ย 
PDF
Chapter 11d coordination agreement
AbDul ThaYyal
ย 
PPT
dos mutual exclusion algos
Akhil Sharma
ย 
PPT
Mutual-Exclusion Algorithm.ppt
ShikhaManrai1
ย 
PPTX
Mutual Exclusion in Distributed Memory Systems
Dilum Bandara
ย 
PPT
Coordination and Agreement .ppt
SOURAVKUMAR723356
ย 
PPT
Distributed system TimeNState-Tanenbaum.ppt
TantraNathjha1
ย 
PDF
7. Mutual Exclusion
Prajakta Rane
ย 
PPT
Distributed System by Pratik Tambekar
Pratik Tambekar
ย 
PPTX
Synchronization
Sara shall
ย 
DOC
Distributed Mutual exclusion algorithms
MNM Jain Engineering College
ย 
PPTX
Synchronization in Distributed Systems.pptx
RichardMathengeSPASP
ย 
PPTX
Chapter 6 synchronization
Alagappa Government Arts College, Karaikudi
ย 
PDF
Analysis of mutual exclusion algorithms with the significance and need of ele...
Govt. P.G. College Dharamshala
ย 
PDF
Process Synchronization
Christalin Nelson
ย 
PPTX
Distributed Mutual Exclusion and Distributed Deadlock Detection
SHIKHA GAUTAM
ย 
PPTX
OPERATING SYSTEMS PRESENTATION.pptx
PokormanZuda
ย 
PDF
A New Function-based Framework for Classification and Evaluation of Mutual Ex...
CSCJournals
ย 
PDF
Unit 3 Part 1.pdf distribution computing
monishiisha04
ย 
DC Lecture 04 and 05 Mutual Excution and Election Algorithms.pdf
LegesseSamuel
ย 
distributed system ppt presentation in cs
Anonymous9etQKwW
ย 
Chapter 11d coordination agreement
AbDul ThaYyal
ย 
dos mutual exclusion algos
Akhil Sharma
ย 
Mutual-Exclusion Algorithm.ppt
ShikhaManrai1
ย 
Mutual Exclusion in Distributed Memory Systems
Dilum Bandara
ย 
Coordination and Agreement .ppt
SOURAVKUMAR723356
ย 
Distributed system TimeNState-Tanenbaum.ppt
TantraNathjha1
ย 
7. Mutual Exclusion
Prajakta Rane
ย 
Distributed System by Pratik Tambekar
Pratik Tambekar
ย 
Synchronization
Sara shall
ย 
Distributed Mutual exclusion algorithms
MNM Jain Engineering College
ย 
Synchronization in Distributed Systems.pptx
RichardMathengeSPASP
ย 
Chapter 6 synchronization
Alagappa Government Arts College, Karaikudi
ย 
Analysis of mutual exclusion algorithms with the significance and need of ele...
Govt. P.G. College Dharamshala
ย 
Process Synchronization
Christalin Nelson
ย 
Distributed Mutual Exclusion and Distributed Deadlock Detection
SHIKHA GAUTAM
ย 
OPERATING SYSTEMS PRESENTATION.pptx
PokormanZuda
ย 
A New Function-based Framework for Classification and Evaluation of Mutual Ex...
CSCJournals
ย 
Unit 3 Part 1.pdf distribution computing
monishiisha04
ย 
Ad

More from Mushfekur Rahman (7)

PPTX
An Automatic Method for Red-eye Detection and Correction in Digital Images
Mushfekur Rahman
ย 
PPTX
Diagnosing HotSpot JVM Memory Leaks with JFR and JMC
Mushfekur Rahman
ย 
PPTX
Webservices: The RESTful Approach
Mushfekur Rahman
ย 
PPTX
Building a Unified Logging Layer with Fluentd, Elasticsearch and Kibana
Mushfekur Rahman
ย 
PPTX
Http Basics
Mushfekur Rahman
ย 
PPTX
Hands on Gradle
Mushfekur Rahman
ย 
PPTX
Distributed Transaction Management in Spring & JEE
Mushfekur Rahman
ย 
An Automatic Method for Red-eye Detection and Correction in Digital Images
Mushfekur Rahman
ย 
Diagnosing HotSpot JVM Memory Leaks with JFR and JMC
Mushfekur Rahman
ย 
Webservices: The RESTful Approach
Mushfekur Rahman
ย 
Building a Unified Logging Layer with Fluentd, Elasticsearch and Kibana
Mushfekur Rahman
ย 
Http Basics
Mushfekur Rahman
ย 
Hands on Gradle
Mushfekur Rahman
ย 
Distributed Transaction Management in Spring & JEE
Mushfekur Rahman
ย 
Ad

Recently uploaded (20)

PPTX
arctitecture application system design os dsa
za241967
ย 
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
ย 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
ย 
PDF
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
ย 
PPTX
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
ย 
PDF
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
ย 
PDF
OpenChain Webinar - AboutCode - Practical Compliance in One Stack โ€“ Licensing...
Shane Coughlan
ย 
PPTX
Introduction to web development | MERN Stack
JosephLiyon
ย 
PDF
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
ย 
PDF
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
ย 
PDF
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
ย 
PDF
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
ย 
PDF
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
ย 
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
ย 
DOCX
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
ย 
PDF
Rewards and Recognition (2).pdf
ethan Talor
ย 
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
ย 
PPTX
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
ย 
PPTX
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
ย 
arctitecture application system design os dsa
za241967
ย 
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
ย 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
ย 
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
ย 
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
ย 
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
ย 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack โ€“ Licensing...
Shane Coughlan
ย 
Introduction to web development | MERN Stack
JosephLiyon
ย 
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
ย 
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
ย 
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
ย 
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
ย 
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
ย 
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
ย 
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
ย 
Rewards and Recognition (2).pdf
ethan Talor
ย 
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
ย 
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
ย 
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
ย 

Implementation of Election Algorithm of Distributed Systems in Client-Server Architecture

  • 1. Presented By โ€“ Mushfekur Rahman Implementation of Election Algorithm of Distributed Systems in Client-Server Architecture
  • 2. 2 Distributed Systems โ€ข Distributed systems are networked computers or processes operating with same resources generally mentioned as CRITICAL SECTION. โ€ข Critical Section can be any shared memory or any shared data structure which can be needed to update by each process.
  • 3. 3 Distributed Algorithms โ€ข Distributed Algorithms are used to solve some standard problems in Distributed Systems such as mutual exclusion, resource allocation, distributed search and so on. โ€ข Our project deals with only Mutual Exclusion Problem.
  • 4. 4 Algorithms โ€ข Here we will be describing about two common algorithms to achieve mutual exclusion in Distributed Systems. 1. Centralized Algorithm 2. Token Ring Algorithm
  • 5. 5 Centralized Algorithm โ€ฆ โ€ข One process elected as coordinator โ€ข Others send request to access into the Critical Section 1. Request resource 2. Wait for response 3. Receive grant 4. access resource 5. Release resource
  • 6. 6 Centralized Algorithm โ€ฆ โ€ข If another process claimed resource: - Coordinator does not reply until release - Maintain queue โ€ขService requests in FIFO order
  • 7. 7 Benefits โ€ข All requests processed in order since there is no priority so FIFO order is maintained โ€ข Easy to implement, understand and verify
  • 8. 8 Token Ring Algorithm โ€ข Assume known group of processes - Some ordering can be imposed on group - Construct logical ring in software - Process communicates with neighbor
  • 9. 9 Token Ring Algorithm โ€ฆ โ€ข Initialization -Process 0 gets token for resource R โ€ข Token circulates around ring - From Pi to P(i+1)mod N โ€ข When process acquires token - Checks to see if it needs to enter critical section - If no, send ring to neighbor - If yes, access resource โ€ขHold token until done
  • 10. โ€ข Only one process at a time has token โ€“ Mutual exclusion guaranteed โ€ข Order well-defined โ€“ Starvation cannot occur โ€ข If token is lost (e.g. process died) โ€“ It will have to be regenerated โ€ข Does not guarantee FIFO order โ€“ sometimes this is undesirable 10 Token Ring Algorithm โ€ฆ