Paul Elliott <pelli...@blackpatchpanel.com> writes:

> The state of a global variable in one program does not effect the state
> of the same global variable in another program that links the same
> shared library.  Both programs have seperate copies of static or global
> writable varriables of the shared library.

That's correct.

> Unless the programmer takes special action to force only one copy.

That can only be done within a single program that's multithreaded (unless
by "special action" you mean things like System V shared memory segments
or something similar that's rather more than just normal static or global
variables).

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87ehx3b6v7....@windlord.stanford.edu

Reply via email to