Anonymous user menu

how to draw the precedence graph for th

operating system:

how to draw the precedence graph for the code given below?

int status;

s1;

if ( fork()==0 ) {s2;s4;exit(0);}

if ( fork()==0 ) {s3;exit(0);}

wait(&status);

wait(&status);

please explain

2Comments
Dhrupit Dave @dhrupitdave
5 Jan 2015 04:55 pm
jayendra @jayendra
6 Jan 2015 12:28 pm

thanks dhrupit but this is dbms c.s. problem. my doubt is how to draw precedence graph for fork and join operation in operating system.