4 ms·
They both have their own place. If you're writing code where you care about thread identity, like a GUI code or using a native thread for various reasons and y
by jayd16 4y ago
They both have their own place. If you're writing code where you care about thread identity, like a GUI code or using a native thread for various reasons and you want specific control, async/await gives you that control. If you don't care about thread identity and just care about pure throughput, pre-emptive is less cognitive load up until the work stealing starts to matter.