a. Consider the following snapshot of a system:
Answer the following questions using the banker's algorithm:
i. What is the content of the matrix Need
ii. Is the system in a safe state?
iii. If a request from thread T1 arrives for (0,4,2,0), can the request be granted immediately?
b. Explain how deadlock can be prevented.