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
0
votes
1 answer
Interprocess message queue with different types of messages
I'm trying to write (in Linux), a "Sender" and "Receiver" programs that can send/receive a few types of messages between them, using shared memory, and message_queue.
I decided to use boost/interprocess/ipc/message_queue as it looks like the best…

Yaniv G
- 307
- 4
- 11
0
votes
0 answers
Communication between all running processes of the same application
Is it possible to get HANDLES of all running processes of my application?
I need to send message to all currently running processes of my application. Every process may execute from a different location (folder/filename) and may be a different…

NoSkill
- 718
- 5
- 15
0
votes
1 answer
Boost.Interprocess crashes when destroy an object in a mpi process
I create a shm in parent process and then start mpiexec by system.
In these mpi booted processes, the shm is opened. It can find objects by find("name"), but when it tries destroy(name), there is an error.
void Foo::DumpInitialData()
{
…

Vonfry
- 365
- 2
- 16
0
votes
2 answers
Dynamically change allocation strategy in boost::vector and boost::matrix
In my new project i am building a data management module.I want to give a simple template storage type to upper layers like
template
class Data
{
public:
T getValue();
private:
boost::numeric::ublas::matrix data;
}
My aim is,…

Qubeuc
- 982
- 1
- 11
- 22
0
votes
0 answers
Generate 4 endless processes with fork and connect them with os.pipe() in Python
I want to generate four endless processes with fork which run simultaneously until I stop the program.
All four processes should communicate with os.pipe(), where process A continuously generate a random number and writes it into a pipe for process…

Crownen
- 13
- 3
0
votes
1 answer
c++ IPC Boost::Interprocess vector of classes containing map
I like to create a boost interprocess vector of classes containing maps.
The following code is based on the Container of Container and Creating Vectors in shared memory example, but I feel very overwhelmed by combining these two tutorials. I think…

schlumpel
- 174
- 1
- 8
0
votes
0 answers
Using multiple inter-process communication queues in C
I am trying to use multiple different message queues in C for communicating between different processes on Linux. I use systemd.
See my code below for one process. Why is it that msgid1 and msgid2 are the exact same value in this case?
Doesn't this…

Engineer999
- 3,683
- 6
- 33
- 71
0
votes
1 answer
Can you consume a NodeJS read stream from another process?
If I open a read stream in nodejs, can I then serve that up via the file system without actually writing a file to disk? So, that another application could specify "somefile.json" and then read the file as if it were a normal file?

Tutan Ramen
- 1,234
- 1
- 8
- 27
0
votes
1 answer
boost interprocess file_lock can't lock file it does not own
When I use boost file_lock to try to lock files it doesn't own with lock() or lock_sharable(), it throws an exception. Is there any way for it to lock a file owned by a different user so it can modify it safely (the modifying user has correct write…

user788171
- 16,753
- 40
- 98
- 125
0
votes
0 answers
Exchanging strings between C and Python code
I have a Python program for some application. And I have a C program for encrypting a string. The python program generates a string and I want to use the C program to encrypt it. I read a lot about interfacing between C and Python and it does not…

Arnab Ghosh
- 113
- 7
0
votes
1 answer
Apache process synchronization
The goal is to block an Apache httpd process until either 15 seconds or another process issues a SIGUSR1 signal. The process id of the blocked process is stored in a db that other processes can access. I am using pselect()/kill() functions to…

Andy
- 11
- 2
0
votes
0 answers
How to design a single background process that can be called multiple times independently?
I am writing for generic linux/unix systems and have an unusual use case for which the design of the program is not clear to me.
(FYI: for those not familiar with the unix mentality, sometimes called the Unix Philosophy, the idea is to provide…

Tyler Durden
- 11,156
- 9
- 64
- 126
0
votes
0 answers
How to access a variables of a file running in a thread in another file?
I can't import because it automatically makes the threaded file run and that stops the main file from running. I need to access a variable from the client file. I am writing this code for a robot and I really need to be able to access the variables…
0
votes
1 answer
Interprocess communication Unity3d python
I am trying to receive data from my python script using Processes (IPC). Is it some sort of method for reading dictionaries in Unity from python ??? i am using Processes because speed is critical in my situation.
Ideally i would like to send an…

cUser
- 392
- 8
- 25
0
votes
0 answers
Poor named pipe performance when redirecting stdout of child processes
This is almost the same question I asked here question but in that question I wanted to know is Ignoring stdout of child process, dangerous?
This question is part of the reason why I asked that question.
My Application
I have an application which…

WBuck
- 5,162
- 2
- 25
- 36