• 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
sleep() vs sleepUntilDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sleep() vs sleepUntilDate


  • Subject: sleep() vs sleepUntilDate
  • From: Dylan Neild <email@hidden>
  • Date: Mon, 23 Sep 2002 00:31:01 -0400

Hi Everyone,

I was wondering what the effective, practical differences were between using the following calls:

sleep() - of course, part of the BSD environment.

-and-

(void)sleepUntilDate:(NSDate*)aDate - class method in NSThread.

Is there any major caveats to one or the other, besides the obvious argument differences. Effectively, what I'm wondering, is that if I use "sleep(10)" in a thread vs. "sleepUntilDate:(NSDate *)tenSecondsAway" (or vice versa) ... is there anything I should be aware of?

Many thanks,

Dylan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: sleep() vs sleepUntilDate
      • From: Peter Sichel <email@hidden>
  • Prev by Date: Re: NSTableView of NSColorWell
  • Next by Date: Re: [Q] Programmatically resizing split views in NSSplitView
  • Previous by thread: CFDataRef from char ?
  • Next by thread: Re: sleep() vs sleepUntilDate
  • Index(es):
    • Date
    • Thread