From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 22:52:38 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 6473C16A4BF for ; Sun, 31 Aug 2003 22:52:38 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id A86DF44005 for ; Sun, 31 Aug 2003 22:52:37 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc11) with ESMTP id <2003090105523701300nuceje>; Mon, 1 Sep 2003 05:52:37 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id WAA99199; Sun, 31 Aug 2003 22:52:36 -0700 (PDT) Date: Sun, 31 Aug 2003 22:52:35 -0700 (PDT) From: Julian Elischer To: rhett@alasir.com In-Reply-To: <20030901034818.6929.qmail@web21506.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: threading problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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 05:52:38 -0000 On Mon, 1 Sep 2003, [iso-8859-1] RMH wrote: > 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 ;) you probably need to upgrade to 5.1-current as 5.1 thread support was very green. Lots of bugs fixed since then also threading questions to threads@.... > > --- > 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/ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >