Gen_server and multiple processes

Matthias Lang <>
Thu Dec 19 10:44:43 CET 2002

hfventer writes:

 > 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?

gen_server does not create a new process for each call. Half the point
of having a a gen_server is that requests to it are taken one at a

You can verify this yourself by inserting something like

  io:fwrite("my_gen_server:handle_call running in pid ~p\n", [self()])

into your handle_call code.


More information about the erlang-questions mailing list