3 ms·
This is what Hyper-threading[1] is designed to do. The point is that it's expensive for the OS to switch threads, so the CPU instead tells the OS it can run tw
by magicalhippo 7y ago
This is what Hyper-threading[1] is designed to do.
The point is that it's expensive for the OS to switch threads, so the CPU instead tells the OS it can run two threads at the same time, and does so by sharing execution resources.
Gives a nice boost for programs that do a fair bit of calculations while also having a fair share of cache misses. If you have tight loops with little memory access you won't gain much.
[1]: https://en.wikipedia.org/wiki/Hyper-threading https://en.wikipedia.org/wiki/Hyper-threading