NSObject *token = [[NSObject alloc] init]; dispatch_async(dispatch_get_global_queue(0, 0), ^{ while (1) { @synchronized (token) { array = [NS