Subject: Re: thread-safe RPC?
To: Ignatios Souvatzis <>
From: Nathan J. Williams <>
List: current-users
Date: 02/08/2003 16:08:05
Ignatios Souvatzis <> 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.

        - Nathan