Questions tagged [interprocess]

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.

389 questions
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
  • 508
  • 1
  • 6
  • 15
10
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
  • 71,102
  • 17
  • 141
  • 299
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,474
  • 7
  • 43
  • 79
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
  • 42,124
  • 39
  • 134
  • 227
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,575
  • 12
  • 43
  • 64
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
  • 305
  • 2
  • 11
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
  • 13,055
  • 24
  • 87
  • 163
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
  • 210
  • 1
  • 5
  • 21
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
  • 207,363
  • 31
  • 261
  • 371
8
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
  • 39,704
  • 12
  • 88
  • 124
7
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…
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
  • 20,424
  • 9
  • 68
  • 99
7
votes
3 answers

In-Proc COM object sharing across another Process

Before I ask this question I would like to make it clear that I know there are libraries and techniques for Inter process communcation. This though, is a learning question about COM. I also do know about out-of-proc servers but that's not what I am…
ActiveX
  • 913
  • 13
  • 31
7
votes
3 answers

Snoop interprocess communications

Has anyone tried to create a log file of interprocess communications? Could someone give me a little advice on the best way to achieve this?
Patrick
  • 71
  • 1
7
votes
2 answers

Equivalent of Windows's named mutex in Mac OS X?

Currently I'm porting a software from Windows to Mac OS X in C++. In Windows, there's an abandoned state in global named mutex which means that current owner process of the mutex is gone without releasing the mutex. (It will likely be caused by…
Aki24x
  • 998
  • 1
  • 11
  • 26
1
2
3
25 26