Windows Service with Multi Threading

  • Thread starter Thread starter SMG
  • Start date Start date
S

SMG

I m looking out for some examples on Windows Service and Threading Model.

Main Process Calls Thread1

Main Process checks whether Thread1 is busy then it creates second thread
second thread again do the processting....

This is because my main process should transfer the load to different
threads, if any thread is free then ask that tread to do the job, else
create a new thread and do the job...

I am looking for some sample code for such scenario...

Thanks,
Shailesh
 
Hi Shailesh:

Look at the documentation and examples for the ThreadPool class in
System.Threading. This will give you a start.
 
Back
Top