单项选择题采用信号量和P、V原语解决生产者—消费者问题时,设:信号量Empty对应空缓冲区资源,Full对应满缓冲区资源,Mutex用于访问共享缓冲池时的互斥,则下列进程描述()是正确的。
A.生产者:P(Empty);P(Mutex);…;V(Mutex);V(Full)消费者:P(Mutex);P(Full);…;V(Mutex);V(Empty)
B.生产者:P(Mutex);P(Empty);…;V(Mutex);V(Full)消费者:P(Full):P(Mutex);…;V(Mutex);V(Empty)
C.生产者:P(Empty);P(Mutex);…;V(Mutex);V(Full)消费者:P(Full);P(Mutex);…;V(Mutex);V(Empty)
D.A、B、C均不正确