Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

MicroPython • Re: Multithreads problems.

$
0
0
This is my problem: how do I assign core0 to thread1 and core1 to thread2?
You use the '_thread' module as you presumably did initially. There is no other way to run two MicroPython threads on separate cores. Unfortunately, though better than it was, MicroPython dual-core operation remains buggy as you have discovered.

It is possible to run MicroPython code and have C code run on the second core but how feasible that is will depend on what you need to do within that C code, how MicroPython needs to interact with it.

Other than that you'll have to find a design which allows everything to run in a single thread on a single core.

Statistics: Posted by hippy — Tue Jul 09, 2024 10:29 am



Viewing all articles
Browse latest Browse all 8051

Trending Articles