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我不晓得该怎么写了,求教,万分感谢
It seems that you have confused the concepts of queue and thread. . .
Whether the queue is serial or parallel determines how the blocks inside are executed
Multiple queues do not necessarily correspond to multiple threads