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
Post a Comment