Z
Z
Z0nd0R2013-02-03 10:14:57
linux
Z0nd0R, 2013-02-03 10:14:57

Communication between multiple running processes?

Good day!
There was a problem, there are several running processes:
One of them has user access (Process 1) - for example, the user presses a button.
The second process is also always running (Process 2) - But it constantly performs some tasks and you need to send commands from "process 1", for example:
- suspend,
- status (the result is returned),
- perform a third-party action (after the action has been completed response returned).
Well, for example, the third process, which also works all the time, it is independent and can send commands to both previous ones and receive a response from them and write it to the database.
Prompt how it is better to organize interaction between these processes.
Speed ​​and resources are critical.
Thanks for the replies.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Archet, 2013-02-03
@Archet

Sockets/named pipes not appropriate?

K
KEKSOV, 2013-02-03
@KEKSOV

There are a lot of options for IPC (Inter Process Communication), here they are exhaustively described in Russian.

I
ixSci, 2013-02-03
@ixSci

DBus, still

V
Vladimir, 2013-02-03
@noonv

+1 for UNIX sockets.

V
vsespb, 2013-02-03
@vsespb

Unix Sockets, only the third process communicating with the first is somehow not correct from the point of view of the client-server architecture.

T
tbd, 2013-02-04
@tbd

zeroMQ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question