Question 14
Consider the following code snippet from Bakery Algorithm.
Considering that there are 5 processes, and initially num[0]=3, num[1]=0, num[2]=5,num[3]=2, num[4]=4, If Process 3 (num[2]) starts executing its critical section and then unlocks, what will be the new value of num[2] after P3 finishes execution?
Note: Enter your answer in decimal.