Each thread will count the number of points that occur within the circle and store that result in a global variable. When these threads have exited, the parent thread will calculate and output the estimated value of π. You can reference fig4-23.c in the source code on how to use Pthread.