Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2003 10:57:30 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: basic thread question
Message-ID:  <Pine.GSO.4.10.10305231052320.6389-100000@pcnet1.pcnet.com>
In-Reply-To: <089001c32139$ae0d5e30$c02a40c1@PETEX31>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 May 2003, Petri Helenius wrote:

> 
> In 5-CURRENT (5.1-BETA) what is the way to link/compile my posix threads program 
> so I would get more than one thread scheduled on a SMP machine? Is there a document
> somewhere or does it "just work" ?

Either link to libkse or libthr (-lkse or -lthr).  Don't use
libc_r (-pthread or -lc_r).  Libkse will set the concurrency
to the number of CPUs in your system.  You can also use
scope system threads with libkse.

libthr will create each thread in its own KSE, and is more
like Linuxthreads (1:1) model.  libkse is M:N.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10305231052320.6389-100000>