Paul Elliott <[email protected]> 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 ([email protected])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to