multithreading - What is the main thread in GCD? -


what main thread in grand central dispatch? thread created when program starts (maybe before main() function gets called), arbitrarily called "the main thread"? or program's main execution flow, created every running process? think first option right one, because it's not possible send blocks executed program's main execution flow, guess, unless done explicitly. so, main thread in gcd must thread created wait blocks executed. right?

gcd has no main thread unless running in context of cf/foundation based process has 1 of own. if use dispatch_main there's no main thread.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -