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
11
votes
1 answer
Do I have to close inherited handle later owned by child process?
Microsoft played safe here. In their article, "Creating a Child Process with Redirected Input and Output", they are saying:
The remaining open handles are cleaned up when this process terminates.
To avoid resource leaks in a larger application,…

GSerg
- 76,472
- 17
- 159
- 346
11
votes
1 answer
Object Sharing between Applications?
Let's say I have a large data array updated 1000+ times per second.
Another application wants to access and read the array in a short interval. Both applications are on the same machine.
I have tried using WCF for interprocess communication, but…

brandon
- 555
- 1
- 6
- 15
10
votes
5 answers
Java TCP/IP Socket Latency - stuck at 50 μs (microseconds)? (used for Java IPC)
We have been profiling and profiling our application to get reduce latency as much as possible. Our application consists of 3 separate Java processes, all running on the same server, which are passing messages to each other over TCP/IP sockets.
We…

Sam Goldberg
- 6,711
- 8
- 52
- 85
10
votes
3 answers
Should sockets be kept open or torn down
Possible Duplicate:
Should I close a socket (TCPIP) after every transaction?
Lets say I have some type of interprocess communication that works using sockets.
Should my processes establish a connection and hold it open (1 thread per client or…

Maxim Gershkovich
- 45,951
- 44
- 147
- 243
10
votes
4 answers
File Locking vs. Semaphores
Just out of curiosity, what is the preferred way to achieve interprocess synchronization on Linux? The sem*(2) family of system calls seem to have a very clunky and dated interface, while there are three ways to lock files - fcntl(), flock() and…

Blagovest Buyukliev
- 42,498
- 14
- 94
- 130
9
votes
4 answers
boost interprocess named mutex remains acquired after a crash
I am using a boost::interpocess::scoped_lock using a named_mutex and a timeout; I am running in Linux OS.
During one of my tests I had a crash: since then, everytime I try to run again the application, it gets stuck on the point where I created the…

Abruzzo Forte e Gentile
- 14,423
- 28
- 99
- 173
9
votes
3 answers
Boost named_mutex and remove() command
I have a class which can be created by multiple threads. But at one function the code needs to be protected, so I decided to use the boost interprocess mutex. Every class creates or opens the same Mutex in it's constructor:
MyClass::MyClass()
{
…

Toby
- 3,815
- 14
- 51
- 67
9
votes
1 answer
Trouble with boost::lockfree::queue in shared memory (boost 1.53, gcc 4.7.2 / clang 3.0-6ubuntu3)
I have a problem with placing boost::lockfree::queue<, ..>
in shared memory. I need it because I have to be able to insert more than 65535 messages into the queue, and fixed_sized queue is limited with 65535.
The following code…

uppi
- 300
- 2
- 11
9
votes
3 answers
Create a locked file with boost::interprocess::file_lock
I'd like to use boost::interprocess::file_lock to ensure that files that are written to a directory x by process P1 are not read by process P2 until they are complete. To do this, I'd like to have P1 lock the files with…

Edward Loper
- 15,374
- 7
- 43
- 52
8
votes
2 answers
lock freedom/atomic operations across 2 processes instead of threads
I am sharing some data across multiple processes by using shared memory; I use inter processes mutexes to achieve synchronization.
My question is the following: is it possible to use lock-free data structures AND/OR atomic operations to achieve…

Abruzzo Forte e Gentile
- 14,423
- 28
- 99
- 173
8
votes
1 answer
Is it possible to create a Queue on Database rows?
Right now I am trying to create a process, where I want to insert data in table and some observers will get notified and able to edit the data upon their interest. Below is a rough idea on how to do it. Can anyone please suggest the model/arch how I…

Nama
- 288
- 1
- 5
- 22
8
votes
2 answers
Boost Message Queue not based on POSIX message queue? Impossible to select(2)?
I thought I'd use Boost.Interprocess's Message Queue in place of sockets for communication within one host. But after digging into it, it seems that this library for some reason eschews the POSIX message queue facility (which my Linux system…

John Zwinck
- 239,568
- 38
- 324
- 436
8
votes
1 answer
Inter-process and inter-server event emitter/listener for Node.js?
At the moment, I am using EventEmitter2 as a message bus inside my application, and I really like it.
Anyway, now I need a message bus which does not only work in-process, but also inter-process. My ideal candidate would …
… be API-compatible to…

Golo Roden
- 140,679
- 96
- 298
- 425
7
votes
1 answer
boost::interprocess memory allocator on anonymous segment
I'm trying to use an mmap-like segment to allocate objects on stl containers, for that I'm using boost::interprocess which provides with memory mappings, allocators and anonymous memory mapping support.
A bit like this
My problem is that the…

Arkaitz Jimenez
- 22,500
- 11
- 75
- 105
7
votes
1 answer
boost::interprocess::scoped_lock application crash inside lock
I'm using boost::interprocess::scoped_lock, if the application crash for some reason inside the scope the mutex isn't released.
Next time the application is executed (without restarting the computer), the mutex is locked.
How's this intended to…

thenail
- 438
- 1
- 5
- 10