Learn MoreFAQsTutorials

3 posts / 0 new
Last post
takeuchi0304
Offline
Last seen:1 year 10 months ago
Joined:2019-02-26 02:37
Multithreading

Hi Dialog,

Is there any way to create new thread and execute concurrently with main looper?

We need to observe events sent from external host via UART, so we want API like `pthread_create`.

If I understand correctly, `ke_task_create` can create a new task internally, but there is no way to execute any functions on it.

Thanks in advance.

Device:
PM_Dialog
Offline
Last seen:55 min 29 sec ago
Staff
Joined:2018-02-08 11:03
Hi takeuchi0304,

Hi takeuchi0304,

不支持多线程,所以你不能have one other thread running in parallel with the main loop. The core of the kernel is a scheduler running in the main loop of the application. Please check section 5 Real Time Kernel of theUM-B-079 DA14585 & DA14586 Software Platform Reference (SDK 6.0.8)user manual for getting more information.

Thanks, PM_Dialog

takeuchi0304
Offline
Last seen:1 year 10 months ago
Joined:2019-02-26 02:37
Thank you for the response!

Thank you for the response!