Each thread declares a maximum claim; it holds and may still ask for , the claim minus what it holds; is what nobody holds. A state is a safe state if there is an order of the threads in which each can be given its whole from what is available plus what the threads before it have returned, then finish and return everything. The banker’s algorithm grants a request only if the state after granting it is safe, and otherwise makes the thread wait. Deadlock detection lets threads request freely, and from time to time searches for a set of threads deadlocked in the current state, to break the deadlock by killing or rolling back one of them.
Computer Science · Glossário
O que é Safe state, banker’s algorithm, deadlock detection?
Também chamado de: safe state · banker's algorithm · deadlock detection