in gamespy, it can ping up to 64 servers simultaneously. It uses multithreading, 1 thread per ping but the CPU utilization is close to nothing. I tried to follow the same pattern but my cpu utilization stays at 100 until all the pings are done. I made all the ping threads background threads and putting the main thread to sleep until all the worker threads were done but it still stays at 100% cpu utilization while pinging.
Can anyone help?
Can anyone help?
