home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / wizards / 3864 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.5 KB

  1. Xref: sparky comp.unix.wizards:3864 comp.unix.programmer:4592 comp.unix.internals:1784
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!sdd.hp.com!swrinde!elroy.jpl.nasa.gov!ncar!noao!rstevens
  3. From: rstevens@noao.edu (W. Richard Stevens)
  4. Newsgroups: comp.unix.wizards,comp.unix.programmer,comp.unix.internals
  5. Subject: Re: Implementation of Sys V. based message queues
  6. Message-ID: <1992Sep9.195036.25030@noao.edu>
  7. Date: 9 Sep 92 19:50:36 GMT
  8. References: <1992Sep3.232807.18181@noao.edu> <1992Sep8.171014.21414@dickens.com> <18kvotINN7le@smurf.smurf.sub.org>
  9. Sender: news@noao.edu
  10. Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
  11. Lines: 16
  12. Nntp-Posting-Host: gemini.tuc.noao.edu
  13.  
  14. >Does anybody use message queues anyway? For something that can't be done
  15. >just as easily with named pipes or Unix-domain sockets?
  16.  
  17. The only things you get with System V message queues are record
  18. boundaries (which you get with datagram Unix domain sockets,
  19. but then you have to provide your own flow control) and the ability
  20. to assign a type (e.g., priority) to each message, and use this
  21. priority to choose which record to read next.
  22.  
  23. But, as others have already pointed out, there are *so many* drawbacks
  24. to using them that new applications should avoid them like the plague.
  25. Lots of people used to claim a need for them since they used to be
  26. fast, but today they are no faster than Unix domain stream sockets
  27. or SVR4 stream pipes.
  28.  
  29.     Rich Stevens  (rstevens@noao.edu)
  30.