计算机等级考试—三级—《数据库技术》題庫下載題庫

上一題
19)读者写者问题的解决方案如下所示。 Begin ----①----; read_count:=read_count+1; if read_count=1 then Pwrite); ----②----; 读文件; ----③----; read_count:=read_count -1; if read_count=0 then Vwrite); ----④----; End. 假设信号量 mutex 表示对 read_count 共享变量所关注的互斥区进行互斥,那么,①、②、③和④处 应该填写的语句是。
(A)Pmutex)、Pmutex)、Vmutex)、Vmutex)
(B)Pmutex)、Vmutex)、Pmutex)、Vmutex)
(C)Vmutex)、Vmutex)、Pmutex)、Pmutex)
(D)Vmutex)、Pmutex)、Vmutex)、Pmutex)


19)读者写者问题的解决方案如下所示。 Begin ----①----; ..-阿摩線上測驗