Thread.yield() hangs win98 [was Re: Houston, we have threads...]
Adam Megacz
gcj@lists.megacz.com
Fri Dec 14 04:35:00 GMT 2001
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
More information about the Java
mailing list