From owner-freebsd-threads@FreeBSD.ORG Fri May 23 08:53:43 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 9F5A037B401 for ; Fri, 23 May 2003 08:53:43 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AE6E43F75 for ; Fri, 23 May 2003 08:53:42 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h4NFrfk8017864; Fri, 23 May 2003 18:53:41 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <08c401c32143$7843a390$c02a40c1@PETEX31> From: "Petri Helenius" To: "Daniel Eischen" References: Date: Fri, 23 May 2003 18:53:35 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 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 15:53:43 -0000 > > 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. > As far as my experience shows linuxthreads has issues with mutexes on an SMP machine (at least when running on FreeBSD). I actually tried -lkse on a machine with kernel about two weeks old, so far I have not been able to reach the machine since ... Will try again on more local box, because it does not seem to crash to console debugger but just plain out "die". Pete