Skip to content

Interprocess Instrument Usage

Nate Bogdanowicz edited this page Oct 18, 2017 · 1 revision

It'd be nice to make it easier to use a given Instrument in multiple processes simultaneously, e.g. if you have a long-running process that reads from a sensor, but want another process to be able to jump in and take control temporarily.

The language of mutexes and locks may be the way to talk about this, but we'd need to make them work across processes instead of just threads. Python's multiprocessing package may work for us here. Otherwise, we may need some kind of store that is accessible across processes, which is used to coordinate which process currently has control over a given instrument.

Clone this wiki locally