notifying change to shared memory

From: bill pursell (bill.pursell_at_gmail.com)
Date: 11/26/05


Date: 26 Nov 2005 05:35:49 -0800

I have several processes sharing a memory region the doesn't change
much. I'd like to have one process that sleeps most of the time, and
only wakes up when data in the region changes. I'm planning on
implementing this by having any process that makes a change send a
signal to the monitoring process, but I'm certain there is a nicer way
to do that. eg, have the kernel send a signal when the mmapp'ed pages
are modified, or something similar. I'm using Posix semantics for the
shared memory, not sysV. (Not sure that matters, and if there is a
clean way to do this with sys V, I'm happy to change.)



Relevant Pages

  • Re: notifying change to shared memory
    ... bill pursell wrote: ... > I have several processes sharing a memory region the doesn't change ... I'd like to have one process that sleeps most of the time, ... processes reading from the device. ...
    (comp.os.linux.development.apps)
  • Re: notifying change to shared memory
    ... > I have several processes sharing a memory region the doesn't change ... I'd like to have one process that sleeps most of the time, ... I'm using Posix semantics for the ... Use sysv or posix semaphores. ...
    (comp.os.linux.development.apps)