- Добавил: literator
- Дата: 20-12-2022, 03:49
- Комментариев: 0
Название: Workers-Framework: A simpler way to MultiTask in MicroPython
Автор: Sharil Tumin
Издательство: Leanpub
Год: 2022-12-04
Страниц: 257
Язык: английский
Формат: pdf (true)
Размер: 10.2 MB
Multitasking with Micropython. Cooperative Scheduling. In your hands is a book titled, Workers-Framework: A simpler way to MultiTask in MicroPython. I discovered an easier way to multitask on microcontrollers by using the high-level language MicroPython. Yes, really. The concept is to run all of the tasks defned in a program on multiple workers at the same time. It’s less complicated than using _thread or asyncio. The Worker module is so simple that calling it a framework seems a little pretentious. A framework, on the other hand, is a set of data and program structure in which tasks are performed and successfully completed. A framework typically compels developers to solve specific problems in a specific way. A framework, in a sense, creates a mindset for the programming problems at hand and how to solve them. As you may be aware, MicroPython is not the same as regular Python on a PC. You cannot simply import Python libraries, such as import threading, and expect them to work. If you’re expecting that, you’ll be sorely disappointed. In this regard, MicroPython is inferior to Python. In MicroPython, however, you can import machine but not in regular Python. If you work with microcontrollers, MicroPython is unquestionably the best high-level programming environment available.
Автор: Sharil Tumin
Издательство: Leanpub
Год: 2022-12-04
Страниц: 257
Язык: английский
Формат: pdf (true)
Размер: 10.2 MB
Multitasking with Micropython. Cooperative Scheduling. In your hands is a book titled, Workers-Framework: A simpler way to MultiTask in MicroPython. I discovered an easier way to multitask on microcontrollers by using the high-level language MicroPython. Yes, really. The concept is to run all of the tasks defned in a program on multiple workers at the same time. It’s less complicated than using _thread or asyncio. The Worker module is so simple that calling it a framework seems a little pretentious. A framework, on the other hand, is a set of data and program structure in which tasks are performed and successfully completed. A framework typically compels developers to solve specific problems in a specific way. A framework, in a sense, creates a mindset for the programming problems at hand and how to solve them. As you may be aware, MicroPython is not the same as regular Python on a PC. You cannot simply import Python libraries, such as import threading, and expect them to work. If you’re expecting that, you’ll be sorely disappointed. In this regard, MicroPython is inferior to Python. In MicroPython, however, you can import machine but not in regular Python. If you work with microcontrollers, MicroPython is unquestionably the best high-level programming environment available.