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