1 votes 1 votes Operating System operating-system process-synchronization + – nikkey123 asked Nov 22, 2017 nikkey123 392 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply hs_yadav commented Nov 22, 2017 reply Follow Share mutual exclusion can be obtained :Pi while(flag[j]); and Pj:while(flag[i]); ?? but still deadlock is possible and for that: Pi while(flag[j]&&s2); and Pj:while(flag[i]&&s1); ?? 1 votes 1 votes sachin486 commented Oct 17, 2020 reply Follow Share thanx man. this was very helpfull 0 votes 0 votes Please log in or register to add a comment.