Peterson算法用纯软件的方法实现了互斥访问。但是只说明了两个进程间的互斥,如下所示 #define FALSE 0 #define TRUE 1 #define N 2 int turn; int interested[N]; void enter_region(int process) { int other; other = 1 - process; intersted[process] = TRUE; turn = process; while(turn == process...