[Prev][Next][Index]

Re: ELF



In message <1079AD845D7@hagiga.jct.ac.il> you write:
|When two, or more, unrelated processes access/use the _same_ shared
|library, libfoo.so, and call the _same_ function, foo(), does each
|process own its _private_ copy of foo() including data, in its address
|space, or do they share something ?       

They access the same physical "text" (i.e. code) page.  The rest is
normally private to each process (the stack and data pages).

That's why "shared objects" (.so) are called "shared".

Cheers,

(btw, about my purchases - I don't follow the linux groups (no time),
but it was reported to me that people abroad are very enthusiastic about
Tyan Titan III boards. Well, I've just discovered they are available
in Israel.  Just in case it interests anyone).

--Amos

--Amos Shapira                      | "Of course Australia was marked for
133 Shlomo Ben-Yosef st.            |  glory, for its people had been chosen
Jerusalem 93 805                    |  by the finest judges in England."
ISRAEL          amoss@cs.huji.ac.il |                     -- Anonymous