Open In App

Suzuki–Kasami Algorithm for Mutual Exclusion in Distributed System

Prerequisite: Mutual exclusion in distributed systems 

Suzuki–Kasami algorithm is a token-based algorithm for achieving mutual exclusion in distributed systems.This is modification of Ricart–Agrawala algorithm, a permission based (Non-token based) algorithm which uses REQUEST and REPLY messages to ensure mutual exclusion. 



In token-based algorithms, A site is allowed to enter its critical section if it possesses the unique token. Non-token based algorithms uses timestamp to order requests for the critical section where as sequence number is used in token based algorithms. 

Each requests for critical section contains a sequence number. This sequence number is used to distinguish old and current requests. 



Data structure and Notations: 
 

Algorithm: 
 

Message Complexity: 
The algorithm requires 0 message invocation if the site already holds the idle token at the time of critical section request or maximum of N message per critical section execution. This N messages involves 
 

Drawbacks of Suzuki–Kasami Algorithm: 
 

Performance: 
 

 

Article Tags :