mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: How to make a kernel thread sleep for a short amount of time?
Date: Thu, 4 Jul 2002 23:36:52 +0200	[thread overview]
Message-ID: <20020704213652.GA24947@outpost.ds9a.nl> (raw)
In-Reply-To: <3D24BC95.3030006@candelatech.com>

On Thu, Jul 04, 2002 at 02:22:29PM -0700, Ben Greear wrote:

> I believe the answer may be to use some sort of timer and have my
> thread sleep on this timer, but I cannot find any examples or
> documentation on how to do this on the web.

The only generally available timer is the timer interrupt, sadly, which
ticks once every 10ms (or soon once every ms, according to Linus' bitkeeper
tree) on i386.

At OLS I was told of the existence of 'firm timers':
http://www.cse.ogi.edu/~luca/firm.html

These might have use in the shaping world too.

Regards,

bert hubert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

  reply	other threads:[~2002-07-04 21:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-04 21:22 Ben Greear
2002-07-04 21:36 ` bert hubert [this message]
2002-07-18 14:39 ` Corey Minyard

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=20020704213652.GA24947@outpost.ds9a.nl \
    --to=ahu@ds9a.nl \
    --cc=greearb@candelatech.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome