From: Jan Kiszka <jan.kiszka@siemens.com>
To: 孙世龙 <sunshilong369@gmail.com>, xenomai <xenomai@xenomai.org>
Subject: Re: Which way could guarantee more precise delay?'rt_task_sleep' or 'rt_task_wait_period'?
Date: Mon, 18 May 2020 11:02:57 +0200 [thread overview]
Message-ID: <8c5646e8-8dd1-13a3-85a6-29595857b7cd@siemens.com> (raw)
In-Reply-To: <CAAvDm6YKsKHNZ8+wTmYNTE6_67MQ8MhxvM9Z-_ockETQb5GHeA@mail.gmail.com>
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
prev parent reply other threads:[~2020-05-18 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c5646e8-8dd1-13a3-85a6-29595857b7cd@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=sunshilong369@gmail.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.