[erlang-questions] clarify: order of messages

KatolaZ me@REDACTED
Sun Nov 18 12:24:13 CET 2007


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 ]



More information about the erlang-questions mailing list