3 ms·
You can easily have thousands of tasks (blocks) in dispatch, and thousands of queues as long as they're targeted to the same base queue. The issue with dispatc
by astrange 6y ago
You can easily have thousands of tasks (blocks) in dispatch, and thousands of queues as long as they're targeted to the same base queue.
The issue with dispatch is that it wasn't communicated enough that you want to have a few base queues and then a tree of other serial queues on top of that, so people end up running too many CPU threads at once, on a device that often has less than one core free at a time.