From owner-freebsd-stable Fri Mar 29 16:20:25 2002 Delivered-To: freebsd-stable@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 5984137B405 for ; Fri, 29 Mar 2002 16:20:19 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g2U0KHc25720; Fri, 29 Mar 2002 16:20:17 -0800 Date: Fri, 29 Mar 2002 16:20:17 -0800 From: Brooks Davis To: "Matthew L. Creech" Cc: freebsd-stable@FreeBSD.ORG Subject: Re: shm & pthreads Message-ID: <20020329162017.C19933@Odin.AC.HMC.Edu> References: <3CA4ED81.F0B9307F@prism.gatech.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CA4ED81.F0B9307F@prism.gatech.edu>; from gte733p@prism.gatech.edu on Fri, Mar 29, 2002 at 05:41:05PM -0500 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 29, 2002 at 05:41:05PM -0500, Matthew L. Creech wrote: > I searched for the answer to this, but couldn't find any > information. I'm writing a program that uses shared memory (via > shm_*) to communicate between two processes, each multithreaded. I > need some way to synchronize the two processes, and while other > methods are available (pipe, etc), I'd like to use pthreads mutexes, > as it makes my coding much easier. I read that this is supported in > Solaris, but not in Linux, but couldn't find any information on > FreeBSD. I this legal? Thanks Unfortunatly, the freeBSD implementation of Poxix semaphores does not support shared semaphores. I believe the only portable option supported by FreeBSD is SysV semaphores which frankly suck. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --69pVuxX8awAiJ7fD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8pQTAXY6L6fI4GtQRAiPuAKDWK9euOU2MjAsKHsNzBbpBBPdGaQCg3BXt TekDSZ1xtXy72FI1l3HeaHQ= =sTXC -----END PGP SIGNATURE----- --69pVuxX8awAiJ7fD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message