3 ms·
I am not sure if context switches between different threads aren't going to dominate the cost here. It does sound like a little bit of assembly code that perfor
by phoe-krk 7y ago
I am not sure if context switches between different threads aren't going to dominate the cost here. It does sound like a little bit of assembly code that performs a binary search has a much smaller cost than all the stack manipulations associated with a thread preemption.