Question

The program shown in the figure below uses the Pthreads API. What would be the output from the program at LINE C and LINE P?

Fig: 1