1.线程间通讯常用方法
-(void)performSelectorOnMainThread:(SEL)aSelectorwithObject:(id)argwaitUntilDone:(BOOL)wait;
-(void)performSelector:(SEL)aSelectoronThread:(NSThread*)thrwithObject:(id)argwaitUntilDone:(BOOL)wait;
2.线程间通讯的体现
1个线程间传递数据给另1个线程
在1个线程中执行完特定的任务之后,转到另1个线程继续执行任务