This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problems with Windows threads and cygwin sleep()
- From: René Berber <rberber at prodigy dot net dot mx>
- To: cygwin at cygwin dot com
- Date: Wed, 24 Aug 2005 14:24:55 -0500
- Subject: Re: Problems with Windows threads and cygwin sleep()
- Openpgp: url=ldap://keyserver.pgp.com
- References: <20050824185143.76C69A01@data.zone.ee>
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/