*BSD News Article 82780


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!news13.agis.net!agis!newsgod1.agis.net!agis!news4.agis.net!agis!www.nntp.primenet.com!nntp.primenet.com!nntp.uio.no!nntp.zit.th-darmstadt.de!fu-berlin.de!news-ber1.dfn.de!news-ham1.dfn.de!news.dkrz.de!news.rrz.uni-hamburg.de!news.Hanse.DE!wavehh.hanse.de!cracauer
From: cracauer@wavehh.hanse.de (Martin Cracauer)
Subject: Re: Threading
Message-ID: <1996Nov13.165401.2044@wavehh.hanse.de>
Organization: BSD User Group Hamburg
References: <554o8n$9hb@wormer.fn.net> <jangusE01IB0.A4v@netcom.com> <JdHwnPO.smartsignal@delphi.com> <55nqeo$7d2@plains.nodak.edu> <3289939D.414A@wgold.demon.co.uk>
Date: Wed, 13 Nov 96 16:54:01 GMT
Lines: 32

James Mansion <james@wgold.demon.co.uk> writes:

>I'm interested in systems that have multi-thread facilities - I'm
>porting some C++ software across them, and looking at them as
>development platforms.

>I'm using LinuxThreads on Linux 2.0.x at the moment (plus various
>others eg Win32 etc).

>I've looked at www.freebsd.org but can't find any information on
>rfork(2) (?) or thread libraries - can someone point me at a
>reference or summarise?

On systems of the FreeBSD-2.2-family (that are snapshots and -current
until a few days ago and a ALPHA release RSN) you can go to
/usr/src/lib/libc_r and do a `make install` there. You have to have
the sources and rebuild them, they are not normally installed on
binary snapshots or distributions.

libc_r is a library that includes a pthreads package (derived from MIT
pthreads) and replacements for parts of the C library to make them
thread-save.

I've been called you can move the library (and include files) over to
2.1.5 and use them there, but I didn't try that by myself.

Hope that helps.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@wavehh.hanse.de>  http://cracauer.cons.org