iphone - NSURLConnection synchonous methods from within NSOperation -
suppose have multiple nsoperation objects attached concurrent queue.
within these nsoperations, call synchronous method of nsurlconnectionclass, sendsynchronousrequest ...
not mess code tracing different connections within single delegate.
apple says sendsynchronousrequest ...
going automatically create separate thread run loop trace nsurlconnection delegate messages.
but have several additional threads (running inside nsoperation
)! question is: if have, say, 10 nsoperation
objects , each call synchronous method of nsurlconnection
, produce 10 more additional ("automatically created") threads run loops or there one of them?
don't worry thread nsurlconnection
creates. internal detail. i'm pretty sure 1 global thread shared nsurlconnection
instances.
Comments
Post a Comment