Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 384 Bytes

File metadata and controls

2 lines (2 loc) · 384 Bytes

Banker-s-algorithm-Operating-System-

Write a multithreaded program that implements the banker's algorithm. Create n threads that request and release resources from the bank. The banker will grant the request only if it leaves the system in a safe state. It is important that shared data be safe from concurrent access. To ensure safe access to shared data, you can use mutex locks.