[erlang-questions] clarify: order of messages

Zvi exta7@REDACTED
Sun Nov 18 19:55:35 CET 2007


Same processes on the same node?
Will be this a case when processes are on different nodes?

Zvi


KatolaZ wrote:
> 
> On Sun, Nov 18, 2007 at 11:28:14AM +0100, Matej Kosik wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Hello,
>> 
>> When one process sequentially sends two messages of the same "shape" (for
>> example `Msg1' and
>> `Msg2'), is there some rule enforced concerning the order in which (via
>> same receive pattern) will
>> they be received?
>> 
>> Suppose a situation when `Msg2' was delivered before `Msg1' was
>> processed.
>> 
>> Can I assume that `Msg1' will be received always before `Msg2' (if I use
>> the same message pattern)?
>> 
> 
> If both Msg1 and Msg2 are sent (in this order) from the same process
> to the same process (shape), then you are sure that Msg1 will be 
> "processed" (i.e. extracted from the message queue) before Msg2. 
> 
> HND
> 
> Enzo 
> 
> -- 
> [ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ]
> [ me [at] katolaz.homeunix.net -- http://katolaz.homeunix.net -- ]
> [ GNU/Linux User:#325780/ICQ UIN: #258332181/GPG key ID 0B5F062F ]
> [ Fingerprint: 8E59 D6AA 445E FDB4 A153 3D5A 5F20 B3AE 0B5F 062F ]
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> 

-- 
View this message in context: http://www.nabble.com/clarify%3A-order-of-messages-tf4829783.html#a13822276
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list