Wait for all ThreadPool workers to complete

M

Michael D. Ober

I have an application that needs to limit the number of simultaneous threads
that are executing at any given time. The threadpool appears to be ideal
for this. However, I need to have my Sub Main wait until all queued workers
are complete. Is there anyway to do this short of polling a counter?

Thanks,
Mike Ober.
 
M

Michael D. Ober

Sounds like time to write my own thread/connection pool for the server. The
problem is that too many processor intensive threads on the server and it
bogs down.

Thanks,
Mike.
 
G

Greg Young

and I thought thread per process was unscalable :D


Michael D. Ober said:
My server is written in VMS Basic, which requires a separate process for
each connection. It's those processes I have to manage from the client
side.

Mike.
 

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