From owner-freebsd-threads@FreeBSD.ORG Fri May 23 07:57:32 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E5CA37B401 for ; Fri, 23 May 2003 07:57:32 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50A9243FAF for ; Fri, 23 May 2003 07:57:31 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h4NEvUwQ010709; Fri, 23 May 2003 10:57:30 -0400 (EDT) Received: from localhost (eischen@localhost)h4NEvUYC010706; Fri, 23 May 2003 10:57:30 -0400 (EDT) Date: Fri, 23 May 2003 10:57:30 -0400 (EDT) From: Daniel Eischen To: Petri Helenius In-Reply-To: <089001c32139$ae0d5e30$c02a40c1@PETEX31> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: basic thread question X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 14:57:32 -0000 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