|
help with networking and threads
is there anyway to make this implementation more efficient?
The implementation is:
There is this method thread that has an infinite loop which waits for connections and accepts it if there's one. The implementation is hungry of CPU usage. is there anyway to slow down the CPU usage? like setting up a timeout for the infinite loop, etc. (i'm not quite sure about the timeout thing)
|