none
dotnet core memory mapped file signalling mechanism for data read/write RRS feed

  • Question

  • Hi Team,

    My environment is Ubuntu.

    I wanted to use memory mapped files concept for IPC. The data is passed form process 1 (developed in native c language) to Process 2 (developed in dotnet core).

    When the process 1 writes process 2 need to read and based on data it respond back with some data.

    How i can signal to process 2 when process 1 completes writing and vice versa.

    Please help me with snippet. Thank you for the great help in advance.

    Regards,

    Ravi


    • Edited by RaviRaju Friday, August 23, 2019 9:57 AM
    Friday, August 23, 2019 9:56 AM

Answers

All replies

  • Hi,

    I don't have time to provide you with a code snippet, but have a look at the following framework:

    https://github.com/jacqueskang/IpcServiceFramework

    The README page contains some code samples.

    Kind regards,

    Johnny Hooyberghs

    • Marked as answer by RaviRaju Monday, August 26, 2019 5:27 AM
    Friday, August 23, 2019 11:52 AM
  • You might consider using sockets or pipes instead of shared memory.  It's just about as efficient, but you get notifications automatically when data is sent.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Friday, August 23, 2019 8:53 PM
  • Thank you so much for your help.
    • Marked as answer by RaviRaju Monday, August 26, 2019 5:27 AM
    • Unmarked as answer by RaviRaju Monday, August 26, 2019 5:27 AM
    Monday, August 26, 2019 5:27 AM