1 votes 1 votes Variable X starts at zero and is a shared variable. Variables A and B are not shared variables. If Processes P1 and P2 execute only once at any speed, the largest possible value of X is ____. Operating System operating-system + – jugnu1337 asked Sep 21, 2021 jugnu1337 514 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes The largest value of X possible is 4. P2 will run only one time and P1 will run for two times so we execute P2 first and then two times P1. Giving us X = 4. Aashay kaurav answered Oct 7, 2021 Aashay kaurav comment Share Follow See all 0 reply Please log in or register to add a comment.