2 years ago
#29927
oak
How to signal between process/containers in cpp in efficient way?
Background:
We have a clock
process which needs to signal
other non child processes[cpp code] on each clock tick. Each of the process lives in its on container
(containerd
).
Besides doing brute force
of scanning a shared memory on a change(which is very bad in terms of computing resource). Any other effective ways for a near real-time system
to send a signal for other processes?
Desired behavior:
- Make all process to sleep for a time x or until they received a
tick
single from the mainclock
- The latency of each process should be small, less than a milisecond.
Questions:
Is it possible to wait_event_interruptible_timeout
in the userspace
. Will it help for the scenario above? Any other solution ?
c++
ubuntu
real-time
real-time-clock
0 Answers
Your Answer