Hi,

when I use Iperf run as daemon in ubuntu system, I find that the iperf keep cpu usage at 99% after one connection test, and I find if I add below to
compat/Thread.c

void thread_rest ( void ) {
#if defined( HAVE_THREAD )
#if defined( HAVE_POSIX_THREAD )
+     sleep(1);
 #else // Win32
     SwitchToThread( );
#endif
#endif

then the cpu usage is reasonable, can any one comments on this?

Regards,

Hake