Banker s algorithmThe banker's algorithm is used to avoid deadlocks. To use it, you have to think like a bank. Basically, you have to put each state into a separate queue. You then use four arrays: available, allocation, maxim, and need. In terms of little O notation, the banker's algorithm is o(n2m), where n is the processes and m is the resources. Working of Banker's Algorithm: Four arrays are used to store the following information in them:
Categories: Mathematics |
|
This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia article. Browse Wikipedia for more information. |