From owner-freebsd-hackers Thu Feb 20 17:18:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA23556 for hackers-outgoing; Thu, 20 Feb 1997 17:18:37 -0800 (PST) Received: from lightside.com (hamby1.lightside.net [207.67.176.17]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA23550 for ; Thu, 20 Feb 1997 17:18:34 -0800 (PST) Received: by lightside.com (SMI-8.6/SMI-SVR4) id RAA00608; Thu, 20 Feb 1997 17:19:21 -0800 Date: Thu, 20 Feb 1997 17:19:21 -0800 From: jehamby@lightside.com (Jake Hamby) Message-Id: <199702210119.RAA00608@lightside.com> To: hackers@freebsd.org Subject: Alternatives to SYSV IPC? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-MD5: XV9nvr/PMmg2PWoUynNoXg== Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have another programming question. In addition to thread support, I need shared memory, message queues, and semaphores. Sounds like a perfect match to SYSVSHM, SYSVMSG, and SYSVSEM, eh? I don't have a problem with using these SYSV routines, and they are certainly portable enough, but I'm just concerned since they are not in widespread use. I know you can use mmap() for shared memory, and the thread libraries have built-in semaphore support, but what about messages? Sockets could be used, but they just provide an arbitrary stream of bytes, not discrete messages. FIFOs have the same problem, and pollute the filename space (I have the same problem with using mmap() for shared memory). Any comments you can make on pros and cons of the SYSV IPC routines, or if there is some legitimate alternative with similar functionality that I haven't thought of, I'd like to know about it. Thanks in advance! -- Jake