[erlang-questions] gen_server concurrency

Logan, Martin Martin.Logan@REDACTED
Mon Nov 13 21:36:16 CET 2006

I am not sure if I understand you.  Gen_server is just a process like
any other.  One call to start_link will produce exactly one process.  If
you want concurrency use more than one process, whether that process is
a gen_server or not makes no difference.  


-----Original Message-----
From: erlang-questions-bounces@REDACTED
[mailto:erlang-questions-bounces@REDACTED] On Behalf Of datacompboy
Sent: Monday, November 13, 2006 3:44 AM
To: erlang-questions@REDACTED
Subject: [erlang-questions] gen_server concurrency

We lost concurrency, when use gen_server for store items in mnesia.
Is that good?

F.e., mnesia:write() can be run in parallel, if it will save data in
several spread tables, but if we call gen_server:cast(logger, {log,
Message}) we lost that case, and all writes will be run in sequence...

May be there otp-way to work really in parallel?
--- suicide proc near\n call death\n suicide endp
Post sent from http://www.trapexit.org
erlang-questions mailing list

More information about the erlang-questions mailing list