What is the difference between GCD main queue and the main thread?
问题 I read comment on SO that dispatching a queue to the main thread is not the same as performing code on the main thread. If I understood correctly the user was saying that this dispatch_async(dispatch_get_main_queue(), ^{ // some code }); was not the same as this [self performSelectorOnMainThread:@selector(doStuff) withObject:nil waitUntilDone:NO]; - (void) doStuff { // some code } is there some true about this comment? Excluding the fact that the first code is asynchronous, for me, both codes