9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Devon H. O'Dell " <dodell@offmyserver.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] tsleep / timer questions
Date: Fri, 25 Mar 2005 21:23:49 +0100	[thread overview]
Message-ID: <20050325202349.GD93332@smp500.sitetronics.com> (raw)
In-Reply-To: <ee9e417a05032512122f63e7bd@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

On Fri, Mar 25, 2005 at 03:12:35PM -0500, Russ Cox wrote:
> It's in the portfns on sources:
> 
> x40=; 9fs sources
> x40=; 9p read sources/plan9/sys/src/9/port/portfns.h | grep addclock0
> Timer*		addclock0link(void (*)(void), int);
> x40=; 
> 
> and it's been that way as far back as the sources dump
> goes (2002).
> 
> Note that this is only a (relatively) recent addition to
> Plan 9; in Inferno there was no extra parameter.
> 
> Russ

Gah, I'm using the VMWare image at the moment -- it must be
terribly old. Thanks for pointing this out, and sorry I didn't
check this first.

Another (final, less important) question: what is the general
resolution of tsleep versus addclock0link going to be? Precision
isn't 100% important; the watchdog operates on a crystal that
guarantees that it will not fire before the timer runs out (and
averages about 30ms latency), but between the choice of running
this with addclock0link using the extra parameter and using a
kproc with tsleep, which would be recommended?

Thanks a lot!

--Devon

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2005-03-25 20:23 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 15:08 Fwd: [9fans] Ad link Brantley Coile
2005-03-24 15:54 ` Ronald G. Minnich
2005-03-24 21:15   ` Sam
2005-03-24 22:31     ` Ronald G. Minnich
2005-03-24 22:47       ` Russ Cox
2005-03-25 15:34         ` Brantley Coile
2005-03-26  0:00           ` geoff
2005-03-26  0:19             ` Russ Cox
2005-03-27 19:03         ` Fwd: " McLone
2005-03-25  4:39       ` geoff
2005-03-25  9:02     ` vdharani
2005-03-25 18:36     ` [9fans] tsleep / timer questions Devon H. O'Dell 
2005-03-25 18:55       ` jmk
2005-03-25 20:19         ` Devon H. O'Dell 
2005-03-25 18:57       ` Russ Cox
2005-03-25 20:04         ` Devon H. O'Dell 
2005-03-25 20:12           ` Russ Cox
2005-03-25 20:23             ` Devon H. O'Dell  [this message]
2005-03-25 21:36               ` Russ Cox
2005-03-26  8:30                 ` Devon H. O'Dell 
2005-03-26  8:36                   ` [9fans] Kernel interface manpages Devon H. O'Dell 
2005-03-26 17:45                     ` Russ Cox
2005-03-26 19:56                       ` Devon H. O'Dell 
2005-03-26 23:03                     ` vdharani
2005-03-26  0:22       ` [9fans] tsleep / timer questions vdharani
2005-03-25  8:51 ` Fwd: [9fans] Ad link vdharani
2005-03-25 15:27   ` Brantley Coile
2005-03-28  1:28 [9fans] tsleep / timer questions YAMANASHI Takeshi
2005-03-28  3:38 ` Russ Cox

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=20050325202349.GD93332@smp500.sitetronics.com \
    --to=dodell@offmyserver.com \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).