Description:

This 8-th exercise is similar to the 5-th one.
You have to handle the signal and generate lottery numbers.

However, this time you create threads each generating a number. The synchronization between the main thread and the lottery thread is done by pthread_mutex and pthread_cond.

The sample output is just the same as exercise 5.