Re: nanosleep

mark manning (mark.manning@fastermail.com)
Tue, 09 Apr 2002 22:22:12 -0500


This is a multi-part message in MIME format...

------------=_1018408932-28940-0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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

------------=_1018408932-28940-0-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/