Re: Sleeping in nanos
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