作業系統›Ch6 行程同步(Process Synchronization)第 14 題/共 32 題
14. Message Passing、Blocking Send/Receive、Synchronization
#OS-06-014易Message PassingBlocking Send/ReceiveSynchronization
題組題幹(本題:第27題,共 4 小題)點擊展開
Consider three processes P, Q, and R using message-passing for communications. Their behaviors are illustrated below. Let BS = blocking send, NS = nonblocking send, BR = blocking receive, and NR = nonblocking receive.
Process P:
...
send(Q, msg1)
receive(R, msg2)
Process Q:
...
send(R, msg3)
receive(P, msg4)
Process R:
...
send(P, msg5)
receive(Q, msg6)
If deadlock is not possible, which condition will ensure each process to proceed only after receiving its message?
📄 交大112
▤完整推導請見《WH 資工筆記 · 作業系統》Ch6 行程同步(Process Synchronization)