delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/07/16:19:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Reply-To: <elliot AT lexra DOT com>
From: "Elliot Mednick" <elliot AT lexra DOT com>
To: "Cygwin AT Sourceware. Cygnus. Com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: mmap() for shared memory?
Date: Wed, 7 Jun 2000 15:32:49 -0400
Message-ID: <000601bfd0b7$2a3a0020$0e08a8c0@lexra.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Importance: Normal

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.
I've seen other posts asking the same question, but no responses.

If anyone has actually gotten mmap to work with MAP_SHARED, can you post or
email me an example or code fragment?

I'm using a very recent version of Cygwin (1.1.1?).

Meanwhile, I guess I'm stuck using named pipes.  Perhaps someone can suggest
the optimal IPC mechanism under Cygwin (note: I'm not forking processes; I
need to have two seperate programs, each with its own "main").

Thanks!

--
Elliot Mednick                              51 Sawyer Rd, Suite 110
Processor Architect                         Waltham, MA. 02453
Lexra, Inc.                                 (781) 899-5799 x805
elliot AT lexra DOT com                            (781) 899-5769 fax


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019