classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cp-patches] Thread.sleep() update


From: Jeroen Frijters
Subject: RE: [cp-patches] Thread.sleep() update
Date: Thu, 30 Dec 2004 22:00:55 +0100

Archie Cobbs wrote:
> > It isn't spec'ed this way. I actually think it is a Windows 
> > peculiarity that shines through.
> 
> I get the same behavior (no exception thrown) on FreeBSD and Linux
> with JDK 1.4.2.
> 
> So Sun has a bug - either in their implementation or their 
> documentation.

Interesting, but I'm happy it's at least consistent.

> That seems completely against the whole idea of Java semantic 
> uniformity.
> I disagree and think we should pick an "interpretation" and 
> then stick with it.

OK, in that case we should have Thread.sleep(0) call Thread.yield.

Thanks.

Regards,
Jeroen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]