Sumy's answer is correct. There will be only one instance of a static variable. This is also due to the fact that having static globals in shared libraries can be a huge problem. One real-world example where this can happen:
- Apache web server that loads the following modules:
- mod_php which is associated with
- mod_perl that loads
, - PHP- , libxml2, Perl . , . .
( libxml2 .)