[erlang-questions] Order of message processing by a gen_server

Jack Orenstein jao@REDACTED
Wed Dec 5 05:47:06 CET 2007


Suppose I have a gen_server process whose queue contains {a} and {b}.  
Does the order of the handle_call function clauses determine which  
message is processed first? I.e., if the function clauses are

     handle_call({a}, From, State) -> ...
     handle_call({b}, From, State) -> ...

is it guaranteed that {a} will be processed first?

Jack Orenstein



More information about the erlang-questions mailing list