?
=?ISO-8859-1?Q?Eduardo_Su=E1rez?=
Hi,
i have tried to understand how static variables work on a dynamic
library, but there's a point i can't see.
* Is the data segment (where static variables live, please confirm)
copied for every binary that is running linked to the library? This is
what it seems from my own experiments. That is, there is a copy of every
static variable for every binary linked. Then, is it really useful the
library?
* Is there a way to share a static variable between different binaries,
(without using threads, i mean)?
Thanks in advance,
-Eduardo
i have tried to understand how static variables work on a dynamic
library, but there's a point i can't see.
* Is the data segment (where static variables live, please confirm)
copied for every binary that is running linked to the library? This is
what it seems from my own experiments. That is, there is a copy of every
static variable for every binary linked. Then, is it really useful the
library?
* Is there a way to share a static variable between different binaries,
(without using threads, i mean)?
Thanks in advance,
-Eduardo