grand-central-dispatch
Producer/consumer with bounded buffer
Could someone check my code and tell me if I am on the right track.. It seems like I am a bit lost.. if you see my errors, please let me know them..[详细]
2023-04-05 07:10 分类:问答GCD and UIBackgroundTaskIdentifier
I have a dispatch queue that has some work in it. I want the queue to keep running till either time runs out or the queue gets drained, when the application goes into the background. How would I set u[详细]
2023-04-05 01:12 分类:问答Objective-C dispatch method with block that will run on the *caller* thread
I write a black box class that does heavy processing in the background using Grand Central Dispatch. I intend to provide a continuation style API, something like:[详细]
2023-04-04 06:06 分类:问答Obj-C design pattern : parallel task launcher
I currently have a shell script that process many images one after the other, with the help of GraphicsMagick. It works fine, all calculations are correct, everything works. (that\'s not a \"simple\"[详细]
2023-04-02 13:01 分类:问答Reducing load on the main thread when using dispatch_get_main_queue()
I\'m generating a lot of thumbnails in my iPhone app using GCD. I have something that look like this :[详细]
2023-04-02 04:57 分类:问答How can I sequence asynchronous background tasks with GCD?
I am using GCD on iOS to perform a a time-consuming task on a background thread. The API has a start method that takes two blocks as arguments, both called on the main queue. The first is called when[详细]
2023-03-31 14:30 分类:问答Where should I release an object? Can it release itself?
I want to get friends information from Facebook and save it with Core Data. I build a FriendsManager Class that gets the a list of friends from Facebook (name and id)[详细]
2023-03-30 08:39 分类:问答GCD, NSOperationQueue, or create a thread manually?
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[详细]
2023-03-29 14:56 分类:问答Operation Queue vs Dispatch Queue for iOS Application
What are the differences between Operation Queue and Dispatch Queue? Under what circumstances will it be more ap开发者_如何转开发propriate to use each?[详细]
2023-03-28 05:28 分类:问答Can ABAddressBook framework work with Grand Central Dispatch's Serial Queue?(Thread concern)
In apple\'s document, apple says: Important: Instances of ABAddressBookRef can not be used by multiple[详细]
2023-03-27 05:39 分类:问答