Knowledge about Linux dynamic libraries and linux dynamic libraries
If a dynamic library contains a global variable, the dynamic library used by program a, and program B also uses this dynamic library, is the global variable in program a and program B one? That is to say, do processes share global variables when using dynamic libraries? The answer is: yes, shared, but copied during writing. It gives programmers the feeling that they are not shared.
For details, refer to the following links:
Http://blog.csdn.net/yuyin86/article/details/10239479
Http://www.cnblogs.com/lovevivi/archive/2013/01/10/2854584.html
Http://markzhang.cn/blog/2016/01/12/global-variable-in-shared-lib/
Http://unixresources.net/linux/clf/program/archive/00/00/46/80/468069.html
Http://www.ibm.com/developerworks/cn/linux/l-cn-sdlstatic/index.html
Http://www.ibm.com/developerworks/cn/linux/l-dynamic-libraries/index.html
Http://www.ibm.com/developerworks/cn/linux/l-dynlink/
Http://tgmlyj.blog.163.com/blog/static/59415229200921892232555/