lkml.org 
[lkml]   [2002]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Writable global section?
    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


    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:0.046 / U:154.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site