❶ 操作系統信號量和PV操作問題,求大神,不要復制
bridge=1,mutex1=1,mutex2=1,s1=1,s2=1Process 東(){P(mutex2)P(bridge){過橋}s2=0if(s1==0){ V(mutex1) s1=1 }V(bridge)}Process 西(){P(mutex1)P(bridge){過橋}s1=0if(s2==0){ V(mutex2) s2=1 }V(bridge)}