Problems with Windows threads and cygwin sleep()
Pavel Tsekov
ptsekov@gmx.net
Thu Aug 25 11:39:00 GMT 2005
Hello,
On Thu, 25 Aug 2005, Raul Metsma wrote:
> Ohh never get this right :(
> Actually I am more system administrator than programmer
>
> Lets try again:
> http://rtedev.com/~raul/threads/threads.c
> Compile this program under mingw
> gcc -o threads.exe threads.c
> ./threads 600
>
> now compile
> http://rtedev.com/~raul/threads/main.c
> with cygwin
> and when I execute this, then threads.exe will eat 100% CPU
Ok, it happens here with 400 or more threads. The program eats CPU time
when compiled with Cygwin and without Cygwin (-mno-cygwin). So this
doesn't seem to be related to Cygwin but to Windows itself.
I am running Windows 2000 SP4 on a PIII 1.1 Ghz with 256 Mb of ram.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list