It’s built on top of Grand Central Dispatch (GCD) and provides a higher-level abstraction for managing concurrent operations. It’s an abstract class and never used directly. We can make use of the system-defined BlockOperation subclass or by creating your own subclass and start an operation by adding it to an OperationQueue or …
Global Dispatch Queues
GCD provides a set of global dispatch queues that are managed by the system. These queues are categorised into different quality-of-service (QoS) classes, indicating their priority. Main Dispatch Queue: The Main Dispatch Queue is a special serial dispatch queue associated with the main thread of your application. It’s the primary …
Grand Central Dispatch (GCD)
Grand Central Dispatch is a low-level API provided by Apple for managing concurrent operations. GCD abstracts away many of the complexities of thread management and provides a simple and efficient way to execute tasks concurrently. It provides a set of APIs for managing tasks and executing them concurrently on multicore …
Concurrency & Multithreading
Thread A thread is the smallest unit of execution within a process. It represents a single sequence of instructions that can be scheduled and executed independently by the operating system’s scheduler. Multithreading The term “multithreading” refers to the use of multiple threads within a single process. Multithreading allows different parts …