⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
takeuchi0304
Offline
Last seen:2 years 1 week 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:20 hours 55 min 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:2 years 1 week ago
Joined:2019-02-26 02:37
Thank you for the response!

Thank you for the response!