A capability supported by some operating systems that allows one process to communicate with another process. The processes can be running on the same computer or on different computers connected through a network. It enables one application to control another application, and for several applications to share the same data without interfering with one another.
Questions tagged [interprocess]
412 questions
4
votes
1 answer
1 producer, 1 consumer, only 1 piece of data to communicate, is queue an overkill?
This question is related to Python Multiprocessing. I am asking for a suitable interprocess communication data-structure for my specific scenario:
My scenario
I have one producer and one consumer.
The producer produces a single fairly small panda…

eliu
- 2,390
- 1
- 17
- 29
4
votes
7 answers
Is it possible to load a function into some allocated memory and run it from there?
I'm messing around with some interprocess communication stuff and I am curious if it's possible to copy a function into some shared memory and run it from there from either process.
Something like:
memcpy(shared_memory_address, &func, &func +…

Nick Strupat
- 4,928
- 4
- 44
- 56
4
votes
1 answer
Can I share cuda GPU device memory between host processes?
Is it possible to have two or more linux host processes that can access the same device memory?
I have two processes streaming high data rate between them and I don't want to bring the data back out of the GPU to the host in process A just to pass…

Mark Borgerding
- 8,117
- 4
- 30
- 51
4
votes
2 answers
Single instance of C++ program, using boost::interprocess
I have a console application which I am trying to make able to run just once at a time. I have used boost interprocess library shared_memory_object to do that. See the code snippet below,
boost::scoped_ptr sharedMem;
try
…

serhatg
- 312
- 1
- 3
- 15
4
votes
3 answers
shared C++ object through memory
I have a quick question for those familiar with inter-process communication.
Situation
I have a program (program A) which I can add some code to, but very limited. This is the main program that generate a lot of data.
The way the data is…

DaClan
- 329
- 2
- 15
4
votes
2 answers
Marshalling structs from WM_COPYDATA messages
I am trying to get a C# WPF application to communicate with another application written in C using WM_COPYDATA. The C app is trying to send a struct as follows:
typedef struct
{
int x;
int y;
char str[40];
double d;
char c;
}…

Phil
- 6,561
- 4
- 44
- 69
4
votes
3 answers
How can I make an interprocess data structure in Python?
I have a list (called requestRoster) containing dictionaries (called requests). Items in the 'requests' dictionary are things like 'requestTime' and 'thisURL'. E.g.:
[
{'thisURL': 'http://localhost/bikes', 'requestTime': datetime.datetime(2012,…

dave
- 572
- 7
- 16
4
votes
1 answer
Why boost::interprocess::managed_shared_ptr to non-const can not be converted to managed_shared_ptr to const
As I understand the following is valid for boost::shared_ptr:
boost::shared_ptr ptr;
...
boost::shared_ptr c_ptr = ptr; // Valid
The same behavior does not hold for boost::interprocess::managed_shared_ptr. Why?

topoden
- 111
- 1
- 5
4
votes
2 answers
Simplest python network messaging
I have a machine control system in Python that currently looks roughly like this
goal = GoalState()
while True:
current = get_current_state()
move_toward_goal(current,goal)
Now, I'm trying to add in the ability to control the machine over…

rprospero
- 913
- 11
- 26
4
votes
2 answers
Why cant a pipe created using pipe() be used as a bi-directional pipe?
Almost all the pipe examples I've seen advice closing the unused write/read ends. Also man clearly states that pipe() creates a pipe, a unidirectional data channel But I've tried reading and writing to both ends of the pipe in both the parent and…

Pavan Manjunath
- 27,404
- 12
- 99
- 125
3
votes
3 answers
How can I prevent the parent from blocking when writing to a child?
Recently I had a problem using (pipe |-) when I wanted to communicate between two processes.
Basically, the child process couldn't process STDIN as fast as it was filled up by parent. This caused parent to wait until STDIN was free and made it run…

Omid
- 160
- 2
- 9
3
votes
1 answer
c# .net memory mapped files across machines
I was wondering if it is possible to access a memory mapped file (c#, .net) from a foreign machine? My instinct tells me "no" but I want to make sure.
I'm looking for an IPC mechanism that is guaranteed to only function on the same computer. WCF…

mj_
- 6,297
- 7
- 40
- 80
3
votes
0 answers
Boost::interprocess: cannot handle interprocess_exception with managed_shared_memory
I've the following piece of code
try
{
// Vector creation in shared memory. The shm must exist.
m_pxShm = new managed_shared_memory(open_only, pcShmName);
m_pxShm->construct(pcVecName)[iSize](); // THROW EXCEPTION <==
…

Jepessen
- 11,744
- 14
- 82
- 149
3
votes
3 answers
PHP async process communication
Is there a way to achieve inter-process (or threading) communication in PHP, but still keep everything run asynchronous?
I want to have a script that creates 4 processes and then terminates immediately. Each of the 4 processes should do an action…

Eduard Luca
- 6,514
- 16
- 85
- 137
3
votes
2 answers
interprocess::named_upgradable_mutex - remains locked if process is killed
I'm using boost::interprocess::named_upgradable_mutex to synchronize a few processes.
I'm using boost::interprocess::sharable_lock and boost::interprocess::scoped_lock to lock the mutex.
When testing the synchronization, it looks fine as long as the…

Yochai Timmer
- 48,127
- 24
- 147
- 185