GATEverse
← GATE CSE 1996

Q21

NATMarks unknown

The concurrent programming constructs fork and join are as below: Fork <label> which creates a new process executing from the specified label Join <variable> which decrements the specified synchronization variable (by 11) and terminates the process if the new value is not 00. Show the precedence graph for S1S1, S2S2, S3S3, S4S4, and S5S5 of the concurrent program below. N=2 M=2 Fork L3 Fork L4 S1 L1 : join N S3 L2 : join M S5 L3:S2 Goto L1 L4:S4 Goto L2 Next:

Sign in to save attempts.

Loading…