Hello all,
I am using a multi-thread program that executes with a 20ms period. Within each period, a few task threads are scheduled to execute one by one. A TimerTimeout() is used for waiting each thread before calling pthread_cond_wait() function. With different assigned time, the TimerTimeout() can set the execution time bound for each thread. One question is that if a thread cannot finish within the assigned time in this period due to an accidental computation burden, then what will happen to the data within that thread? Thank you.
Regards,
Eric