Chapter 28 Flashcards

1
Q

What is RAG algorithm

A

It is resource allocation graph algorithm. It has request and assignment edges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is claim edge in RAG algorithm

A

Claim edge converts to request edge when a process request a resource. And when a resource is released by a process, assignment edge reconverts to a claim edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is assignment edge in RAG algorithm

A

When a resource is assigned to a process, request edge reconverts to an assignment edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is RAG algorithm deadlock avoidance with single instance resource type

A

Request is hold by algorithm in resource allocation graph. if there is chance of becoming cycle and system went into unsafe state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is deadlock avoidance algorithm with multiple instance resource type

A

It is bankers algorithm. It may request all the instance of resource type during its execution. When a process request a resource it may have to wait so that it might not go into unsafe state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Does allocation and need n x m matrix

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the role of safety algorithm

A

It checks weather system goes into unsafe state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How banker algorithm works

A

When a request is made by process to bankers algorithm checks 2 things. One is request is less than need vector and second is the request vector is less than or equal to what is available in system at this time. If both conditions are true then request is granted. Then it calls safety algorithm. Safety algorithm checks the safe sequence in the system. If yes then bankers algorithm is informed. And banker algorithm acts accordingly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly