What is Thread?
1528
14-Oct-2015
Updated on 18-Sep-2020
Tarun Kumar
14-Oct-2015Thread is a class that is used in Objective-C methods to execute on its own thread. It is useful when we need to perform a lengthy task, but don’t want it to block the execution of the rest of the application.
We can use threads to avoid blocking the main thread of the application, which handles user interface and event-related actions. Threads can also be used to divide a large job into several smaller jobs, which can lead to performance increases on multi-core computers.