当前位置: 首页 > news >正文

互斥算法

dekker算法

p0:flag[0]=1while(flag[1]==1){if(turn==1){flag[0]=0while(turn==1);flag[0]=1} }