| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | =?windows-1257?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx> |
| Subject: | Re: Problems with Windows threads and cygwin sleep() |
| Date: | Wed, 24 Aug 2005 14:24:55 -0500 |
| Lines: | 43 |
| Message-ID: | <deihi8$tub$1@sea.gmane.org> |
| References: | <20050824185143 DOT 76C69A01 AT data DOT zone DOT ee> |
| Mime-Version: | 1.0 |
| User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
| In-Reply-To: | <20050824185143.76C69A01@data.zone.ee> |
| OpenPGP: | url=ldap://keyserver.pgp.com |
| X-IsSubscribed: | yes |
raul wrote:
[snip]
> how about 6 windows 2003 servers, my laptop with XP and couple more=20
> desktops wit windows 2000 and xp
[snip]
Are you running the same compiled program? or have you compiled on more tha=
n one
machine?
I can corroborate that there is no problem with sleep() and latest Cygwin d=
ll
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 w=
hile.
HTH
--=20
Ren=E9 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |