Inter-Process Communication (IPC) refers to the exchange of data among multiple threads in one or more processes, either locally or on remote computers connected in a network. The available methods of IPC vary based on the bandwidth and latency of communication between the threads, and the type of data being transmitted. IPC includes subtopics such as message passing, synchronization, shared memory, and remote procedure calls (RPC).
Questions tagged [inter-process-communicat]
218 questions
7
votes
2 answers
Sending an Error Object from a spawned child-process over an IPC-channel
I enabled communication between parent and child process in order to send JSON as follows:
Child:
try {
var price1 = parseInt(process.argv[2]);
if (!price1) {
throw new Error('Price in calculations.js undefined');
}
var result = {
…

Kiechlus
- 1,167
- 12
- 21
7
votes
1 answer
Go subprocess communication
GO: Is there some way to communicate with a subprocess (shell script / python script), which is waiting for input on stdin?
e.g. python script (subprocess)
import sys
while True:
sys.stdout.write('%s\n'%eval(sys.stdin.readline()))
In the go…

Palash Kumar
- 429
- 6
- 18
7
votes
4 answers
How can I send a message to a specific process by process id rather than by window handle?
To work around the limitations of GenerateConsoleCtrlEvent, I have to create an intermediate "middle-man" process to handle launching some console applications. The process's main purpose is to call GenerateConsoleCtrlEvent on itself, causing…

Triynko
- 18,766
- 21
- 107
- 173
7
votes
4 answers
How to exchange data between two process?
Possible Duplicate:
IPC Mechanisms in C# - Usage and Best Practices
I have two diffenent process: A and B.
The process A wants to send to the process B some data (array of bytes, strings, structures, etc...). So suppose A need to send the…

Nick
- 10,309
- 21
- 97
- 201
7
votes
2 answers
Are function callback and interprocess communication are same?
Few days back, in an interview one question was asked to me as,
Are function callback in C and interprocess communication are same?
I was bit neutral in that question.Because I was in a dilemma. In IPC we communicate between process to process at…

Rasmi Ranjan Nayak
- 11,510
- 29
- 82
- 122
6
votes
6 answers
OS-independent Inter-program communication between Python and C
I have very little idea what I'm doing here, I've never done anything like this before, but a friend and I are writing competing chess programs and they need to be able to communicate to each other.
He'll be writing mainly in C, the bulk of mine…

Samizdis
- 1,591
- 1
- 17
- 33
6
votes
2 answers
Inter-Process communication options
I need to subscribe inside one app for the event exposed by another app.
I noticed that many people consider the using of WCF Named Pipes as the best practice.
Am I right that if I choose WCF Named Pipes I'll have to use IIS?
And by the way, what…

EngineerSpock
- 2,575
- 4
- 35
- 57
5
votes
1 answer
Matlab and .NET 4.0 data communication
I have an algorithm implemented in Matlab and I'm planning to deploy it as a DLL for integration with a .NET project. The .NET project is a GUI based application a small part of which consists of displaying the results obtained from running the…

filipcampeanu
- 159
- 1
- 9
5
votes
1 answer
PInvoke PostMessage not working across user accounts
I'm building a kill switch into my application so that only one instance can run at a time on a single computer. I'm accomplishing this by posting messages between the process of the running application and the process of the new instance of the…

flamebaud
- 978
- 1
- 9
- 26
5
votes
2 answers
Passing data between Python and C# without writing a file
I would like to pass binary information between Python and C#. I would assume that you can open a standard in/out channel and read and write to that like a file, but there are a lot of moving parts, and I don't know C# too well. I want to do this…

horriblyUnpythonic
- 853
- 2
- 14
- 34
5
votes
1 answer
Viewing messages being sent over ALPC Port?
I am trying to figure out the messages being used on a specific ALPC port in Windows 7, and since it doesn't seem like there is any place where the ports messages are documented only the actual ports themselves, I would like to listen in to certain…

user1632018
- 2,485
- 10
- 52
- 87
5
votes
1 answer
How to interact with Running Python Script
While my main script is running
class Blah():
update=0
def testthings(function):
return function(9)
main = Blah()
while True:
main.update+=1
How can I run an independent script to have access to the 'main variable' (defined in…

High schooler
- 1,682
- 3
- 30
- 46
5
votes
2 answers
powershell multi-runspace event passing
I've been searching for a way to pass events between different runspaces and yet have not found any. The following snipped creates a background runspace, which shows a small window with only one button. OnClick it shall post an event that the main…

exomium
- 53
- 1
- 4
5
votes
2 answers
Executing an in memory jar
Suppose I have a java process that is receiving a runnable jar file from a trusted process in the form of a byte [], is there a way to invoke it without having to write the jar file to disk and then invoke it(start a new process that is running the…

shawn
- 4,063
- 7
- 37
- 54
5
votes
2 answers
How do I ensure only my program can access a named pipe?
I planning to split my program to 2 processes: 1st is the GUI, and 2nd is a background process running with administrator account. Both should communicate each other.
I thinking about use named pipes for this, but there is one thing that bothering…

DxCK
- 4,402
- 7
- 50
- 89