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
to incorporate this idea. (You will also need to modify
so that each account is created with a number, which can be accessed by sending an appropriate message.)
There are no comments yet.
You must log in to post a comment.Login