mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-07-21 05:10:02 +07:00
Update README.md
This commit is contained in:
14
README.md
14
README.md
@ -83,6 +83,7 @@ Feel free to fork this repository and pull requests!!
|
|||||||
- [USage](#Accessibility-Usage)
|
- [USage](#Accessibility-Usage)
|
||||||
- [GCD](#GCD)
|
- [GCD](#GCD)
|
||||||
- [DispatchQueue](#DispatchQueue)
|
- [DispatchQueue](#DispatchQueue)
|
||||||
|
- [Thread Safety](#thread-safety)
|
||||||
- [DispatchGroup](#DispatchGroup)
|
- [DispatchGroup](#DispatchGroup)
|
||||||
- [DispatchWorkItem](#DispatchWorkItem)
|
- [DispatchWorkItem](#DispatchWorkItem)
|
||||||
- [Operation](#operation)
|
- [Operation](#operation)
|
||||||
@ -1272,12 +1273,21 @@ GCD(Grand Central Dispatch) is a low-level API for managing concurrent operation
|
|||||||
## DispatchQueue
|
## DispatchQueue
|
||||||
An object that manages the execution of tasks serially or concurrently on your app's main thread or on a background thread.
|
An object that manages the execution of tasks serially or concurrently on your app's main thread or on a background thread.
|
||||||
|
|
||||||
#### main
|
### main
|
||||||
We can say main is a serial queue
|
We can say main is a serial queue
|
||||||
|
|
||||||
#### global()
|
### global()
|
||||||
We can say global is a concurrent queue
|
We can say global is a concurrent queue
|
||||||
|
|
||||||
|
## Thread Safety
|
||||||
|
|
||||||
|
[Concurrency & Thread Safety in Swift](https://medium.com/cubo-ai/concurrency-thread-safety-in-swift-5281535f7d3a)
|
||||||
|
|
||||||
|
1. Dispatch Barrier
|
||||||
|
2. Dispatch Semaphore
|
||||||
|
3. NSLock
|
||||||
|
|
||||||
|
|
||||||
## DispatchGroup
|
## DispatchGroup
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user