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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top