[comp.sys.sun] Need help with SunOS LWP library

jamesp@munnari.oz.au (James Pinakis) (10/08/90)

I am having huge troubles with SunOS's LWP library (using SunOS 4.0.3 on a
SS-1) and I would urgently like to hear anybody's experiences with using
this library.  In particular, I'm curious to find out whether anyone has
experienced the library failing to resume (using lwp_resume()) threads
which have been suspended (using lwp_suspend()).  I'm sure that the
threads are being suspended properly and that the call to lwp_resume() is
ok (i.e. it is called with a valid thread id) but sometimes the threads
just don't resume.  In a last ditch effort to fix my problem I tried to
get the thread to be suspended to wait on a message (using msg_recv()) and
then have the other thread restart it by sending it a message.  This
worked a little better, but the threads still frequently fail to
rendezvous and the program grinds to a halt.

I've had little success in finding out anyone's experiences with this
library.  Is this because no-one uses it?  Is it broken?  If so, are there
any other libraries which provide similar functions with the added novelty
of actually working?

james
jamesp@bison.cs.uwa.oz.au