I am trying to understand multi-threading on iOS in more detail. I went through some of the class references like NSThread
, NSRunLoop
, NSTask
..
First of all as indicated on the following link: use of runloop
Runloop
runs within a Thread
.
So why do we need to define our own Runloop
in our app? In the case of NSThread
it is useful because some of time-consuming processes can run in a separate thread so that the app will still be responsive on the main thread.