Re: Writable global section?

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Wed Oct 09 2002 - 10:46:38 EST


On Wed, 9 Oct 2002, Brian Gerst wrote:

> Richard B. Johnson wrote:
> > I would like to be able to write to that variable and have it seen
> > by other tasks, since shared memory is shared memory. It's a shame
> > to mmap a shared library upon startup and then have to mmap some
> > additional shared memory for some inter-process communication.
>
> There are only two ways to share memory between processes:
> - SYSV shared memory
> - using clone() to share the VM.
>
> Shared libraries != shared memory. Each mapping of a shared library is
> copy-on-write. The purpose of shared libraries is to save memory, not
> for IPC.
>
> --
> Brian Gerst

It's a shame we don't have writable global sections in shared libraries
like the old VAXen did.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:31 EST