Gen_server and multiple processes
Thu Dec 19 10:08:59 CET 2002
I would like to know if the gen_server behavior creates a separate
process for each message that is sent to it, or must this kind of thing
still be written into your own code?
In other words, if several calls to the function foo() is made, will
there be several processes each running handle_call spawned, or will
there be several queued calls to handle_call?
It seems that playing to Erlangs strengths in this situation makes the
most sense :) Would spawning a process to handle foo and returning
immediately might be the correct way to do this type of thing? (if
gen_server does not do it already).
More information about the erlang-questions