<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi, Max,<br>
<br>
Not an expert, but I think the memory is multiplied by the number of
threads. Meaning, you start with an initial heap for that thread and
add to that the states and other internal variables (repeat that for
all the threads). At least that I noticed from my codes by now. If I
am wrong, I apologize.<br>
<br>
Cheers,<br>
CGS<br>
<br>
<br>
<br>
<br>
On 11/21/2011 11:57 AM, Max Bourinov wrote:
<blockquote
cite="mid:CANsaZAhWVOx4sd3Ny-7GTb9+V1yQ40RecBHKTBfuVp1kZ6qEeQ@mail.gmail.com"
type="cite">Hi Erlangers,
<div><br>
</div>
<div>I am wondering how my Erlang app would behave in this case:</div>
<div><br>
</div>
<div>I have a lot identical processes (the same module, state of
couse is different in each process). The module that I swap many
times has a huge function. I want to clarify how much memory it
will take? It will take memory for that huge function in each
process or only once?</div>
<div><br>
</div>
<div>I believe it will take memory only once, but I want to make
sure.</div>
<div><br clear="all">
<div>Best regards,</div>
<div>Max</div>
<br>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>