I am using
a) Linux
b) Pthreads
I want to write a program, with two pthreads, to cater for two queues of people. People arrive at each queue at a random interval of 1 - 10 seconds.
Each time a person arrives, print out the number of people in each queue to the screen.
Apparently sleep() pauses the whole program, how can a pause one particular thread??