This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: mmap() for shared memory?
- To: elliot at lexra dot com
- Subject: Re: mmap() for shared memory?
- From: DJ Delorie <dj at delorie dot com>
- Date: Wed, 7 Jun 2000 16:31:25 -0400
- CC: cygwin at sourceware dot cygnus dot com
- References: <000601bfd0b7$2a3a0020$0e08a8c0@lexra.com>
> I'm trying to implement a good-performance IPC using mmap. When I
> write to mmap'ed memory in one process, the second process never
> sees the change.
Where are you getting the memory from? mmap has to be given something
to map - it doesn't create memory out of thin air. Normally you give
it an open file to map; the only "empty" file is /dev/zero and that's
not shared anyway.
> Perhaps someone can suggest the optimal IPC mechanism under Cygwin.
The optimal IPC is, well, IPCs, stuff like shmget(). Unfortunately,
cygwin doesn't support those.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com