1:performSelector 多线程
1 | /* |
2:NSThread
1 | /* |
3:NSTimer(反面教材,他不是多线程,他只是定时执行任务)
1 | /* |
4:GCD最棒的多线程使用api
GCD 中主要的对象:
- dispatch_sync
- dispatch_async
- dispatch_once_t
- dispatch_after
- dispatch_queue_t
- dispatch_group_async
- dispatch_barrier_async
- dispatch_apply
- dispatch_suspend,dispatch_resume
- dispatch_sync
- dispatch_sync
- dispatch_sync
1 |
|
参考
http://liuyanwei.jumppo.com/2015/08/19/ios-ThreadAndAsynchronization.html
http://blog.csdn.net/zhangao0086/article/details/38904923
- 本文作者: Linking
- 本文链接: https://linking.fun/2017/05/23/iOS多线程技术的副本/
- 版权声明: 版权所有,转载请注明出处!