Multithread windows application(ParameterizedThreadStart)

soumya.essl

Member
Joined
Jun 11, 2018
Messages
7
Programming Experience
5-10
Hi,

Can i run separate timer control on each thread ?

Please help me.

Regards,
Soumya,
Bangalore
 
There are no Timer controls and Timers don't run on threads. The Windows.Forms.Timer and Timers.Timer are components and the Threading.Timer is just a class. The WinForms Timer raises its Tick event on the UI thread only. The Timers.Timer can raise its Elapsed event on the UI thread or a thread pool thread. Please explain what you're actually trying to achieve rather than how you're trying to achieve it.
 
Hi,

I am working on multithread application that is Parameterized thread.

Example: Datatable has 5 rows. Each row will start running thread. (Thread threadObj; threadObj = new Thread(new ParameterizedThreadStart(abc)); )

On each thread ll start one Process called abc();
Parallel on timer click will get the response of abc() results and update result in datagridview.

In single thread working fine.

In multiple time when abc() process called, Timer is unable update the response of each thread.

Regards,
Soumya
 
The use of a Timer in that context sounds potentially dodgy. Can you show us all the relevant code, i.e. the code that starts the threads, the method you're executing on the secondary threads and your exiting Tick event handler?
 
Back
Top Bottom