Problems with Windows threads and cygwin sleep()
Raul Metsma
raul@vihmapuu.ee
Wed Aug 24 16:11:00 GMT 2005
There seems to be some kind issues with cygwin sleep()
and Windows threads.
I created one test program which creates 600 threads
with native windows Sleep(1).
Now when I compile simple c program under cygwin
while(1) { sleep(1); }
and execute it, the first program will eat 100% CPU.
It does not have any problem with Mingw compiled version.
Then I tried compile it under cygwin, using native windows
Sleep() ( Uppercase ) and included w32api/windows.h header,
then it does not have this issue.
I discovered this, using rsync. When I changed rsync sleeps,
with native versions, then there seems to be still same issue.
Maybe cygwin uses inside dll sleep?
I really hope to get this issue fixed
Raul Metsma
--
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