• 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: Pausing an NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pausing an NSThread


  • Subject: Re: Pausing an NSThread
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 9 Nov 2009 10:58:44 -0800


On Nov 8, 2009, at 2:17 AM, Roland King wrote:

Or look at NSOperation/NSOperationQueue which absolves you of the need to care about threads, it's done for you (and I believe makes use of Grand Central Dispatch on current versions of OSX). Just package up whatever it is you need to do and send it off and some thread somewhere will do it for you.

For the record: +1 to this. Let NSOperationQueue manage concurrency for you instead of using NSThread, unless you really know what you're doing with multithreading. It's much easier and safer.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Pausing an NSThread (From: Greg Guerin <email@hidden>)
 >Re: Pausing an NSThread (From: Ron Fleckner <email@hidden>)
 >Re: Pausing an NSThread (From: Roland King <email@hidden>)

  • Prev by Date: Re: Compile error using @synchronized on methods that return values
  • Next by Date: Re: Cocoa Sounds
  • Previous by thread: Re: Pausing an NSThread
  • Next by thread: Re: Pausing an NSThread
  • Index(es):
    • Date
    • Thread