From owner-freebsd-smp@FreeBSD.ORG Wed Oct 17 19:09:00 2007 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DADD16A41B; Wed, 17 Oct 2007 19:09:00 +0000 (UTC) (envelope-from estrabd@gmail.com) Received: from bc1.hpc.lsu.edu (bc1.hpc.lsu.edu [130.39.198.6]) by mx1.freebsd.org (Postfix) with ESMTP id 1104F13C461; Wed, 17 Oct 2007 19:08:59 +0000 (UTC) (envelope-from estrabd@gmail.com) Received: from bc1.hpc.lsu.edu (localhost.hpc.lsu.edu [127.0.0.1]) by bc1.hpc.lsu.edu (8.14.1/8.13.8) with ESMTP id l9HJ5V6b083739; Wed, 17 Oct 2007 19:05:31 GMT (envelope-from estrabd@gmail.com) Received: (from estrabd@localhost) by bc1.hpc.lsu.edu (8.14.1/8.13.8/Submit) id l9HJ5VdJ083738; Wed, 17 Oct 2007 19:05:31 GMT (envelope-from estrabd@gmail.com) X-Authentication-Warning: bc1.hpc.lsu.edu: estrabd set sender to estrabd@gmail.com using -f Date: Wed, 17 Oct 2007 19:05:31 +0000 From: "B. Estrade" To: Kris Kennaway Message-ID: <20071017190531.GJ76582@bc1.hpc.lsu.edu> References: <20071017164204.GG76582@bc1.hpc.lsu.edu> <471646D9.5090508@FreeBSD.org> <20071017180140.GI76582@bc1.hpc.lsu.edu> <4716559F.9030908@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4716559F.9030908@FreeBSD.org> User-Agent: Mutt/1.4.2.3i mailed-by: estrabd@lsu.edu Cc: freebsd-smp Subject: Re: multi-threading with gcc43 openmp on dual core X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 19:09:00 -0000 On Wed, Oct 17, 2007 at 08:34:07PM +0200, Kris Kennaway wrote: > I dunno if there is something special you have to do with OpenMP, with > pthreads there is nothing special one needs to do, apart from making > sure your code is such that multiple threads can actually run at once > (i.e. they are not blocking each other for shared resources). I am using OpenMP because it is easy and coincides with some stuff I am already doing. I will take a look at Pthreads since my purpose is also to see how things work. Thanks for the suggestion. I'm going back my cave for a while to take a look at a few things. If I have any FreeBSD specific questions or find something that I think is interestig, I'll stick my head out again. Hope the lines are better now :) Cheers, Brett > > > Kris > > P.S. Please wrap your lines, it makes your emails hard to read. > -- HPC Enablement Group Louisiana Optical Network Initiative http://www.loni.org 225-578-1920