GCD dispatch concurrent queue freeze with 'Dispatch Thread Soft Limit Reached: 64' in crash log
问题 My program is a server which handles incoming requests. Each valid request is wrapped in NSOperation and passed to a normal NSOperationQueue . Each NSOpearation processes its request. In some cases, there is contention at a NSDictionary which I use dispatch_queue (concurrent queue), dispatch_barrier_async (when set value) and dispatch_sync (when get value) to make this NSDictionary thread-safe. I test my program with 100 requests concurrently then the process freezes sometimes. I kill the