[erlang-questions] gen_server concurrency

Logan, Martin <>
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.  

Cheers,
Martin

-----Original Message-----
From: 
[mailto:] On Behalf Of datacompboy
Sent: Monday, November 13, 2006 3:44 AM
To: 
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

http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list