On Thu, Apr 21, 2022 at 8:21 AM Jae Hyun Park via Xenomai <[email protected]> wrote: > I have been used rt_task_create from Xenomai 2. > > In the Xenomai 3 cobalt example, it seemed to use only pthread_create.
It depends on the skin. rt_task_create is part of the native/alchemy skin. While pthread_create is part of the posix skin. Xenomai offers multiple interfaces to use realtime. > I'm not familiar to task, process and thread... > > I have several question belong to thread_create and rt_task_create. > > 1. does rt_task_create create a process(task) instead of creating a single > thread? No. See above. > 2. Is creating thread is better than using rt_task_create in Xenomai 3? I'm > wondering now we are not using rt_task_create. Depends. Many people prefer the posix skin because it feels familiar. > 3. Is there difference between xnthread and pthread? xnthread is Xenomai's internal kernel structure to represent a realtime thread. -- Thanks, //richard
