Setting turn variable before enabling the flag in Peterson's algorithm

前端 未结 0 718
长发绾君心
长发绾君心 2021-02-04 08:55

In Peterson\'s algorithm for 2 processes we have an array A = {bool a, bool b} and a turn variable. In the algorithm, the booleans are set first then the turn variable is set. I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题