*BSD News Article 46938


Return to BSD News archive

Xref: sserve comp.unix.solaris:41770 comp.unix.internals:8797 comp.unix.programmer:27105 comp.unix.sco.programmer:440 comp.os.linux.development.apps:4497 comp.unix.bsd.freebsd.misc:3267
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!uunet!in1.uu.net!mystech.mystech.com!usenet
From: <jcrupi@mystech.com>
Newsgroups: comp.unix.solaris,comp.unix.internals,comp.unix.programmer,comp.unix.sco.programmer,comp.os.linux.development.apps,comp.unix.bsd.freebsd.misc
Subject: Re: POSIX Threads package for ix86 and SPARC
Date: 15 Jul 1995 20:32:26 GMT
Organization: Mystech Associates, Falls Church, VA
Lines: 18
Distribution: inet
Message-ID: <3u98kq$p38@mystech.mystech.com>
References: <3tarhp$39e@gwsun.medinf.mu-luebeck.de> <QjyUYVy00YUyAL31dE@andrew.cmu.edu> <3u0n48$89l@kruuna.helsinki.fi>
NNTP-Posting-Host: m070.mystech.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.4 sun4m)
X-URL: news:3u0n48$89l@kruuna.helsinki.fi

We are using Solaris 2.4 threads, which are pretty easy to use.
To make our RPC server multi-threaded, all we do is make the following
call :

int mode = RPC_SVC_MT_AUTO;
rpc_control (RPC_SVC_MTMODE_SET, &mode);
svc_run ();

This sets RPC in multithreaded mode.  Then all we do is put a
few mutexes around to lock.  Does pthreads support this ? (ie RPC ).

Please Email.

Thanks.

John P. Crupi
jcrupi@mystech.com