This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Thread.yield() hangs win98 [was Re: Houston, we have threads...]
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 14 Dec 2001 07:29:43 -0500
- Subject: Thread.yield() hangs win98 [was Re: Houston, we have threads...]
- Organization: Myself
- References: <86elm0p7cf.fsf@megacz.com> <3C17F33D.700@waitaki.otago.ac.nz>
Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> Cool! Now, for extra credit, can you get it to pass all the threads
> regression tests in libjava/testsuite/libjava.lang/Thread*.java? ;-)
=) Yes, I'm going to run the regression suite really soon and see what
happens. I want to get NullPointerException and ArithmeticException
working first though...
BTW, win32 Thread.yield() is really messed up -- Sleep(0) and
SwitchToThread() both cause win98 to "become busy" -- an OS-level
hang... I've disabled it (yield == noop) for now. Does anybody know
what might cause this? I've read some stuff about it being a bad idea
to Sleep() in the message-handling thread, but I'm writing
console-mode apps right now, and the problem even occurs when I
Sleep() in a spawned (ie not main) thread.
- a