ipw969 / CMPT332

0 stars 0 forks source link

Assignment 1: Part A2 ~ UBC Threads #2

Closed iainworkman closed 7 years ago

iainworkman commented 8 years ago

Repeat part A.1 in UBC threads.

The difference here is the syntax of the thread calls and the process communication. If the time expires before children threads are finished, the parent should Kill() the children threads, instead of having them check the shared flag. In this case, the parent would be responsible for printing out the statistics for each child that had not finished executing when the deadline occurred.