Subject: Re: thread-safe RPC?
To: Ignatios Souvatzis <firstname.lastname@example.org>
From: Nathan J. Williams <email@example.com>
Date: 02/08/2003 16:08:05
Ignatios Souvatzis <firstname.lastname@example.org> writes:
> I was asked:
> "Does NetBSD have a multithreading-safe RPC library?"
> What's the answer?
"I think so." Our RPC code in libc comes from Sun, and makes pretty
heavy use of the locking infrastructure in libc, which (now) works in
a multithreaded environment, with native threads. I believe that that
locking infrastructure was originally put in place for the benefit of
the RPC code. That said, I haven't personally audited it...
Note that the libc/pthread lock integration only exists for the native
libpthread, and not for PTH or ptl2.