Here is a classical deadlock that wouldn't exist in Java (I think). How can I get around it?
Code:struct Vertex { char label; // label color clr; // color List* adj; // adjacency list struct Vertex* pred; // predecessor bool critical; // flag if critical vertex int dTime; // discovery time int dist; int ind; }; typedef struct Vertex Vertex; struct List{ Vertex* v; struct List* next; }; typedef struct List List; List* q;



LinkBack URL
About LinkBacks




