Thread difficulties

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Evan Turnbull wrote:
> I have runtime error occuring in a program I compiled with gcj. I'm
> trying to run some TCP/IP performance tests with a compiled Java client
> and server. The server is hanging when the main thread requests a second
> thread to send a TCP/IP message. In the debugger I can see the call to
> the second thread and then I hang. I'm using wait/notify to coordinate
> the threads. I've noticed a few other problems in the mailing lists
> associated with the use of wait/notify. Does anyone have any advice?
> Should I be avoiding wait/notify?

wait/notify should work fine, except on Solaris 7 due to a bug in its recursive
mutex implementation. More information is needed to diagnose your problem -
which OS? what version of libgcj? Can you provide a test case that demonstrates
the problem?
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /