• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sleeping in nanos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sleeping in nanos


  • Subject: Re: Sleeping in nanos
  • From: Colin Hirsch <email@hidden>
  • Date: Fri, 9 Feb 2007 10:43:54 +0100

On Thu, Feb 08, 2007 at 12:08:50PM -0500, Greg wrote:
>
> (On linux, the call to nanosleep(1) results in a sleep time that is
> two million times longer.  On OS X, it is fifty thousand times
> longer.  Imagine that kind of discrepancy with car brakes!)

So what you expect is that the resolution of the argument to the sleep
function matches the actual resolution of the sleep?

Linux with 50 Hz: void sleep20millis( unsigned );
Linux with 100 Hz: void sleep10millis( unsigned );
Linux with 250 Hz: void sleep4millis( unsigned );
Linux with 1000 Hz: void sleep1millis( unsigned );
...

...

Regards, Colin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Sleeping in nanos (From: Greg <email@hidden>)
 >Re: Sleeping in nanos (From: Terry Lambert <email@hidden>)
 >Re: Sleeping in nanos (From: Greg <email@hidden>)
 >Re: Sleeping in nanos (From: Terry Lambert <email@hidden>)
 >Re: Sleeping in nanos (From: Greg <email@hidden>)
 >Re: Sleeping in nanos (From: Michael Smith <email@hidden>)
 >Re: Sleeping in nanos (From: Greg <email@hidden>)
 >Fwd: Sleeping in nanos (From: "Shawn Erickson" <email@hidden>)
 >Re: Sleeping in nanos (From: Greg <email@hidden>)

  • Prev by Date: Re: IODemoryDescriptor->prepare() Performance relateted to the kIODirection?
  • Next by Date: Re: How can the so_pcb field of a "socket_t" instance be accessed with KPI?
  • Previous by thread: Re: Sleeping in nanos
  • Next by thread: Re: Sleeping in nanos
  • Index(es):
    • Date
    • Thread