* Which way could guarantee more precise delay?'rt_task_sleep' or 'rt_task_wait_period'?
@ 2020-05-17 5:51 孙世龙
2020-05-18 9:02 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: 孙世龙 @ 2020-05-17 5:51 UTC (permalink / raw)
To: xenomai
Hi,
I need to run a simpe routline periodically.For example,
the routline needs to run every 1ms.
Which way could guarantee more precise delay?'rt_task_sleep' or
'rt_task_wait_period'?
If there is a better solution,please let me know.
Thank you for attention to this matter.
Look forward to hearing from you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Which way could guarantee more precise delay?'rt_task_sleep' or 'rt_task_wait_period'?
2020-05-17 5:51 Which way could guarantee more precise delay?'rt_task_sleep' or 'rt_task_wait_period'? 孙世龙
@ 2020-05-18 9:02 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2020-05-18 9:02 UTC (permalink / raw)
To: 孙世龙, xenomai
On 17.05.20 07:51, 孙世龙 via Xenomai wrote:
> Hi,
> I need to run a simpe routline periodically.For example,
> the routline needs to run every 1ms.
>
> Which way could guarantee more precise delay?'rt_task_sleep' or
> 'rt_task_wait_period'?
>
> If there is a better solution,please let me know.
>
> Thank you for attention to this matter.
> Look forward to hearing from you.
>
Both will give you same accuracy as both are built on the same
mechanisms in the core - provided you use rt_task_sleep with absolute
timeouts.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-18 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17 5:51 Which way could guarantee more precise delay?'rt_task_sleep' or 'rt_task_wait_period'? 孙世龙
2020-05-18 9:02 ` Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.