Windows Service with Multi Threading

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
 
S

Scott Allen

Hi Shailesh:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top