Suzuki–Kasami algorithm
The Suzuki–Kasami algorithm is a token-based algorithm for achieving mutual exclusion in distributed systems. The process holding the token is the only process able to enter its critical section. This is a modification to Ricart–Agrawala algorithm in which a REQUEST and REPLY message are used for attaining the critical section, but in this algorithm, a method was introduced in which a seniority vise and also by handing over the critical section to other node by sending a single PRIVILEGE message to other node. So, the node which has the privilege it can use the critical section and if it does not have one it cannot. If a process wants to enter its critical section and it does not have the... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
The Suzuki–Kasami algorithm is a token-based algorithm for achieving mutual exclusion in distributed systems. The process holding the token is the only process able to enter its critical section. This is a modification to Ricart–Agrawala algorithm in which a REQUEST and REPLY message are used for attaining the critical section, but in this algorithm, a method was introduced in which a seniority vise and also by handing over the critical section to other node by sending a single PRIVILEGE message to other node. So, the node which has the privilege it can use the critical section and if it does not have one it cannot. If a process wants to enter its critical section and it does not have the token, it broadcasts a request message to all other processes in the system. The process that has the token, if it is not currently in a critical section, will then send the token to the requesting process. The algorithm makes use of increasing Request Numbers to allow messages to arrive out-of-order. for every process k not in the token queue Q , it appends k to Q if RN_i[k] = LN[k] + 1 . This indicates that process k has an outstanding request if the token queue Q is not empty after this update, it pops a process ID j from Q and sends the token to j otherwise, it keeps the token if process j has the token and is not in CS, and if RN_j[i] == LN[i] + 1 (indicating an outstanding request), it sends the token to process i ==References==
Cite this
"Suzuki–Kasami algorithm". 1746890600. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1289758635 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy