Difference between token based and non token based algorithms
Answers
Answered by
16
For us to answer this question, we need to get individual characteristics of the token based and non token based algorithms.
TOKEN BASED ALGORITHMS
1.) It uses sequence numbers rather than timestamps to different between old and current requests made by the same process.
2.) A privilege message known as token is shared among all processes in the system.
3.) Produce less message traffic compared to non token based.
4.) They are deadlock free since there is existence of a unique token.
NON TOKEN BASED ALGORITHMS
1.) Two or successive round of messages are exchanged among the sites to determine which site will enter the CS next.
THE DIFFERENCE
In TOKEN based algorithms a privilege message known as a token is shared among all the processes in the system whereas is NON TOKEN based two or more successive rounds of messages are exchanged among the sites to determine which site will enter the CS first.
TOKEN BASED ALGORITHMS
1.) It uses sequence numbers rather than timestamps to different between old and current requests made by the same process.
2.) A privilege message known as token is shared among all processes in the system.
3.) Produce less message traffic compared to non token based.
4.) They are deadlock free since there is existence of a unique token.
NON TOKEN BASED ALGORITHMS
1.) Two or successive round of messages are exchanged among the sites to determine which site will enter the CS next.
THE DIFFERENCE
In TOKEN based algorithms a privilege message known as a token is shared among all the processes in the system whereas is NON TOKEN based two or more successive rounds of messages are exchanged among the sites to determine which site will enter the CS first.
Answered by
1
Difference between token based and non token based algorithms:
Token-based algorithms:
In token-based algorithms, a website admits entering its critical section if it has a unique token. It uses sequence numbers algorithms to order requests. It is used to differentiate requests from the same site and kept independently for each site. Each request for the 'critical section' has a 'sequence number'. This 'sequence number' is used to differentiate old and current requests.
Non token-based algorithms:
'Non-token based algorithms' uses 'timestamp' to order requests for 'the critical section'.
To know more
Difference between token and non token based algorithm in distributed system
https://brainly.in/question/5974127
Which are non token based algorithms in distributed system?
https://brainly.in/question/2110162
Similar questions