iOS 多線程研究一:六種建立多線程的方法

本文介紹多種多線程方法:xoxo_x總結 本文總結的幾種多線程建立方法均爲異步線程,除了最後GCD的同步線程外。css 第一種:ios NSThread *thread = [[NSThread alloc]initWithBlock:^{ NSLog(@"線程1"); }]; [thread start]; NSLog(@"主線程"); 第二種:web
相關文章
相關標籤/搜索