• 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: Greg <email@hidden>
  • Date: Sat, 3 Feb 2007 11:49:44 -0500


On Feb 3, 2007, at 11:45 AM, Shawn Erickson wrote:

Greg, it looks like your comparison isn't correctly accounting for the difference in time actually slept by each platform. It sounds like your code when run on Linux is sleeping a lot longer then you are actually asking it to sleep... so if you product works on Linux with a sleep period around 10ms I suggest you request a longer sleep time to begin with.

Yes, I got these same results and sent an email to the list, did you see it?

Also one has to ask... you appear to be polling, can you avoid that polling to begin with?

-Shawn

Yes I am polling, and no, I can't avoid it without changing a bunch of people's code. :-(

- Greg
 _______________________________________________
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

  • Follow-Ups:
    • Re: Sleeping in nanos
      • From: Shawn Erickson <email@hidden>
References: 
 >Sleeping in nanos (From: Greg <email@hidden>)
 >Fwd: Sleeping in nanos (From: Greg <email@hidden>)
 >Re: Sleeping in nanos (From: Ed Wynne <email@hidden>)
 >Re: Sleeping in nanos (From: Greg <email@hidden>)
 >Re: Sleeping in nanos (From: Jan Brittenson <email@hidden>)
 >Re: Sleeping in nanos (From: Ed Wynne <email@hidden>)
 >Re: Sleeping in nanos (From: Colin Hirsch <email@hidden>)
 >Re: Sleeping in nanos (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Sleeping in nanos
  • Next by Date: Re: Sleeping in nanos
  • Previous by thread: Re: Sleeping in nanos
  • Next by thread: Re: Sleeping in nanos
  • Index(es):
    • Date
    • Thread