如题,请大神指教

解决方案 »

  1.   

        dispatch_async(dispatch_get_global_queue(0, 0), ^{
            
            for (int i = 0; i < 100; ++i )
            {
                dispatch_async(dispatch_get_main_queue(), ^{
                    NSLog(@"this printf in main thread.");
                });
                
                usleep(10);
            }
        });