[erlang-questions] gen_server concurrency

Logan, Martin Martin.Logan@REDACTED
Mon Nov 13 22:00:04 CET 2006


To clarify my poorly worded last sentence: 

One call to start_link will produce exactly one process.  If
you want concurrency use more than one process, whether those processes
are
gen_server's or not makes no difference.  

-----Original Message-----
From: erlang-questions-bounces@REDACTED
[mailto:erlang-questions-bounces@REDACTED] On Behalf Of Logan, Martin
Sent: Monday, November 13, 2006 2:36 PM
To: erlang-questions@REDACTED
Subject: Re: [erlang-questions] gen_server concurrency

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: 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
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list