Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 12:07:16 -0700
From:      Bill Huey (Hui) <billh@gnuppy.monkey.org>
To:        Nick Johnson <freebsd@spatula.net>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Thread.sleep implementation
Message-ID:  <20020808190716.GA2757@gnuppy.monkey.org>
In-Reply-To: <20020808074233.T13773-100000@turing.morons.org>
References:  <20020808074233.T13773-100000@turing.morons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 08, 2002 at 07:48:01AM -0700, Nick Johnson wrote:
> I've noticed that in threads which are trying to make locks or wait to
> retry on some failure condition, the JVM tends to suddenly begin using
> tons of CPU, despite the presense of a Thread.sleep() call inside the
> loop.
> 
> What seems to also happen is starvation of the other threads, almost as
> though Thread.sleep were implemented as a busy loop (?).  I'll try to come
> up with a test case for this.  I bring it up here in case someone closer
> to the JVM's internals might know what I'm talking about...

Under what threading model ?

bill


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020808190716.GA2757>