开发者

How DLLs are shared among applications?

开发者 https://www.devze.com 2023-01-24 03:14 出处:网络
I am under the 开发者_StackOverflow社区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?

I am under the 开发者_StackOverflow社区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


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消