exec()
blocks the parent until the child has terminated.
parent cid = exec(1) put_slot(cid, 1) child while not get_slot(sid, val) put_slot(sid, 2*val)
What happens?
P1 has A and blocks allocating B
P2 has B and blocks allocating A
- This is deadlock. How can it be prevented?
This page last modified on 14 November 2004.