*/public int arriveAndAwaitAdvance()//等待給定phase數,返回下一個 arrival phase numberpublic int awaitAdvance(int phase)//阻塞等待,直到ph...