I have two processes A and B. A and B need to communicate (bi-directionally) sometimes to transmit signals, messages, etc.
I did some basic IPC research available on Linux, such as semaphore, message queuing, dbus, etc.
Now I'm confused about deciding which one to use, can someone tell me which IPC is better to use for my application?
Thank you in advance
Edited: Application Development. (This is a built-in application)
Process A will monitor the temperature, speed calculation, etc. Process B will drive the engine by reading sensor values (numerical), etc. Sometimes I need to send a signal to process B, indicating that the maximum temperature has been reached, so stop the engine. Sometimes it is necessary to send data read from the sensor in process A to process B. Similarly, numerical data must be transmitted through the process. And I do it in ARM Architecture.
source share