From owner-freebsd-threads@FreeBSD.ORG Mon Aug 30 07:48:12 2004 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 2132016A4CE for ; Mon, 30 Aug 2004 07:48:12 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id F20C043D5A for ; Mon, 30 Aug 2004 07:48:10 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [195.163.185.142] (i2-142.rommon.fi [195.163.185.142]) by silver.he.iki.fi (8.12.10/8.11.4) with ESMTP id i7U7m8m1020008; Mon, 30 Aug 2004 10:48:09 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <4132DBBB.4020008@he.iki.fi> Date: Mon, 30 Aug 2004 10:48:11 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis References: <4132C1CA.8070602@he.iki.fi> <20040830071707.GB28061@odin.ac.hmc.edu> In-Reply-To: <20040830071707.GB28061@odin.ac.hmc.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: sharing mutexes 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: Mon, 30 Aug 2004 07:48:12 -0000 Brooks Davis wrote: > >That depends on what you mean. You can use sysv semaphores between >processes, but their API is problematic in some applications. > >Could you explain what you want to do in more detail? > > I have multiple processes running threaded applications which would like to do 64bit wide atomic arithmetic, which if I understand correctly can only be achieved either via IPC (having a master process to do all the stuff) or sharing a mutex somehow. And as far as I understand, mutexes are process-local by default. Pete