.NET Threading

Rheza

New member
Joined
Feb 2, 2010
Messages
4
Programming Experience
1-3
Hi I need help with threading

I'm using 2 System.Timers, which spawns a worker process during its elapsed event. If 1 of the events is busy doing something, the other thread elapsed event doesnt fire until the 1st thread has completed.

Is there any way I can make both threads continuously fire its elapsed event??
 
I think i wrote this thread in the wrong section, how do i delete the thread? I cant find the option in the edit section.
 
ok found the answer...

when implementing System.Timers dont use the SynchronizingObject property, and invoke method to connect your UI Thread and update a control on the UI thread.

Instead use InvokeRequired property and BeginIvoke method.
 
Back
Top