All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: mark manning <mark.manning@fastermail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: nanosleep
Date: 10 Apr 2002 01:57:16 -0400	[thread overview]
Message-ID: <1018418240.908.225.camel@phantasy> (raw)
In-Reply-To: <20020410044156.2881.qmail@fastermail.com>

On Wed, 2002-04-10 at 00:41, mark manning wrote:

> thanx - how much of a difference should i expect - i know the syscall is
> asking for at least the required ammount but that the task switcher might
> not give me control back for a while after the requested delay but i was
> expecting to be a little closer to what i had asked for - this isnt critical
> of corse but i would like to know what to expect.

The minimum granularity of the timer is 1/HZ, which on a i386 is only
10ms.

If you want high-resolution timers, check out the high-res-timers
project at http://high-res-timers.sf.net/ - they implement POSIX timers
(which include a nanosleep call) with very high resolution (1/cpu
clock).

	Robert Love


  reply	other threads:[~2002-04-10  5:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10  4:41 nanosleep mark manning
2002-04-10  5:57 ` Robert Love [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-10  5:57 nanosleep mark manning
2002-04-10  6:01 ` nanosleep Robert Love
2002-04-13 21:53   ` nanosleep andrew may
2002-04-14 20:37     ` nanosleep H. Peter Anvin
2002-04-10  4:42 nanosleep mark manning
2002-04-10  5:47 ` nanosleep H. Peter Anvin
2002-04-10  3:22 nanosleep mark manning
2002-04-09 23:24 nanosleep mark manning

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=1018418240.908.225.camel@phantasy \
    --to=rml@tech9.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.manning@fastermail.com \
    /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.