This is the mail archive of the
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: <firstname.lastname@example.org>
> 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 email@example.com