
Shared Library/Shared Memory
: In article <320q1u$...@news.bridge.com>, Fred Xia <f...@Bridge.COM> wrote:
: >
: > I would like to get advices on using Shared Library to achieve Shared
: >Memory between processes. For example, the sharing of data structures
: >inside the shared library by processes.
: Only the program text of shared libraries is actually shared. Each process
: gets it's own copy of data areas (usually as copy-on-write pages). To share
: data look at the mmap calls (man 2 mmap) or shared memory (man 2 shmop should
: get you started on the manual pages).
This I understand. However, I was under the impression that you didn't
necessarily need to build your exe with shareable libraries. If for example
you created a file xyz.exe and multiple users were using this, is the text
area shared? In some cases, (ie copy on write) would therefore the data
areas also be shared.
Thanks in advance?
Jon
--
+--------------------------------------------------------------------+
| Jon Machtynger(j...@ingres.com) Ph: 02-716 32 18 Fax: 02-725 46 50 |
| Excelsiorlaan 25, B-1930 Zaventem, Brussels |
+--------------------------------------------------------------------+
| LINUX is not a .... dirty word. |
+--------------------------------------------------------------------+