home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:3783 comp.unix.programmer:4531 comp.unix.internals:1767
- Path: sparky!uunet!mcsun!uknet!ieunet!tcdcs!unix1.tcd.ie!acourtny
- From: acourtny@unix1.tcd.ie (Antony A. Courtney)
- Newsgroups: comp.unix.wizards,comp.unix.programmer,comp.unix.internals
- Subject: Re: Implementation of Sys V. based message queues
- Message-ID: <acourtny.715558246@unix1.tcd.ie>
- Date: 3 Sep 92 22:10:46 GMT
- References: <32301@adm.brl.mil> <1992Sep1.155322.5522@panther.mot.com>
- Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
- Organization: Trinity College, Dublin
- Lines: 38
- Nntp-Posting-Host: unix1.tcd.ie
-
- In <1992Sep1.155322.5522@panther.mot.com> asu@panther4.panther.mot.com (ASU Student) writes:
- >Hello,
- > Does anyone have any insight in to the implementation of Sys V
- >based message queues (on SunOS)?
-
- All the system V IPC mechanisms are completely inconsistent with the rest of
- the i/o facilities provided by Unix. The "key"s they use are their own name
- space, they are persistent after process death, they don't use descriptors so
- you can't use normal read()/write()/select() semantics, and they add about a
- dozen system calls to the kernel just for handling them in their own arcane way.
-
- >The reason I ask is because I would
- >like to be able to use select(2) to multiplex descriptor based objects
- >(sockets) as well as the message queue.
-
- I could be mistaken, but my experience with using Sys V IPC with select()
- is:
- 'aint no way...
-
- I had the wonderful experience when integrating the DCE threads package with
- a control process we had developed in a multi-process environment. The
- system ran beautifully first time, creating all the threads, sharing all the
- data properly, simulating blocking i/o, etc. And then the process had to
- read some data from a Sys. V message queue and the process STOPPED STONE
- DEAD.
-
- Loads of fun. :-)
-
- (don't even get me started on Sys V semaphores....and to think Unix was once
- appreciated for "simplicity" and "clarity". *sigh*....)
-
- -antony
-
- --
- ********************************************************************************
- * Antony A. Courtney Email: acourtny@unix1.tcd.ie *
- * Computer Science Department antony@george.lbl.gov *
- * Trinity College, Dublin, Ireland Phone: 01+353+1-607389 *
-