作業系統›Ch6 行程同步(Process Synchronization)第 13 題/共 32 題
13. Message Passing、Deadlock、Blocking Send/Receive
#OS-06-013中Message PassingDeadlockBlocking Send/Receive
題組題幹(本題:第26題,共 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)
Which condition will cause deadlock in this example?
📄 交大112
▤完整推導請見《WH 資工筆記 · 作業系統》Ch6 行程同步(Process Synchronization)