Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newspump.sol.net!ddsw1!news.mcs.net!not-for-mail From: tundra@MCS.COM (Tim Daneliuk) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Threading Date: 14 Nov 1996 10:02:40 -0600 Organization: TundraWare Lines: 38 Message-ID: <56ffr0$o01@Mercury.mcs.net> References: <554o8n$9hb@wormer.fn.net> <55nqeo$7d2@plains.nodak.edu> <3289939D.414A@wgold.demon.co.uk> <1996Nov13.165401.2044@wavehh.hanse.de> Reply-To: tundra@tundraware.com NNTP-Posting-Host: mercury.mcs.com In article <1996Nov13.165401.2044@wavehh.hanse.de>, Martin Cracauer <cracauer@wavehh.hanse.de> wrote: >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. > However, these are really just user-space threads, right? That is, the kernel itself is still not multi-threaded as I understand it. This means that you have the API illusion of threading, but when a thread blocks in user space, the whole process context in which it is running is also blocked. -- ------------------------------------------------------------------------------ Tim Daneliuk / tundra@tundraware.com Voicemail/FAX 847.827.1706