Tayfur Well-Known Member Licensed User Longtime User Jun 23, 2019 #1 I seen on web about dualcore programing ESP32. https://randomnerdtutorials.com/esp32-dual-core-arduino-ide/ Do you have any library or tutorials for B4R
I seen on web about dualcore programing ESP32. https://randomnerdtutorials.com/esp32-dual-core-arduino-ide/ Do you have any library or tutorials for B4R
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2019 #2 An ESP32 program running on a single core is very fast (1750 loops per milliseconds). Performance will not be an issue with ESP32. The example in that link shows an incorrect solution for a common bad practice. The correct solution is to avoid using Delay to control the program flow. It is explained here: https://www.b4x.com/android/forum/threads/timers-loopers-and-callsubplus.65989/#content Upvote 0
An ESP32 program running on a single core is very fast (1750 loops per milliseconds). Performance will not be an issue with ESP32. The example in that link shows an incorrect solution for a common bad practice. The correct solution is to avoid using Delay to control the program flow. It is explained here: https://www.b4x.com/android/forum/threads/timers-loopers-and-callsubplus.65989/#content
Tayfur Well-Known Member Licensed User Longtime User Jun 23, 2019 #3 Erel said: An ESP32 program running on a single core is very fast (1750 loops per milliseconds). Performance will not be an issue with ESP32. The example in that link shows an incorrect solution for a common bad practice. The correct solution is to avoid using Delay to control the program flow. It is explained here: https://www.b4x.com/android/forum/threads/timers-loopers-and-callsubplus.65989/#content Click to expand... In fact, my question was not about speed. You're right, esp32 is fast enough, your sample is greate. if i want to (without performansce issue) web server and similar web processes set loop 1 (core-1). define other input and output processes set loop 2 (core-2). can we do it? This is an interesting issue, considering that all the boards in the future will be multi-core. Upvote 0
Erel said: An ESP32 program running on a single core is very fast (1750 loops per milliseconds). Performance will not be an issue with ESP32. The example in that link shows an incorrect solution for a common bad practice. The correct solution is to avoid using Delay to control the program flow. It is explained here: https://www.b4x.com/android/forum/threads/timers-loopers-and-callsubplus.65989/#content Click to expand... In fact, my question was not about speed. You're right, esp32 is fast enough, your sample is greate. if i want to (without performansce issue) web server and similar web processes set loop 1 (core-1). define other input and output processes set loop 2 (core-2). can we do it? This is an interesting issue, considering that all the boards in the future will be multi-core.
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2019 #4 Tayfur said: can we do it? Click to expand... Yes. You don't need two cores for this. This is exactly the purpose of AsyncStreams. Upvote 0
Tayfur said: can we do it? Click to expand... Yes. You don't need two cores for this. This is exactly the purpose of AsyncStreams.
Tayfur Well-Known Member Licensed User Longtime User Jun 24, 2019 #5 Erel said: Yes. You don't need two cores for this. This is exactly the purpose of AsyncStreams. Click to expand... Thanks. I hope you will publish a tutorial for dual core. Upvote 0
Erel said: Yes. You don't need two cores for this. This is exactly the purpose of AsyncStreams. Click to expand... Thanks. I hope you will publish a tutorial for dual core.