feixingfei

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年9月1日

摘要: In Fig. 2-20, the integer variable turn, initially 0, keeps track of whose turn it is to enter the critical region and examine or update the shared memory. Initially, process 0 inspects turn, finds it to be 0, and enters its critical region. Process 1 also finds it to be 0 and therefore sits in a ti 阅读全文
posted @ 2009-09-01 11:56 feixingfei 阅读(208) 评论(0) 推荐(0)