究竟什么是GCD并在是否应该使用吗? [英] What exactly is GCD and where should it be used?

查看:160
本文介绍了究竟什么是GCD并在是否应该使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为GCD是待办事项异步事件,但具体而言,我不知道事件/其中GCD进来有用的,除了明显的Web请求的是什么类型的。

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.

你能解释一下什么是GCD以及它应该/不应该使用?

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

推荐答案

我强烈建议你阅读苹果的并发编程指南中被称为调度队列一章。这是一个很好的文件,并清楚地描述了与标准的多线程编程的差异。
该读数(不会带你超过10分钟阅读,多挺消化当然!)比任何其他的话,我可以把这里相当好!
<一href=\"http://developer.apple.com/library/ios/#documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html\"相对=nofollow>链接到苹果开发者网站

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

这篇关于究竟什么是GCD并在是否应该使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆