From owner-freebsd-questions@FreeBSD.ORG Mon Mar 19 19:30:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2FC416A408 for ; Mon, 19 Mar 2007 19:30:31 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id BC2FF13C4D3 for ; Mon, 19 Mar 2007 19:30:31 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (a17-128-113-38.apple.com [17.128.113.38]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l2JJUVkv003565; Mon, 19 Mar 2007 12:30:31 -0700 (PDT) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id 28DBC404DF; Mon, 19 Mar 2007 12:30:31 -0700 (PDT) X-AuditID: 11807126-9e51fbb000002cb9-f0-45fee4d761a6 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay8.apple.com (Apple SCV relay) with ESMTP id 1781240470; Mon, 19 Mar 2007 12:30:31 -0700 (PDT) In-Reply-To: <0ADF7D74-9905-4C0F-9002-604B362C76CB@gmail.com> References: <0ADF7D74-9905-4C0F-9002-604B362C76CB@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Mon, 19 Mar 2007 12:30:30 -0700 To: Jules Gilbert X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: pthread usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2007 19:30:32 -0000 On Mar 19, 2007, at 11:30 AM, Jules Gilbert wrote: > I need help making pthread work, as I need to enqueue and dequeue > logical resource names, so that I can lock and unlock events and > physical resources. > > Does anyone have examples of pthread code that is known to work > under FreeBSD 6.1? There are hundreds of ports which use POSIX threads: find /usr/ports -name Makefile -print0 | xargs -0 grep -l PTHREAD > I have several different problems, but most can be stated as having > to defer execution of one job until one or more other jobs have > concluded. > > I have tried using "clusterit". The key component doesn't work, > sigh... I don't know whether the problem is the ClusterIt code or > FreeBSD, either. Are you using the port, /usr/ports/net/clusterit...? Talk to the maintainer, perhaps, who is . -- -Chuck