美文网首页
2.多线程基础(二)pthread的了解

2.多线程基础(二)pthread的了解

作者: 峰子1994 | 来源:发表于2017-10-31 10:44 被阅读3次

1.IOS中多线程的实现方案:

image.png

2.pthread的实现:

image.png
再成创建一条线程:
image.png
pthread_create方法有返回值,作用:判断线程创建是否成功?

3.pthread常用的方法:

image.png

关于pthread代码几乎不适用了,没有必要去写,了解下就行了!!!

相关文章

网友评论

      本文标题:2.多线程基础(二)pthread的了解

      本文链接:https://www.haomeiwen.com/subject/utovpxtx.html