The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
22 views

Consider the code fragment: 

count = 3;
S1;
Fork L1;         L1: S3; S2;        goto L3;
S4;
Fork L2;         L2: S6;              goto L3;
S5;                 
L3: join count
S7 

Which one of the following represents correct precedence graph of the above code fragment?
the answer is given

but I’m getting

where am I wrong?

asked ago in Operating System by Active (3.7k points) | 22 views
0

$S_3$ and $S_2$ are concurrent processes since fork() system call was called at that level but you have shown dependency between them.. you can check here @11:00 something 

Please log in or register to answer this question.

Related questions

0 votes
1 answer
3
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,541 questions
54,082 answers
187,200 comments
70,990 users