Open
Description
While polling is fine for many apps, I need to wake up fast on status changes. My waiting thread is running at high priority for a fast wakeup, and I don't want it eating CPU usable for other threads. Any suggestions on how to achieve that?
I'm considering using the SysEvent library which wraps the Windows Event object. For Linux, I'd probably use a condition variable, but I don't know if those are available between processes.
In Python it looks like multiprocess.connection.wait() can be used to wait for a Windows Event or for a posix object suitable for select().
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.connection.wait
Metadata
Metadata
Assignees
Labels
No labels