2021年1月7日星期四

How to solve the global variable problem of shared module?

I'm learning about dynamic links recently. Suppose I have a .so file with a global variable called global. If this .so file is used in prog1 and prog2, how can prog1 and prog2 have different copies of the global variable? If the .so file also needs to use the global variable, how does it use different copies of prog1 and prog2?

https://stackoverflow.com/questions/65623318/how-to-solve-the-global-variable-problem-of-shared-module January 08, 2021 at 12:06PM

没有评论:

发表评论