When working with a serial NSOperationQueue (i.e. setMaxConcurrentOperationCount==1), are the operations added to the queue guaranteed to run in FIFO order if all operations have the same priority and no operation dependencies are involved? My guess is that the NSOperationQueue will run the operations in FIFO order, however, I don't believe the NSOperationQueue documentation guarantees this. The documentation says operations will run based on priority, then on dependency structure. Because all operations in this aforementioned serial queue have the same priority (i.e normal) and no dependencies, then I suppose the NSOperationQueue could sort the operations any way it wanted, not necessarily in the order I added them to the queue.

Does anyone have insight into this, or is there documentation anywhere that can guarantee to me an NSOperationQueue with a concurrent operation count of 1 will indeed process the operations first come first serve?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to