When you use threads, do you have any preferences? In general rule, to use any of these techniques :
- create a new thread manually and use the run loop
- use NSOperationQueue
- or use Grand Central Dispatch and the C version with dispatch_queue?
Does NSOperationQueue simplify everything, and thus is better to be used when we need to create an asynchronous function?
I’m lazy, so my philosophy is to pick the simplest solution that does everything I need it to. (I like to think this is the “lazy” espoused by Larry Wall but sometimes I wonder.)
So my order of preference would be:
NSOperationQueueThere an increase in complexity and flexibility with each step down. If you need the extra flexibility then the complexity is probably worth it.