This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Thread difficulties
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Thread difficulties
- From: "Evan Turnbull" <evanturn at nortelnetworks dot com>
- Date: Fri, 14 Jan 2000 16:33:38 +1100
- CC: java-discuss at sourceware dot cygnus dot com, "Andrew Zahra" <andzahra at nortelnetworks dot com>
- Organization: Nortel Networks
- References: <387D6B0F.FB26602C@asiapacificm01.nt.com> <387E8AA9.14C9B72@albatross.co.nz>
I'm using Solaris v2.6 (uname -a gave me SunOS v5.6 = Solaris 2.6 right?). So it's
well before Solaris 7. Should I assume that threads will be fine on this version of
solaris?
Evan
Bryce McKinlay wrote:
> 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 ]