global_queue with qos_class_user_interactive
问题 I try to understand GCD and wrote this code to find out run priority: override func viewDidLoad() { super.viewDidLoad() fetchImage() print(1) dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0)) { print(2) } dispatch_async(dispatch_get_main_queue()) { print(3) } dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INTERACTIVE, 0)) { print(5) } } I got next result in the console: 1 2 5 3 So the question is: Part 1 : Why 3 is after 5 (main_queue has highest priority?) Part