0

I have a NSURLConnection asynchrone in NSOperation in concurrency mode. I know that by default, the NSOperationQueue creates the thread for the NSOperation (non-concurrent). But, in concurrency, does it means that i have one thread in another thread ? if yes, it's a good practice ?

(a example : http://www.dribin.org/dave/blog/archives/2009/05/05/concurrent_operations/)

Thx you :)

Marc Lamberti
  • 763
  • 2
  • 9
  • 24

1 Answers1

0

Dribin's code has some bugs in it which are addressed in a project exploring concurrent operations and in a smaller light-weight concurrent web fetcher. What is happening here is the operation queue creates and managers one or more threads. The NSURLConnection uses a single thread - it does not create another one. So really there is just one thread consumed in this model.

David H
  • 40,852
  • 12
  • 92
  • 138