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?