It is currently Fri Nov 24, 2017 5:04 pm


All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Possible New Proposal: Portable Hang and Timeout Precisi
PostPosted: Tue Feb 04, 2014 9:18 pm 
User avatar

Joined: Mon Jan 31, 2011 12:03 pm
Posts: 27
Location: Watsonville, CA (USA)
Real Name: Greg Woodhouse
Began Programming in MUMPS: 01 Oct 1992
Sorry about the delay in getting back to this. Here is a reference to clock_nanosleep in POSIX.1

http://pubs.opengroup.org/onlinepubs/9699919799/

I am still unclear as to what guarantees we are making in the standard here. For example, nano sleep can fail if it is interrupted, and the interval may be rounded up depending on the granularity of the specified clock. I'm a big fan of high resolution timestamps (for example, in measuring execution time), but am less convinced of the utility of millisecond HANG. Can/should support for this feature be made optional.


Top
Offline Profile  
 
 Post subject: Re: Possible New Proposal: Portable Hang and Timeout Precisi
PostPosted: Tue Feb 04, 2014 10:25 pm 
User avatar

Joined: Mon Nov 01, 2010 3:33 pm
Posts: 103
Location: Australia
Real Name: Ray Newman
Began Programming in MUMPS: 01 Jul 1976
From the OX/X man page:

The nanosleep() function causes the calling thread to sleep for the amount of time specified in rqtp (the actual time slept may be longer, due to system latencies and possible limitations in the timer resolution of the hardware).

Ray


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net