_thread on RP2040 port not support more than 1 thread. #11867
Replies: 3 comments 3 replies
-
That's intentional. The Pico port supports 1 thread per core. On the pro side this means, both threads run at full CPU speed. |
Beta Was this translation helpful? Give feedback.
-
The ESP32 allow many threads. I see this question often in support forums for RPi. |
Beta Was this translation helpful? Give feedback.
-
Yes. On the ESP32 (likewise on ESP8266) Micropython inherits the threading from the FreeRTOS. This does not need many CPU cores but uses time-slicing. The ESP32 has two cores, but currently only one is used for Micropython. See #8197. On the RPI Pico is no FreeRTOS. The threading is established as part of the MP port. You have the _thread library and can only use 1 other thread, except the current one. MP then runs in parallel on both cores. This is in a somewhat experimental state. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions