Hi
I have questions about timer function in multi-threads environment.
My application has multi-threads, in one thread, I set a timer, when the timer expires, the timer function will interrupt other thread and execute.
I am not clear which thread will be interrupted by the timer function ?
Does the thread in which I set the timer be interrupted, or it depends on OS.
If my application is running on one CPU machine, I think the current thread will be interrupted. If the application is running on mult-CPU machine, and SMP is on, which thread will be interrupted.
If the thread I set the timer has finished and gone, when timer expires, what will happen ?
thanks & regards
Jeffrey
06-07-04