| Author |
Message |
|
| nicks |
Posted: Sun Jun 13, 2010 7:22 pm |
|
|
|
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 :) |
|
|
| Back to top |
|
| zajda |
Posted: Mon Jun 14, 2010 8:14 pm |
|
|
|
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|