• 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
Fwd: Sleeping in nanos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Sleeping in nanos


  • Subject: Fwd: Sleeping in nanos
  • From: Greg <email@hidden>
  • Date: Fri, 2 Feb 2007 22:29:06 -0500

Oh, I should mention that I'm trying to do this in user-space, not the kernel.

- Greg

Begin forwarded message:

From: Greg <email@hidden>
Date: February 2, 2007 10:28:08 PM EST
To: Darwin Kernel <email@hidden>
Subject: Sleeping in nanos

Is there a way on OS X to sleep for 1000 nanoseconds without causing 65% CPU usage?  I have tried nanosleep and clock_sleep (using TIME_RELATIVE and a REALTIME_CLOCK), and both seem to simply cause a busy loop.

Thanks!

- 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: Ed Wynne <email@hidden>
References: 
 >Sleeping in nanos (From: Greg <email@hidden>)

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