I have a thread that prints a counter. I also print another counter in the main loop. It works fine.
When a pin interrupt starts, my thread pauses until the interrupt handler code finished. is this normal?
Multithreading problem
Re: Multithreading problem
Even though the ESP32 is dual-core, MicroPython only uses one of the cores.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Multithreading problem
Also interrupt handlers should be designed to execute fast so that they don't block other interrupts. See the docs.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.