Global variable - multiple instances running

Apr 6, 2019 at 6:52pm
Hello Forum,

If an executable file has global variable, and you run the executable 2 times simultaneously, does each executable has its own global variable?

If a dynamic linked library has global variable, and you run an executable that uses this library 2 times simultaneously, does each executable have its own global variable?

If a static linked library has global variable, and you run an executable that uses this library 2 times simultaneously, does each executable have its own global variable?

Thank you.
Apr 6, 2019 at 7:36pm
Yes, yes, yes.

Apr 7, 2019 at 7:07am
Nice. Thank you.
Topic archived. No new replies allowed.