TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Deadlock detection
|
|
Deadlock avoidance
|
|
Deadllock recovery
|
|
Deadlock prevention
|
Detailed explanation-1: -Bankers algorithm consists of two main algorithms used to avoid deadlock and control the processes within the system: Safety algorithm and Resource request algorithm. Safety algorithm in OS is used to mainly check whether the system is in a safe state or not.
Detailed explanation-2: -Overview. The Banker’s algorithm is a resource allocation and deadlock avoidance algorithm developed by Edsger Dijkstra. This prevents a single thread from entering the same lock more than once.
Detailed explanation-3: -The banker’s algorithm is a resource allocation and deadlock avoidance algorithm that simulates resource allocation for predetermined maximum possible amounts of all resources before performing an “s-state” check to look for potential activities and determining whether allocation should be permitted to continue.