3 ms·
The rule of thumb also keeps you from doing a lot of task switching. It isn't free enqueue and dequeue tasks. It is better if you have a million things to do
by cogman10 2y ago
The rule of thumb also keeps you from doing a lot of task switching. It isn't free enqueue and dequeue tasks. It is better if you have a million things to do to have a smaller set of tasks. Especially if the runtime for those tasks are somewhat uniform.
- mcronce 2y agoFor sure. Context switching tasks is certainly a lot cheaper than context switching threads, but it isn't free.