在哪里可以找到关于iPhone/Objective-C多线程的好的教程?

时间:2022-01-20 15:06:10

I'm just starting to use multithreading and was looking for a good explanation. I'm not sure if there are differences in how multithreading works on Macs and iPhones. What is a good link to tutorials with example code?

我刚刚开始使用多线程,正在寻找一个好的解释。我不确定多线程在mac和iphone上是否存在差异。带示例代码的教程的好链接是什么?

5 个解决方案

#1


18  

A simple, but complete example is Multithreading in Cocoa.

一个简单但完整的示例是Cocoa中的多线程。

And a related Stack Overflow question is NSOperation on the iPhone.

一个相关的栈溢出问题是iPhone上的NSOperation。

#2


11  

Once again, if I may promote my iPhone development course, I had a class devoted to multithreading last semester, covering basic threading, locking, dealing with the UI on the main thread, and NSOperationQueues, for which the class notes can be found here. This fall semester that same class will be dominated by Grand Central Dispatch.

再一次,如果我可以推广我的iPhone开发课程,我上个学期有一个专门讲多线程的课程,包括基本的线程,锁定,处理主线程的UI,以及nsoperationqueue,这些都可以在这里找到。这个秋季学期,同样的课程将被*分派所主导。

The video for the class can be downloaded for free from iTunes U.

课程视频可以从iTunes U免费下载。

#3


9  

Don't forget the official documentation from Apple: Threading Programming Guide

不要忘记苹果的官方文档:线程编程指南。

You will find complete explanations and example code.

您将找到完整的解释和示例代码。

#4


5  

#5


3  

A good and short tutorial on NSInvocationOperation is Loading Images Asynchronously on iPhone using NSInvocationOperation.

关于NSInvocationOperation的一个很好的简短教程是使用NSInvocationOperation在iPhone上异步加载图像。

#1


18  

A simple, but complete example is Multithreading in Cocoa.

一个简单但完整的示例是Cocoa中的多线程。

And a related Stack Overflow question is NSOperation on the iPhone.

一个相关的栈溢出问题是iPhone上的NSOperation。

#2


11  

Once again, if I may promote my iPhone development course, I had a class devoted to multithreading last semester, covering basic threading, locking, dealing with the UI on the main thread, and NSOperationQueues, for which the class notes can be found here. This fall semester that same class will be dominated by Grand Central Dispatch.

再一次,如果我可以推广我的iPhone开发课程,我上个学期有一个专门讲多线程的课程,包括基本的线程,锁定,处理主线程的UI,以及nsoperationqueue,这些都可以在这里找到。这个秋季学期,同样的课程将被*分派所主导。

The video for the class can be downloaded for free from iTunes U.

课程视频可以从iTunes U免费下载。

#3


9  

Don't forget the official documentation from Apple: Threading Programming Guide

不要忘记苹果的官方文档:线程编程指南。

You will find complete explanations and example code.

您将找到完整的解释和示例代码。

#4


5  

#5


3  

A good and short tutorial on NSInvocationOperation is Loading Images Asynchronously on iPhone using NSInvocationOperation.

关于NSInvocationOperation的一个很好的简短教程是使用NSInvocationOperation在iPhone上异步加载图像。