Multiple python processes for the BrickPi


Is it possible to run 2 separate python files, one is to read sensor and the other is to write motor?

When I run it, it shows OSError: [Errno 11] Resource temporarily unavailable

Hi @panjinb,

You haven’t told us what is the BrickPi you’re using.

Anyhow, it’s not recommended to run multiple python processes at the same time on any of the 3 BrickPis (that we’ve commercialized) as they weren’t developed for such a thing.
So, what we’re suggesting is to use one process at a time on a Raspberry Pi.

If you do need multiple lines of execution, then I’m happy to tell you that the BrickPi3 is thread-safe, so you can run multiple threads within a single python process.
But it may not be okay to run multiple processes at the same time as conflicts like the one you’ve encountered can appear.

If you consider the topic solved, can we close the thread?

Thank you!