Do timers run on the same thread that created them? Or do they run on another thread in the background?
Which Thread do Timers run on?
Started by
Guest_NeedHelp_*
, Jul 11 2006 08:12 AM
3 replies to this topic
#1
Guest_NeedHelp_*
Posted 11 July 2006 - 08:12 AM
Guest_NeedHelp_*
|
|
|
#2
Posted 12 July 2006 - 10:56 AM
No, I do not think so. If they did it would hault your entire program, which they do not.
for (int i;;) {
cout << "Smith";
}
#3
Posted 12 July 2006 - 06:40 PM
They fire on another thread, though you can pass in an ISynchronizeInvoke (like a Control) that can marshal the event to the UI (or another) thread if you want.
#4
Guest_NeedHelp_*
Posted 17 July 2006 - 12:22 PM
Guest_NeedHelp_*
Makes sense now that I think about it. Thanks guys.


Sign In
Create Account

Back to top










