Following question/statement is limited to my understanding,let me know if i'm wrong here.
From : Issue with GCD and too many threads
Forward to jackslash's answer,i wonder most of the developers have a habbit of using [NSData dataWithContentsOfURL:URL]
which certainly does seems to be blocking(until it's done).Which can be ideal if your fetching some small details through URL.But in case of multiple process(i mean while downloading multiple files),GCD has to create many many threads and is not a perfect way to download the data.
So some experts suggested to use GCDs abstraction called [NSURLConnection sendAsynchronousRequest:queue:completionHandler:
to handle such situation(and is ideal also).
My only question is how does [NSURLConnection sendAsynchronousRequest:queue:completionHandler:
will take the advantage over NSData dataWithContentsOfURL:URL]
in terms of creating new threads and saving us from getting blocked?.
Really appreciate any of your documented answer.