Questions tagged [ipc]

IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.

In computing, Inter-process communication (IPC) is a set of methods for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC methods are divided into methods for:

  • message passing
  • synchronization
  • shared memory, and
  • remote procedure calls (RPC).

The method of IPC used may vary based on the bandwidth and latency of communication between the threads, and the type of data being communicated.

There are several reasons for providing an environment that allows process cooperation:

  • Information sharing
  • Speedup
  • Modularity
  • Convenience
  • Privilege separation

IPC may also be referred to as inter-thread communication and inter-application communication.

The combination of IPC with the address space concept is the foundation for address space independence/isolation.

4538 questions
2
votes
1 answer

Named Pipe Not connecting when being called from NamedPipeClientStream

In IPC code if i get a handle from a named pipe by using the Win32 API by calling CreateFile everything works. If i do the same thing using the NamedPipeClientStream it does not want to connect. Working Version [DllImport("kernel32.dll")] internal…
56K
  • 37
  • 1
  • 6
2
votes
1 answer

How to keep a real-time data read-in loop separate from more processing intensive operations in Python?

So I have an OpenCV webcam feed that I'd like to read frames from as quickly as possible. Because of the Python GIL, the fastest rate at which my script could read in frames seems to be the following: #Parent or maybe client(?) script #initilize…
NJM
  • 565
  • 3
  • 13
2
votes
1 answer

Sending an arrow key with fprintf

I'm testing out pipes and have hit a little road block. I want to be able to simulate pressing the right arrow key through a file pointer opened by popen. The file pointer opens a display program on a different terminal, much like a projector. I…
Deanie
  • 2,316
  • 2
  • 19
  • 35
2
votes
2 answers

is it possible to share memory between PHP and C in Windows?

Can you use shared memory between a PHP script and a C/C++ program in Windows? For instance, by using PHP shared memory (link) and windows memory mapped files?
AGB86
  • 21
  • 2
2
votes
0 answers

IPC/RPC for communication between R and Python

Summary I'm looking for an IPC/RPC protocol which: Has libraries in both R and Python 2.7 which work on Windows Allows me to pass data and make calls between the two languages Does not embed one language inside the other (I want to use Python and R…
mchen
  • 9,808
  • 17
  • 72
  • 125
2
votes
0 answers

Android AIDL without Remote service

Is it possible to implement AIDL without the implementation of remote service? After some investigation of google play services I notice that some AIDL calls executed with the following way Obtain the remote context with the following way Context c…
Jurius
  • 316
  • 3
  • 9
2
votes
2 answers

Sending input to a running JAR via Java process

I want to write a program which executes JARs and gets their output. When the JAR program has only a print statement it works fine, but when it asks for input during execution, the program freezes. Code of the JAR file program: import…
Dhaval
  • 43
  • 5
2
votes
1 answer

Modifying the environment for a child process in Perl

I'm not sure why this isn't working, but perhaps I've oversimplified/overcomplicated things I'm writing a Perl script that ultimately needs to call an external program. The catch is, this program needs a modified version of the LD_LIBRARY_PATH…
mikb
  • 195
  • 13
2
votes
1 answer

Reading continuous data from a named pipe

I have been trying to read continuous data from a named pipe. But for some reason if I don't put a delay, the receiver will just stop reading and only a blank screen is shown after a few samples. I need to send continuous data that might change in…
Luis Cruz
  • 1,488
  • 3
  • 22
  • 50
2
votes
0 answers

Boost MPI, connect absolutely separate programs

I create two programs which must send each/other the messages. For sample: first program like audio 'Player' with playlist and second program like 'Visualizer'. I decide make Player and Visualizer as complete separate program because this programs…
Jarikus
  • 774
  • 8
  • 18
2
votes
1 answer

synchronization between processes using unnamed semaphores

In process-1 I am trying to write the data into shared memory. At the same time in process-2 I am reading the data from the same shared memory. in this case I need to provide synchronization between these two processes. if I will go through unnamed…
2
votes
2 answers

How to notify an application from windows service using WCF

I have a windows service that continuously read data from a serial port, from this service I'd like to be able to notify a WPF application with the updated data using WCF; I thought about using callbacks. The windows service would call a WCF…
mainvoid
  • 347
  • 1
  • 4
  • 17
2
votes
1 answer

Bidrectional node/python communication

I'm trying to implement simple bidirectional communication between node and a spawned Python process. Python: import sys for l in sys.stdin: print "got: %s" % l Node: var spawn = require('child_process').spawn; var child = spawn('python',…
Dan
  • 2,766
  • 3
  • 27
  • 28
2
votes
1 answer

IPC problem in the c# - ipc is already registered

I am trying to create two IPC channels IpcChannel ipcChannel = new IpcChannel("DroolsClient"); ChannelServices.RegisterChannel(ipcChannel, false); objec =…
Lilz
  • 4,013
  • 13
  • 61
  • 95
2
votes
1 answer

How to implement fire-and-forget messaging from one process to another?

At the click of a button a simple message is to be sent from one process to another, and the message would be just a simple command with string arguments, totaling something like 50 characters (definitely much less than 1k),…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156