barrier, so if you want to implement a read-write lock, please create a queue by yourself instead of DispatchQueue.global. And due to the DispatchQueue.global will not take any effect from. There is a thing worth knowing is, serial queue is already executed in order, there is no point using. So there is one way to improve our code efficiency is to execute our read action concurrently.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |