Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Proccess Comunication

Proccess Comunication

Scheduled Pinned Locked Moved IT & Infrastructure
question
4 Posts 4 Posters 0 Views 1 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.
  • G Offline
    G Offline
    Gizzo
    wrote on last edited by
    #1

    Hi everyone. I'm just wondering what is the best/fast way to comunicate 2 proccess. I need to do it in real-time. Actually what I want is send requested information from one proccess to other. What way do you think is faster? Thank you in advance. Best Regards.

    D M L 3 Replies Last reply
    0
    • G Gizzo

      Hi everyone. I'm just wondering what is the best/fast way to comunicate 2 proccess. I need to do it in real-time. Actually what I want is send requested information from one proccess to other. What way do you think is faster? Thank you in advance. Best Regards.

      D Offline
      D Offline
      dnewmon
      wrote on last edited by
      #2

      What programming language are we talking about here? .NET Framework: Sockets are fairly easy C/C++: Pipes, Mailslots, DDE or Network DDE are all possible SendMessage() can send 8 bytes per call or as much as you want/need with WM_COPYDATA. I don't know about performance on SendMessage(), but you could implement it easy enough. David

      1 Reply Last reply
      0
      • G Gizzo

        Hi everyone. I'm just wondering what is the best/fast way to comunicate 2 proccess. I need to do it in real-time. Actually what I want is send requested information from one proccess to other. What way do you think is faster? Thank you in advance. Best Regards.

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Gizzo wrote:

        I need to do it in real-time.

        Windows is not a real-time OS. But basically, any IPC method involves the caller stuffing some data in shared memory (either with APIs like CreateFileMapping or with a socket), notifying the callee that the data is ready, and then the callee waking up and reading the data. The context switch usually dominates that process for small amounts of data. Since we don't know your code, we can't tell you the fastest way. Write some code using various methods and time it. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Pinky, are you pondering what I'm pondering? I think so Brain, but how will we fit the hamster inside the accordion?

        1 Reply Last reply
        0
        • G Gizzo

          Hi everyone. I'm just wondering what is the best/fast way to comunicate 2 proccess. I need to do it in real-time. Actually what I want is send requested information from one proccess to other. What way do you think is faster? Thank you in advance. Best Regards.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          take a look at injecting a dll into a process via windows hooking (SetWindowsHook) Nunc est bibendum

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups