[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reentrantcy?



Paul Elliott <pelliott@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 (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: