Concurrency

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
nptech
Posts: 4
Joined: Sun Jun 20, 2021 5:21 am

Concurrency

Post by nptech » Wed Jun 23, 2021 10:13 am

Uasyncio looks ok to learn,
Is there a micropython esp-idf library access to RTOS and would this be much of an advantage to yasyncio??

Cant find any info on esp32 micropython rtos so far...

nptech
Posts: 4
Joined: Sun Jun 20, 2021 5:21 am

Re: Concurrency

Post by nptech » Thu Jun 24, 2021 1:28 am

I think iv misunderstood the point,

MicroPython is an interpreter running under rtos so calling rtos would serve no purpose

Whereas arduino or lua are compile time languages, and can call rtos due to there result more or less being bare metal machine code.

So if I want concurrancy in micropython I ise uasyncio or do my best to avoid blocking code eg use interrupts...


Anyone care to comment Micropython / Micro's and concurrancy...

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Concurrency

Post by pythoncoder » Thu Jun 24, 2021 3:55 am

See this section in my uasyncio tutorial.
Peter Hinch
Index to my micropython libraries.

Post Reply