Difference between rt_task, pthread and xnthread in Xenomai 3
Hi,
I have been used rt_task_create from Xenomai 2.
In the Xenomai 3 cobalt example, it seemed to use only pthread_create.
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?
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.
3. Is there difference between xnthread and pthread?
Thanks.
Quoted 3 lines · Jae Hyun Park via Xenomai
I have been used
rt_task_createfrom 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.
Quoted 5 lines
I'm not familiar to task, process and thread...
I have several question belong to
thread_createandrt_task_create.1. does
rt_task_createcreate a process(task) instead of creating a single thread?
No. See above.
Quoted 1 line
2. Is creating thread is better than using
rt_task_createin Xenomai 3? I'm wondering now we are not usingrt_task_create.
Depends. Many people prefer the posix skin because it feels familiar.
Quoted 1 line
3. Is there difference between xnthread and pthread?
xnthread is Xenomai's internal kernel structure to represent a realtime thread.
Signature · 2 lines
Thanks, //richard
Quoted 17 lines
Quoted 3 lines
I have been used
rt_task_createfrom Xenomai 2.In the Xenomai 3 cobalt example, it seemed to use only
pthread_create.It depends on the skin.
rt_task_createis part of the native/alchemy skin. Whilepthread_createis part of the posix skin.Xenomai offers multiple interfaces to use realtime.
Quoted 4 lines
I'm not familiar to task, process and thread...
I have several question belong to
thread_createandrt_task_create.1. does
rt_task_createcreate a process(task) instead of creating a single thread?No. See above.
Quoted 11 lines
Quoted 1 line
2. Is creating thread is better than using
rt_task_createin Xenomai 3? I'm wondering now we are not usingrt_task_create.Depends. Many people prefer the posix skin because it feels familiar.
Quoted 1 line
3. Is there difference between xnthread and pthread?
xnthread is Xenomai's internal kernel structure to represent a realtime thread.
Quoted 1 line
Thanks,
//richard
--
Thanks for responding.
Then can I understand that tasks made with rt_task_create work similarly to multi-threading?
And I wonder if there is any difference in real-time guarantee performance between pthread
of posix skin and xnthread of realtime thread of xenomai.
Quoted 5 lines · Jae Hyun Park
Then can I understand that tasks made with
rt_task_creatework similarly to multi-threading?And I wonder if there is any difference in real-time guarantee performance between pthread
of posix skin and xnthread of realtime thread of xenomai.
Skins are implemented in user space, so there shouldn't be a difference.
Quoted 1 line
From the kernel point of view they are all threads.
Signature · 2 lines
Thanks, //richard