Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: =?windows-1257?Q?Ren=E9_Berber?= <rberber@prodigy.net.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.76C69A01@data.zone.ee>
Mime-Version:  1.0
Content-Type:  text/plain; charset=windows-1257
Content-Transfer-Encoding:  quoted-printable
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/

