This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Thread difficulties
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Thread difficulties
- From: "Evan Turnbull" <evanturn at nortelnetworks dot com>
- Date: Thu, 13 Jan 2000 17:05:03 +1100
- CC: "Andrew Zahra" <andzahra at nortelnetworks dot com>
- Organization: Nortel Networks
Hi,
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?
I have built libgcj with posix threads and am using the -lposix compile
option. Is there anything else I need to do to successfully use threads?
Thanks,
Evan