1 votes 1 votes Deepalitrapti asked Dec 18, 2018 Deepalitrapti 331 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Hemanth_13 commented Dec 19, 2018 reply Follow Share It's concurrent execution right... Perform P1 condition check and preempt Perform P2 condition check and execute y=y+1-->y=2 execute p1 twice -> x=2 EXECUTE Z=(x!=y) --> z = false so p2 loop breaks --> p2 is terminated 1 votes 1 votes minex let's go commented Dec 19, 2018 reply Follow Share let's suppose after p2 condition check.. p1's loop is run 3 times then x=2 and y is y=1. then p1's while condition is violating means p1 is terminating too. @Hemanth_13 0 votes 0 votes Hemanth_13 commented Dec 19, 2018 reply Follow Share Noo need of that just run P1 first then in the 2nd iteration condition will fail and P1 has to terminate. 0 votes 0 votes anjali007 commented Dec 19, 2018 reply Follow Share i think both of them should terminate 0 votes 0 votes Please log in or register to add a comment.