What exactly is GCD and where should it be used?

余生长醉 提交于 2019-12-13 19:28:59

问题


I think GCD is todo with asynchronous events, but specifically, I am not sure what type of events/where GCD comes in useful, apart from the obvious web requests.

Could you explain what GCD is and where it should/shouldn't be used?


回答1:


I strongly suggest you to read the chapter called "Dispatch Queues" in Apple's Concurrency Programming Guide. It is an excellent document and clearly depicts the differences with standard multi-thread programming. This reading (will not take you more than 10 minutes to read, quite more to digest of course!) is quite better than any other word I can put here! link to apple developer site



来源:https://stackoverflow.com/questions/6539656/what-exactly-is-gcd-and-where-should-it-be-used

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!