This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Thread.yield() hangs win98 [was Re: Houston, we have threads...]



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]