View Single Post
  #1 (permalink)  
Old 05-07-2008, 09:55 AM
byuu byuu is offline
Member
 
Join Date: May 2008
Posts: 15
byuu is on a distinguished road
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)
Reply With Quote
Sponsored Links