This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]