From: tad.bochan@externe.bnpparibas.com
To: ruby.posix.mq@librelist.org
Subject: RE: Posix Message Queue vs System V Message Queue
Date: Thu, 12 Jul 2012 13:48:05 +0200 [thread overview]
Message-ID: <OF49BE3561.AB50E69D-ONC1257A39.003FB7A9-C1257A39.0040D3F0@bnpparibas.com> (raw)
In-Reply-To: CALiegf=L04nxVrMTsW05WWNyCwGN0LvJoNtmPakw5taqAFQpfQ@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 4734 bytes --]
Excellent description of PMQ & System V queues in "Unix Network Programming
Vol 2" by W. Richard Stevens.
Quote:
1. A read on a PMQ always returns the oldest message of the highest
priority, whereas SystemV can return a
message of any desired priority.
2. PMQ's allow the generation of a signal or the initiation of a thread
when a message is placed on an empty queue,
whereas nothing similar is provided by SystemV massage queues.
[ruby.posix.mq] Posix Message Queue vs System V Message Queue
(Internet)
ibc
A :
ruby.posix.mq
11/07/2012 22:17
Envoyé par: ruby.posix.mq@librelist.org
Veuillez répondre à ruby.posix.mq
Hi, according to the doc:
"POSIX message queues allow local processes to exchange data in the
form of messages. This API is distinct from that provided by System V
message queues, but provides similar functionality."
My Ruby project [*] uses posix_mq Gem heavily. The "problem" is that
Posix mq is not supported in OSX (not a real problem for me but... you
know). So I wonder, which is the advantage of Posix MQ over System V
MQ?
And... does Ruby (1.9) include support for System V mq? I've found a
project:
http://sysvipc.rubyforge.org/
but it seems that it does not provide a like-IO object in the way
posix_mq provides, so I cannot properly integrate it with EventMachine
(I did it for EM: https://github.com/ibc/em-posixmq).
Thanks a lot for any explanation.
[*] https://github.com/versatica/OverSIP
--
Iñaki Baz Castillo
<ibc@aliax.net>
This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential.
If you receive this message in error,or are not the intended recipient(s),
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose,
dissemination or disclosure, either whole or partial, is prohibited. Since the internet
cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS
(and its subsidiaries) shall not be liable for the message if modified, changed or falsified.
Do not print this message unless it is necessary,consider the environment.
----------------------------------------------------------------------------------------------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le "message")
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute
publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
ou il aurait ete modifie, deforme ou falsifie.
N'imprimez ce message que si necessaire, pensez a l'environnement.
[-- Attachment #2: Type: text/plain, Size: 3941 bytes --]
Excellent description of PMQ & System V queues in "Unix Network
Programming Vol 2" by W. Richard Stevens.
Quote:
1. A read on a PMQ always returns the oldest message of the highest
priority, whereas SystemV can return a
message of any desired priority.
2. PMQ's allow the generation of a signal or the initiation of a thread
when a message is placed on an empty queue,
whereas nothing similar is provided by SystemV massage queues.
Inactive hide details for ibc---11/07/2012 22:17:18---Hi, according to
the doc: "POSIX message queues allow local processes to
ibc---11/07/2012 22:17:18---Hi, according to the doc: "POSIX message
queues allow local processes to exchange data in the
[cid:2__=4EBBF0AADFAC31398f9e8a93d@bnpparibas.com]
[ruby.posix.mq] Posix Message Queue vs System V Message Queue
(Internet)
ibc
A :
ruby.posix.mq
11/07/2012 22:17
Envoye par: ruby.posix.mq@librelist.org
Veuillez repondre `a ruby.posix.mq
_______________________________________________________________________
Hi, according to the doc:
"POSIX message queues allow local processes to exchange data in the
form of messages. This API is distinct from that provided by System V
message queues, but provides similar functionality."
My Ruby project [*] uses posix_mq Gem heavily. The "problem" is that
Posix mq is not supported in OSX (not a real problem for me but... you
know). So I wonder, which is the advantage of Posix MQ over System V
MQ?
And... does Ruby (1.9) include support for System V mq? I've found a
project:
[1]http://sysvipc.rubyforge.org/
but it seems that it does not provide a like-IO object in the way
posix_mq provides, so I cannot properly integrate it with EventMachine
(I did it for EM: [2]https://github.com/ibc/em-posixmq).
Thanks a lot for any explanation.
[*] [3]https://github.com/versatica/OverSIP
--
Inaki Baz Castillo
<ibc@aliax.net>
This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential.
If you receive this message in error,or are not the intended
recipient(s),
please delete it and any copies from your systems and immediately
notify
the sender. Any unauthorized view, use that does not comply with its
purpose,
dissemination or disclosure, either whole or partial, is prohibited.
Since the internet
cannot guarantee the integrity of this message which may not be
reliable, BNP PARIBAS
(and its subsidiaries) shall not be liable for the message if modified,
changed or falsified.
Do not print this message unless it is necessary,consider the
environment.
-----------------------------------------------------------------------
-----------------------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le "message")
sont etablis a l'intention exclusive de ses destinataires et sont
confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en
avertir
immediatement l'expediteur. Toute lecture non autorisee, toute
utilisation de
ce message qui n'est pas conforme a sa destination, toute diffusion ou
toute
publication, totale ou partielle, est interdite. L'Internet ne
permettant pas d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP
Paribas
(et ses filiales) decline(nt) toute responsabilite au titre de ce
message dans l'hypothese
ou il aurait ete modifie, deforme ou falsifie.
N'imprimez ce message que si necessaire, pensez a l'environnement.
References
1. http://sysvipc.rubyforge.org/
2. https://github.com/ibc/em-posixmq
3. https://github.com/versatica/OverSIP
prev parent reply other threads:[~2012-07-12 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 20:16 Posix Message Queue vs System V Message Queue Iñaki Baz Castillo
2012-07-12 11:48 ` tad.bochan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/ruby_posix_mq/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF49BE3561.AB50E69D-ONC1257A39.003FB7A9-C1257A39.0040D3F0@bnpparibas.com \
--to=tad.bochan@externe.bnpparibas.com \
--cc=ruby.posix.mq@librelist.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/ruby_posix_mq.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).