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.

412 questions
4
votes
1 answer

Two-way communication with pipes

I need to create communication between parent and a forked child using pipes. The parent will send 0, the child will send back 1, the parent will reply 2, etc., until the counter reaches 5. Then both processes will terminate. I tried to implement…
David
  • 75
  • 1
  • 7
4
votes
1 answer

Python portable interprocess Semaphore/Event

I'm creating a website using Flask. My WSGI server, Gunicorn, spawns multiple processes. I have some cross-process objects (notably files) that I want to constrain access to within these processes, and raise events when they are modified. The choice…
c z
  • 7,726
  • 3
  • 46
  • 59
4
votes
2 answers

How to publish and subscribe the latest message correctly using pyzmq?

I have a process A that publishes a message constantly and processes B and C subscribe to the topic and get the latest message published by the publisher in process A. So, I set zmq.CONFLATE to both publisher and subscriber. However, I found that…
4
votes
2 answers

Communication between different C# based services

Is there a way to communicate between two different services? I have a service that already runs. Is there a way to create a second service that can attach to the first service and send and receive dates to it? I would also like to access the…
elisa
  • 743
  • 2
  • 13
  • 31
4
votes
3 answers

What is a Hardware Semaphore?

How can it be used from software if it is a hardware semaphore? Is it that there is a software API which is actually implemented in HW? I ask as I am implementing firmware to interface to some hardware. There is going to be a lot of information…
dubnde
  • 4,359
  • 9
  • 43
  • 63
4
votes
2 answers

How can I load the AIR runtime as a in-process shared library from a C program

I'd like to build a special AIR launcher program in C along the lines of java.exe. I've looked at running AIR programs with a process viewer and was able to locate the AIR runtime DLL that is being used. AIR programs are different than Java in that…
RogerV
  • 3,826
  • 4
  • 28
  • 32
4
votes
1 answer

std::unordered_map with boost::interprocess allocator in shared memory - drawbacks?

I'm right now getting into shared memory using boost::interprocess. I've defined a few std::unordered_map and std::unordered_set types like in the following manner: #include #include //…
EllipsenPark
  • 127
  • 9
4
votes
2 answers

boost::interprocess between Windows service and user application

I'm using boost::interprocess to communicates between two applications. When the two applications are launch by the same user, it works great. When one of the application is a service, it fails. I found that the shared media is in fact a file that…
Nicolas
  • 1,482
  • 2
  • 19
  • 35
4
votes
2 answers

Is communication between two ruby processes possible/easy?

If I have a ruby script Daemon that, as it's name implies, runs as a daemon, monitoring parts of the system and able to perform commands which require authentication, for example changing permissions, is there an easy way to have a second ruby…
Josh
  • 10,961
  • 11
  • 65
  • 108
4
votes
3 answers

How do you connect the keyboard and a named pipe to STDIN in Bash?

I'm trying to find a way to invoke an interactive command-line program so that it takes input both directly from the keyboard and also from a named pipe. My goal is to get this working with MATLAB, but I think Bash works just as well as an example.…
DGrady
  • 1,065
  • 1
  • 13
  • 23
4
votes
3 answers

How to close a program if is already open in Java

I'm writing this server, and I want to check if the same program is already running, if is running close the program. Say I run ServerA Then I run ServerB (which is the same server) I want to close ServerA so ServerB can run successfully.
Jose Lopez
  • 374
  • 1
  • 2
  • 11
4
votes
2 answers

Is there an 'upgrade_to_unique_lock' for boost::interprocess?

I am looking for the best way to effectively share chunks of data between two (or more) processes in a writer-biased reader/writer model. My current tests are with boost::interprocess. I have created some managed_shared_memory and am attempting to…
Courtney Christensen
  • 9,165
  • 5
  • 47
  • 56
4
votes
1 answer

Cross-process singleton object

This is a variation on another Q of mine. I have two applications, X and Y. They have to share a single COM object between them. X will be sending data to this object and Y will respond on events sent from this application. At any moment, X or Y…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
4
votes
1 answer

Use get_nowait() in python without raising empty exception

I have an inter-process queue that is usually empty and only once in a while does something appear in it. In one of my threads I want to define a while loop like this: def mythread(queue1): while (queue1.get_nowait() != 1): #do…
willpower2727
  • 769
  • 2
  • 8
  • 23
4
votes
2 answers

Talking to unmanaged process from .NET

I'm creating a process from .NET using Process.Start. The new process is a legacy app, written in C/C++. To communicate with it, I need to do the equivalent of PostThreadMessage to its primary thread. I'd be happy to use P/Invoke to call…
Bob A.
  • 41
  • 1