views:

249

answers:

1

I am using ASIHTTpREQUEST

I am adding about 10 requests to ASINetworkQueue and calling go ( exactly like in the sample code ) .

But as soon as my queue starts my iphone ui totally freezes and "unfreezes" only when queue is done .

I want my UIAction to take priority over network activity . Should i be doing/ setting something else ?

A: 

The class ASINetworkQueue is a subclass of NSOperationQueue. Therefore, you should be able to call methods available to NSOperationQueue.

One such method is -setMaxConcurrentOperationCount: which sets the maximum number of concurrent operations (in this particular case, ASIHTTPRequest instances) that the queue will operate on.

Perhaps experiment with setting this value on your ASINetworkQueue instance to some value between 1 and 10, to see how the performance of UI updates on the main thread is affected.

Alex Reynolds