From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 20:48:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5844716A4BF for ; Sun, 31 Aug 2003 20:48:19 -0700 (PDT) Received: from web21506.mail.yahoo.com (web21506.mail.yahoo.com [66.163.169.17]) by mx1.FreeBSD.org (Postfix) with SMTP id DD43A43FAF for ; Sun, 31 Aug 2003 20:48:18 -0700 (PDT) (envelope-from rmhlldr@yahoo.co.uk) Message-ID: <20030901034818.6929.qmail@web21506.mail.yahoo.com> Received: from [194.44.215.131] by web21506.mail.yahoo.com via HTTP; Mon, 01 Sep 2003 04:48:18 BST Date: Mon, 1 Sep 2003 04:48:18 +0100 (BST) From: =?iso-8859-1?q?RMH?= To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: threading problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rhett@alasir.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 03:48:19 -0000 Oh yes, user threading doesn't support multiple CPUs... Thanks for pointing me. Both libkse and libthr work with that code snippet, but Viewperf when linked against any of them locks my machine pretty deadly. With Linuxthreads it just segfaults ;) --- Regards, Rhett Dan Nelson wrote: > > In the last episode (Sep 01), RMH said: > > Hello gentlemen, > > > > I seem to have threading problems with 5.1-RELEASE. Every time I run > > a multithreaded application (linked against libc_r) on a SMP system, > > I get only 1 CPU loaded at any moment given. I tried different > > Correct. libc_r is a userland threading library, which means that all > threads run as a single plain process. Linuxthreads forks a new > process for each thread. Try linking with -lkse or -lthr; both of > these threading libraries allow multiple threads to run simultaneously > on multiple CPUs. > > -- > Dan Nelson > dnelson@allantgroup.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/