Staring more than one instance of a gen_server

Ken Robinson kenrobinsonster@REDACTED
Thu Oct 14 17:15:30 CEST 2010

Hi All,
If I wanted to start more than one instance of a gen_server what is
the best practice? The gen_servers would be exactly the same except
for the seeding parameters. From what I've found I could use the child
spec and seed with specific names through the arguments like so:
start_link(PortNumber, MySpecialName) -> gen_server:start_link({local,
MySpecialName, ?MODULE, PortNumber, []).
Would that work?
Ken Robinson

More information about the erlang-questions mailing list