This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problems with Windows threads and cygwin sleep()
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 24 Aug 2005 18:26:18 +0100
- Subject: RE: Problems with Windows threads and cygwin sleep()
----Original Message----
>From: Raul Metsma
>Sent: 24 August 2005 17:11
> Now when I compile simple c program under cygwin
>
> while(1) { sleep(1); }
>
> and execute it, the first program will eat 100% CPU.
I can't reproduce this. When I tried it, sleep worked as expected, and
the program consumed next to no cpu time at all.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/