This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Problems with Windows threads and cygwin sleep()
- From: Raul Metsma <raul at vihmapuu dot ee>
- To: cygwin at cygwin dot com
- Date: Wed, 24 Aug 2005 19:10:44 +0300
- Subject: Problems with Windows threads and cygwin sleep()
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/