Try using asynchronous I/O rather than threads--i.e., fire off multiple pings, but rather than using a blocking read to get the response, you process responses asynchronously as they arrive. Using select on an array of sockets could do the trick, or maybe you'd prefer something like POE or IO::Lambda::Socket which handle much of the mechanics for you. (Note: I've used neither POE nor IO::Lambda::Socket, so I can't further comment on them.)
...roboticusIn reply to Re: Pinging server using multithreading concept
by roboticus
in thread Pinging server using multithreading concept
by nagivreddy93
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |