× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 31/07/2008, at 10:42 PM, Adam Glauser wrote:

[L]ets suppose we have PGM0,
consisting of modules MOD_0 and MOD_UTIL. We also have PGM1, consisting
of MOD_1 and MOD_UTIL.

If I now run PGM0 which calls PGM1, wouldn't there essentially be two
copies of the code for MOD_UTIL in memory?

Simon Coulter wrote:
In that case there are two copies of the same code because you have "bound by copy" but there are also two different programs loaded. You'll have the same effect if you bind a module into a service program and also into a program object.
[...]
However, that's not what he asked. He said "50 people using the same interactive program that weighs 40MB". That is one program used by 50 users. In that case only one copy of the program code no matter who loaded it first nor whether the users are running in different main storage pools.

I realize that I deviated from the OP's question. I certainly wasn't trying to gainsay your response. It seemed that considering a case related to the OP's question might help him better understand the concepts at play, and it has certainly helped me to clarify my understanding of things.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.