02.08.2024, 09:25
Using timerfd + select should provide the lowest CPU load because the process is in a sleeping state until a telegrams arrives or the timer expires.
For scheduled timers I don't see why localbus is needed. You can simply read the defined timer values from objects and run the required actions as needed. Using os.sleep() should be enough for such tasks.
Use localbus when timer is tied to a certain user action and a quick reaction is needed.
For scheduled timers I don't see why localbus is needed. You can simply read the defined timer values from objects and run the required actions as needed. Using os.sleep() should be enough for such tasks.
Use localbus when timer is tied to a certain user action and a quick reaction is needed.