Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Multi threading
-
Is multi-threading possible in SDK-CLI as it has to be written in C language?
can we use pthreads library for multiple threads -
Hi, @Chandasri-G
Yes, multi-threading is possible using SDK-CLI. You can use asymmetrical (ASMP) or symmetrical (SMP) multiprocessing.@KamilTomaszewski gave a very good answer about multiprocessing in Spresense in the Questions regarding Multiprocessing topic.
Please refer to it to read further details.You can use the pthreads library when using SMP (symmetric multiprocessing). SMP is controlled by Nuttx, so you just have to enable it and assign how many cores you want to allocate for it.
Let me know if I can help you any further.