Reputation: 71
I am under the impression that DLLs are mapped into the address space of the calling process. If that is the case, how DLLs can be shared among other processes?
Regards, Arun
Upvotes: 2
Views: 198
Reputation: 14870
There are two ways:
1) Common library code is put in DLL files (it stands for Dynamic-Link Library), so that common portions of code uses less space on HDD (and are easier to update).
2) In-memory sharing (copy-on-write scheme, when pages that are common to several processes are mapped to the same physical page).
Upvotes: 2