Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 16:20:17 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        "Matthew L. Creech" <gte733p@prism.gatech.edu>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: shm & pthreads
Message-ID:  <20020329162017.C19933@Odin.AC.HMC.Edu>
In-Reply-To: <3CA4ED81.F0B9307F@prism.gatech.edu>; from gte733p@prism.gatech.edu on Fri, Mar 29, 2002 at 05:41:05PM -0500
References:  <3CA4ED81.F0B9307F@prism.gatech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020329162017.C19933>