Due: Friday, November 18, 2016, 10:00 am (start of the class)
Familiarize yourself with it, run it, and answer these questions:
Explain in one short sentence what the function does.
Which thread joins the main thread first?
Download hw10_question2.c. The
goal is to give each thread a number (my_num). There is a global
variable sum, we are trying to get it to be 10. Threads can add their
numbers to the global variable if they will bring it closer to 10 or to
10, but not if they will bring it over 10. Familiarize yourself with
it, run it, and answer these questions: