6 votes 6 votes Consider the following precedence graph $(\text{Fig}.6)$ of processes where a node denotes a process and a directed edge from node $P_{i}$ to node $P_{j}$ implies; that $P_{i}$ must complete before $P_{j}$ commences. Implement the graph using FORK and JOIN constructs. The actual computation done by a process may be indicated by a comment line. Operating System gate1989 descriptive operating-system precedence-graph process-synchronization + – makhdoom ghaya asked Dec 9, 2016 edited Apr 16, 2021 by Lakshman Bhaiya makhdoom ghaya 2.4k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
4 votes 4 votes $P_{1}$ fork $L_{1}$ $L_{1}$: Join $C_{1}$ fork $L_{2}$ $P_{4}$ $P_{2}$ goto $L_{4}$ fork $L_{1}$ $L_{3}$: Join $C_{2}$ $L_{2}$: $P_{3}$ $P_{5}$ goto $L_{3}$ $L_{4}$: Join $C_{3}$ $P_{6}$ pankaj borah answered Apr 6, 2017 edited Jan 14, 2022 by pankaj borah pankaj borah comment Share Follow See all 13 Comments See all 13 13 Comments reply ankitgupta.1729 commented May 10, 2018 reply Follow Share @pankaj ,Thank you for the explanation.. here, I am not getting how it is ensuring the direction from P2 to P5. could you please explain ? 0 votes 0 votes anchitjindal07 commented Dec 4, 2018 reply Follow Share pankaj borah Can u please explain the method u used. I am a newbie to this. 0 votes 0 votes Gyanu commented Dec 31, 2019 i edited by Gyanu Dec 31, 2019 reply Follow Share @Arjun Sir, @Akash Kanase sir is this in syllabus now? How to approach these type of question? 3 votes 3 votes shashankrustagi commented Feb 4, 2021 reply Follow Share watch PK BISWAS, IIT KGP NPTEL Lecture, he has. taught FORK JOIN, and yes, it is in syllabus. 0 votes 0 votes Venky8 commented Jan 13, 2022 reply Follow Share @ankitgupta.1729 I think after the first “fork L2” if we add the line “goto L3”, then P2 to P5 edge will be added correctly (otherwise from P2 we are doing P3 which is wrong). Please correct it. 0 votes 0 votes ankitgupta.1729 commented Feb 22, 2022 reply Follow Share @Venky8 Sorry. I forgot all these things related to fork and join constructs. So, I can’t say whether it is correct or not. 1 votes 1 votes Venky8 commented Feb 23, 2022 i edited by Venky8 Feb 23, 2022 reply Follow Share @ankitgupta.1729 Ok I was referring to answer before edit. Answer is correct now 👍 (Reference 28:00). 2 votes 2 votes Nitesh_Yadav commented Apr 3, 2022 reply Follow Share @pankaj borah after P2 fork L3 should be present. because L3 will deal with P5. 0 votes 0 votes Pranavpurkar commented Aug 20, 2022 i edited by Pranavpurkar Nov 4, 2022 reply Follow Share helpful 0 votes 0 votes Overflow04 commented Aug 20, 2022 i edited by Overflow04 Sep 1, 2022 reply Follow Share @Pranavpurkarthe above link is of hotstar dude.☺ 0 votes 0 votes 22gate commented Nov 4, 2022 reply Follow Share @Pranavpurkar kya baat h bhai...wah 0 votes 0 votes Pranavpurkar commented Nov 4, 2022 reply Follow Share Lol, @22gate @GateOverflow04 Sorry brother, i think by mistake it happened😂 0 votes 0 votes biswajitbora commented Aug 7, 2023 reply Follow Share ganimat hai k kisi aur website ka nehi dal dya🔞 0 votes 0 votes Please log in or register to add a comment.