2 ms·
The thing with threading in micropython is that you'll have to either rely on task priorities and cooperative yielding, or GIL, and both of them can be easy to
by seba_dos1 2y ago
The thing with threading in micropython is that you'll have to either rely on task priorities and cooperative yielding, or GIL, and both of them can be easy to shoot yourself in a foot with.
The CCCamp23's flow3rbadge also used micropython to implement its app framework st3m: https://flow3r.garden/ https://flow3r.garden/
- bArray 2y agoWe only have a few privileged tasks (scheduler, hardware, visible app). We ask that apps finish their processing within a certain time, otherwise we kill them [1]. Ideally we would have the ability to pause and restore them at will. Our system is not all dis-similar from flow3r it seems [2]. [1] https://docs.micropython.org/en/latest/library/_thread.html https://docs.micropython.org/en/latest/library/_thread.html [2] https://docs.flow3r.garden/app/guide/basics.html https://docs.flow3r.garden/app/guide/basics.html