public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "mark manning" <mark.manning@fastermail.com>
To: <hahn@physics.mcmaster.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: nanosleep
Date: Tue, 09 Apr 2002 22:22:12 -0500	[thread overview]
Message-ID: <20020410032212.29074.qmail@fastermail.com> (raw)

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

hi - yes i read the man pages, im already using nanosleep for doing 1 second delays and i chose nanosleep because a signal can interrupt the delay which might be useful (and might not :)

----- Original Message -----
From: Mark Hahn <hahn@physics.mcmaster.ca>
Date: Tue, 9 Apr 2002 20:32:03 -0400 (EDT)
To: mark manning <mark.manning@fastermail.com>
Subject: Re: nanosleep


> > could someone show me how to do a delay of N miliseconds using nanosleep ?
> > (given n delay n mili seconds etc) - i cant seem to get my code to work
> > doh! 
> 
> did you read the fine man page, esp the section on resolution
> and busy-waits?  also, using select for its timeout is probably
> more portable.
> 
> 

-- 

_______________________________________________
Get your free email from http://www.fastermail.com

Powered by Outblaze

             reply	other threads:[~2002-04-10  3:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10  3:22 mark manning [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  4:41 nanosleep mark manning
2002-04-10  5:57 ` nanosleep Robert Love
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=20020410032212.29074.qmail@fastermail.com \
    --to=mark.manning@fastermail.com \
    --cc=hahn@physics.mcmaster.ca \
    --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