Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to signal when doing IPC using Shared Memory?

How to signal when doing IPC using Shared Memory?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 376 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by
    #1

    Shared Memory is the fastest way to share large amount of data, however, I couldn't figure out a (recommended) mechanism to signal other process of available data e.g. Process A and B are using Shared Memory to communicate. Process A writes to Shared Memory, now how is Process B notified of the update (ideally as quick as possible)?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can use another channel for that. QLocalServer/Socket for example. QtMQTT might also be an option.

      Depending on what you want to transfer/process did you benchmark QLocalServer/Socket ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You can use another channel for that. QLocalServer/Socket for example. QtMQTT might also be an option.

        Depending on what you want to transfer/process did you benchmark QLocalServer/Socket ?

        T Offline
        T Offline
        Taytoo
        wrote on last edited by
        #3

        @SGaist It's large binary data (100MB). While QLocalServer is quite fast, still its a bit of an overhead having to pipe all the data through a socket. I guess I'll load data in shared memory and then notify other side over QLocalSocket

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved