Proccess Comunication
-
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.
-
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.
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
-
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.
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?
-
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.