通过NSObject创建线程
这个方法会自动开辟一个后台线程 ,
参数1 是 在后台线程中执行的方法 .
参数2 用于传递参数
[self performSelectorInBackground:@selector(banzhuanPlus) withObject:nil];
文章标签 线程 NSObject创建线程 文章分类 移动开发
通过NSObject创建线程
这个方法会自动开辟一个后台线程 ,
参数1 是 在后台线程中执行的方法 .
参数2 用于传递参数
[self performSelectorInBackground:@selector(banzhuanPlus) withObject:nil];
上一篇:UIView 的旋转和缩放
下一篇:线程 NSThread 创建线程
pthread_creat()中的线程标识pthread_t是非可移植的
1、概述 线程简介、线程实现(重点)、线程状态、线程同步(重点)、线程通信问题、高级主题 的 线程创建 初识并发问题 ...
#include <stdio.h>#include <stdlib.h
利用线程池创建的优点:1.提高响应速度(减少了创建新线程的时间)2.降低资源消耗(重复利用线程池
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M