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

Lev Walkin <>
Wed Dec 5 06:40:54 CET 2007


Jack Orenstein wrote:
> 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?

Yes, but this is implementation detail and is not guaranteed
by the standard.

-- 
Lev Walkin




More information about the erlang-questions mailing list