Hi, I haven't found any concrete answer to this and I'm wondering if someone could clear it up for me. Maybe it's just too obvious.
How are static variables and methods handled between threads? Between separate applications running concurrently?
For example, I have a static library I use in several applications. If I run two of them at the same time and one application modifies a static variable, will the other application see this change? My intuition is that it would not. My guess is that all threads in a single application see the same static variables, but a different application runs in it's own memory space and does not see any of these changes.
Thanks a lot!
How are static variables and methods handled between threads? Between separate applications running concurrently?
For example, I have a static library I use in several applications. If I run two of them at the same time and one application modifies a static variable, will the other application see this change? My intuition is that it would not. My guess is that all threads in a single application see the same static variables, but a different application runs in it's own memory space and does not see any of these changes.
Thanks a lot!