When b becomes 1, the while loop in P2 breaks. Now the next instruction is printf("y"). But before this instruction gets executed, the instructions
b=0;
printf("z");
CAN be executed by P1. (There is a possibility for that). So, B is the correct answer.