2 ms·
The way it is implemented in on top of the futex machinery is very elegant. Unfortunately it still need to go through the kernel, so it is probably going to be
by gpderetta 6y ago
The way it is implemented in on top of the futex machinery is very elegant.
Unfortunately it still need to go through the kernel, so it is probably going to be orders of magnitude slower than pure userspace based task switching, especially after spectre.
- jeffbee 6y agoAnd yet it is an order of magnitude faster than using the kernel thread scheduler, and you get to keep working thread-locals, normal process ID behavior, etc. It's a compromise.