Thread
Thread
Intro
Individual tasks runs on Thread with a priority assigned by the Operating system runtime operation.
Syntax
Check whether the current thread is on main
or background global instance.
print ("The current thread: \(Thread.current)")
Dispatch Group
Dispatch Queue
Concurrent or Singular Synchronous
dispatch_queue
Main thread
dispatch_main
Dispatch Work Item
Race Condition
avanderlee | thread sanitizer data races
Critical Section
Semaphores
RxSwift threads
Learn
More about race conditions and avoiding critical reads / writes sections in the memory at once.
Multithreading - checks for whether certain things needed to be checked for thread safety overall.
The interview basically asked me all the multithreaded questions which I didn't know an answer for.
Good sources
guide-to-operation-and-operationqueue