Open In App

RAG Full Form

RAG is the abbreviation for Resource Allocation Graph in operating systems. RAG is a directed graph which can be used to represent the state of a system in the form of picture. Deadlocks can be described more precisely in terms of a directed graph(RAG).

The graph(V, E) consists a set of vertices which can be partitioned into two different types of nodes:-



  1. Process vertices –
    They represents the processes and are drawn as a circle, e.g.,
    {P1, P2, P3.....Pn}  
  2. Resource vertices –
    These vertices represents the resources and are drawn as a square with dots in it, which represent the instance of resources, e.g.,

    {R1, R2, R3.....Rn} 

Resource Allocation Graphs are drawn in order to see the allocation relations between the processes and Resources. Here, Processes are represented inside a circle whereas Resources are represented inside a square with dots inside it indicating the number of instances of resources.

RAG have two types of Edges, one which represents the assignment and other represents the wait of a process for a resource.

If RAG contains a cycle, then the system is in deadlock otherwise not.

Characteristics of RAG:

Advantages of RAG:

Disadvantages of RAG:

Article Tags :