We live in a multicore computing world; multicore processors are found in everything, from our laptops and mobile phones to our watches. With these multiple cores come the abilities to work parallelly. These concurrent streams of work are known as threads, and programming in a multithreaded way enables your code to make the best use of the processor's cores. Deciding how and when to create new threads and managing the available resources are complex tasks, so Apple built a framework to do the hard work for us; it's called Grand Central Dispatch.
Grand Central Dispatch (GCD) handles the thread maintenance and monitors the available resources while providing a simple, queue-based interface for getting concurrent work done. With the open sourcing of Swift, Apple also open sourced GCD in the form of libdispatch, since Swift does not yet have built-in concurrency...