1 votes 1 votes Operating System made-easy-test-series cbt-2017 operating-system process-synchronization + – Dulqar asked Jan 22, 2017 • edited Mar 6, 2019 by adeebafatima1 Dulqar 847 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments bad_engineer commented Jan 29, 2017 reply Follow Share If both process arrive at while loop simultaneously then one while loop will definitely be false because turn value will be either i or j isnt it??? 0 votes 0 votes Sushant Gokhale commented Jan 29, 2017 reply Follow Share process I() { while(turn == j && flag[j] ==true) } process J() { while(turn == i && flag[i] ==true) } 0 votes 0 votes Dulqar commented Jan 29, 2017 reply Follow Share @Sushant Gokhale is it Peterson solution ? 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes Option (b) The process that executes statement-2 last will always be the first one to enter the CS. tech_beardo answered Jul 12, 2019 tech_beardo comment Share Follow See all 0 reply Please log in or register to add a comment.