Is [NSOperationQueue mainQueue] guaranteed to be serial?

ios, nsoperationqueue, objective-c, xcode4.5

Solution

I have found a nice answer here:

NSOperationQueue and concurrent vs non-concurrent

So make all added operations serial you can always set:

`[[NSOperationQueue mainQueue] setMaxConcurrentOperationCount:1];`

Problem

That is, if we queue the same thing several time there will be no concurrency. The one we queued first will be executed first. I mean there is only one main thread right?

Original source

Related problems