Erlang/OTP Forums

Author Message

<  Open Telecom Platform (OTP)  ~  Does gen_server:cast guarantee sequenced delivery?

nicks
Posted: Sun Jun 13, 2010 7:22 pm Reply with quote
Joined: 25 Dec 2009 Posts: 9
Does gen_server:cast(...) guarantee that message is received in the same order as they are sent?

I do like to call gen_server:call(...) but it contains callback to calling Module (gen_fsm) and that apparently creates race condition!

My requirement is to process message in exactly the same order as it is received.

Thanks :)
View user's profile Send private message
zajda
Posted: Mon Jun 14, 2010 8:14 pm Reply with quote
User Joined: 22 Aug 2009 Posts: 83
for sure if one process sends out two messages to another process they will arrive in the same order.

In case of asynchronous calls from many processes to target one it is not guaranteed at all.


mhz

edit:

here you can find links for background in theory:

http://www.erlang.org/pipermail/erlang-questions/2007-January/025047.html



MichaƂ Zajda
------------------
Erlang Solutions Ltd
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum