for (int i = 0; i < 3 ; i++) {
dispatch_queue_t queue = dispatch_queue_create(<#const char *label#>, <#dispatch_queue_attr_t attr#>)
dispatch_async(queue, ^{
BSLog(@"当前线程为 : %@", [NSThread currentThread]);
});
}
类似以上的代码,queue我不晓得该怎么写了,求教,万分感谢
看來你是把隊列和執行緒的概念搞混淆了。 。 。
隊列的串列還是並行,決定了裡面的block是怎麼被執行的
多個隊列不一定對應多個執行緒