Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: Problems with Windows threads and cygwin sleep() Date: Wed, 24 Aug 2005 18:26:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <430C9C04.4020905@vihmapuu.ee> Message-ID: ----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/