Serialized-exchange with the deadlock-avoidance method
Explain in detail why the deadlock-avoidance method described above, (i.e., the accounts are numbered, and each process attempts to acquire the smaller-numbered account first) avoids deadlock in the exchange problem. Rewrite serialized-exchange to incorporate this idea. (You will also need to modify make-account so that each account is created with a number, which can be accessed by sending an appropriate message.)
Nobody's finished this exercise yet. You'll be the first!
There are no comments yet.
You must log in to post a comment.Login