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
3
votes
2 answers
Use Mutex to synchronize C# object: issue with call to ReleaseMutex() in C# object destructor
I have an application code in which I use a mutex to synchronise some code during the creation of an object. The object constructor acquires the mutex and ONLY releases it when the object is no longer needed thus one place to release the mutex…

Kevin
- 515
- 4
- 11
- 22
3
votes
3 answers
Interprocess communication between C# and Python
I can understand that there has been a lot of questions on this topic but none of them could really solve my problem. So here I have presented my code, and I want my mistakes to be pointed out here.
I have a program written in C# which shall call a…

PRC_noob
- 74
- 1
- 5
3
votes
3 answers
How can I check that a WCF host is available before I use a channel from a client?
I am creating a windows service that starts a number of slave processes. In each of these slave process I start listening on a named pipe for message from the master process.
I currently have the situation where the master process calls a slave via…

Jeroen Huinink
- 1,947
- 3
- 17
- 31
2
votes
1 answer
Detecting process instances in Mac OS X
I'm trying to implement a way to detect whether another instance of an application has already been started, and have been tinkering with:
1. Shared memory
2. Named mutexes
3. Named pipes
Seems all of these have the flaw that if the "main"…

Robert
- 2,330
- 29
- 47
2
votes
3 answers
Architecture: How to serve multiple COM interfaces that access a shared resource
I have an architectural question. I have a project that is conceptually something like this:
This seems quite straightforward but there are wrinkles. Some background, by way of a partly fictitious example. This is an ASCOM driver which controls…

Tim Long
- 13,508
- 19
- 79
- 147
2
votes
1 answer
Best practice on docker golang main process communicate with python subprocess
I know that a best practice of using docker is to have only one main process in each container and only one CMD line running.
My case is I have a Golang micro service and the functionality are implemented in python subprocess. Currently the main…

BigTailWolf
- 1,028
- 6
- 17
2
votes
0 answers
Boost IPC - Is it safe to use a boost::variant of PODs in shared memory?
I would love to use boost variant with boost IPC shared memory. I'm aware that one should only use pointer free items in shared memory, so was wondering if its safe to use a boost variant as a data type for shared memory.
My understanding of boost…

Tom
- 1,235
- 9
- 22
2
votes
2 answers
Interprocess communication with a Win32 service
The ControlService API allows one send a control code to a Win32 service. However, what if I need to send (and receive) more than a control code? What is the best way to establish communication between a user-mode GUI Win32 application and a Win32…

Andrei Belogortseff
- 1,861
- 3
- 18
- 26
2
votes
4 answers
How can I post a Cocoa "sheet" on another program's window?
Using the Apple OS X Cocoa framework, how can I post a sheet (slide-down modal dialog) on the window of another process?
Edit: Clarified a bit:
My application is a Finder extension to do Subversion version control (http://scplugin.tigris.org/).…

jackr
- 1,407
- 1
- 14
- 29
2
votes
1 answer
Get the process id from a window handle without GetWindowThreadProcessId (c#.net 4.0)
Our application recently switched from .net 3.5 to .net 4. One issue that has cropped up is that GetWindowThreadProcessId no longer works.
Microsoft have a hotfix available, but it would be a pain to have to install that on every customer machine,…

Sugrue
- 3,629
- 5
- 35
- 53
2
votes
3 answers
Named pipes keep alive server
I'm creating a windows service that would communicate with another application. The problem I'm facing is that the NamedPipeServerStream closes as soon as the client disconnects. I want that the server should remain open, so whenever the client…

mrid
- 5,782
- 5
- 28
- 71
2
votes
1 answer
Communication between website and C++ program on same Linux PC
I have a website with forms, controls, etc. User inputs should be sent to a C++ program running on the same PC as the webserver (busybox httpd). On the other hand results of the C++ program should be sent back and displayed on the website.
I am a…

Reto
- 1,660
- 3
- 19
- 31
2
votes
1 answer
Segmentation fault (core dumped) when accessing shared process memory
I'm trying to have two child processes write two random integers to a shared memory, then have the parent read them.
I cant seem to validate the writing as I get a segmentation fault whenever I try to access an array element in the parent…

Hellowuvrld
- 87
- 5
2
votes
3 answers
Standalone FastCGI Process Manager
Is there such a thing as a smart standalone FastCGI process manager? I have my custom server in C++ which I am willing to connect to Apache/Nginx as a FastCGI application. Apache has mod_fcgid which offers some process management functionality, but…

Michael Pliskin
- 2,352
- 4
- 26
- 42
2
votes
1 answer
Creating n children each with their own pipe
I'm having trouble understanding pipe and fork, at least implementing it in practice. I would like to create n children each with their own pipe.
I thought of doing something like:
int main(void) {
int fd[2];
for (int i = 0; i < n; i++) {
…

Hugh N.
- 23
- 3