mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-02-06 01:03:36 +07:00
Update README.md
This commit is contained in:
parent
82b20c747f
commit
852877245b
14
README.md
14
README.md
@ -83,6 +83,7 @@ Feel free to fork this repository and pull requests!!
|
||||
- [USage](#Accessibility-Usage)
|
||||
- [GCD](#GCD)
|
||||
- [DispatchQueue](#DispatchQueue)
|
||||
- [Thread Safety](#thread-safety)
|
||||
- [DispatchGroup](#DispatchGroup)
|
||||
- [DispatchWorkItem](#DispatchWorkItem)
|
||||
- [Operation](#operation)
|
||||
@ -1272,12 +1273,21 @@ GCD(Grand Central Dispatch) is a low-level API for managing concurrent operation
|
||||
## DispatchQueue
|
||||
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
|
||||
|
||||
#### global()
|
||||
### global()
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user