Question Multi Thread In Windows Service

riya

New member
Joined
Dec 23, 2011
Messages
3
Programming Experience
3-5
Hi
I am using multithreading in my windows service. For each thread i am passing three parameters to a function in a class and i want to invoke the method in the main service from the
class. I tried out in windows application, multithreading is working as i am using Invoke method to access the method in the form window. In windows service how to use? Please help me out in this.
 
Control.Invoke is not relevant for a Windows Service that has no GUI and no controls. All you need to do is synchronize access to the objects, which can be done with SyncLock statement and with several classes from System.Threading namespace.
 
Back
Top