Are .dll files loaded once for every program or once for all programs?

Posted by Nilbert on Stack Overflow See other posts from Stack Overflow or by Nilbert
Published on 2010-05-17T02:14:47Z Indexed on 2010/05/17 2:20 UTC
Read the original article Hit count: 295

Filed under:
|
|
|
|

I have a simple small question which someone who knows will be able to answer easily, I searched google but couldn't find the answer.

There are many programs running at once on a computer, and my question is: when a program loads a DLL, does it actually load the DLL file or does it find the memory in which the DLL is already loaded? For example, is ws2_32.dll (winsock 2) loaded for every program that uses winsock, or is it loaded once and all programs that use it use the same memory addresses to call the functions?

© Stack Overflow or respective owner

Related posts about dll

Related posts about c++