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()


raul wrote:

[snip]
> how about 6 windows 2003 servers, my laptop with XP and couple more 
> desktops wit windows 2000 and xp
[snip]

Are you running the same compiled program? or have you compiled on more than one
machine?

I can corroborate that there is no problem with sleep() and latest Cygwin dll
under WinXP Pro sp2:

$ vi sleep.c
$ cat sleep.c
int main () {

  while (1)
    sleep(1);
  return 0;
}

$ gcc -o sleeper sleep.c

$ time ./sleeper


real    1m14.924s
user    0m0.030s
sys     0m0.030s

$ uname -a
CYGWIN_NT-5.1 black 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin

The "sleeper" process used ~0% cpu (as seen), I killed it with ^C after a while.

HTH
-- 
René Berber


--
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]