How do the students _____ the world get to school?[ ]
A. on
B. around
C. about
答案:B
读者写者问题的解决方案如下所示。 Begin ① ; read_count:=read_count+1; if read_count=1 then P(write); ② ; 读文件; ③ ; read_count:=read_count-1; if read_count=0 then V(write); ④ ; End; 假设信号量mutex表示对read_count共享变量所关注的互斥区进行互斥,那以,①、②、③和④处应该填写的语句是
A.P(mute、P(mute、V(mute、V(mute
B.P(mute、V(mute、P(mute、V(mute
C.V(mute、V(mute、P(mute、P(mute
D.V(mute、P(mute、V(mute、P(mute
设a=1;b=2;,则(a++)+b和a+++b这两个表达式的值分别为( )。
A.3,3
B.3,4
C.4,3
D.4,4