Thread control in thread pool for sending

T

testisok

Hi, all:

Here is a thread pool for sending as a client, all blocked at
Semaphore.
How can I choose these threads that is idle for some time and
then send heartbeat messages to the server thru sockets of these
threads?

Thanks in advance.
Best wishes
 

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

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top