COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The banker algorithms used for
A
Deadlock detection
B
Deadlock avoidance
C
Deadllock recovery
D
Deadlock prevention
Explanation: 

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.

There is 1 question to complete.