202k views
1 vote
Consider a banking system with ten accounts. Funds may be transferred between two of those accounts by following these steps:

lock A(i); lock A(j);
Update A(i); Update A(j);
Unlock A(i); Unlock A(j);


Required:
a. Can this system become deadlocked? If yes, show how. If no, explain why not?
b. Could the numbering request policy (presented in the chapter discussion about detection) be implemented to prevent deadlock if the number of accounts is dynamic? Explain why or why not?

User Pbsladek
by
4.8k points

1 Answer

4 votes

Answer:

qegfds

Step-by-step explanation:

User Sasi Kathimanda
by
5.3k points