[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shared Libs
> Wouldn't the lib then have to keep 'n' data sections corresponding to the
> 'n' processes currently using the library.
Yes, but this is always true for shared libraries. The only thing that
is shared is the text section of the library. The data sections have
to be instantiated separately for every process (at least that is
the way shared libraries are usually implemented. However some
variables, like __mint in the mint libs, would not need to exist in
every process separately). Getting this right is the tricky part of
implementing shared libraries.
----
Wolfgang Lux
WZH Heidelberg, IBM Germany Internet: lux@heidelbg.ibm.com
+49-6221-59-4546 VNET: LUX at HEIDELBG
+49-6221-59-3200 (fax) EARN: LUX at DHDIBMIP