3 ms·
Context switches are extremely expensive, no way would it make sense to do it every memory access. Edit: https://eli.thegreenplace.net/2018/measuring-context-s
by foota 7y ago
Context switches are extremely expensive, no way would it make sense to do it every memory access.
Edit: https://eli.thegreenplace.net/2018/measuring-context-switching-and-memory-overheads-for-linux-threads/ https://eli.thegreenplace.net/2018/measuring-context-switchi... cites a couple microseconds, whereas memory latency is measured in tens of nanoseconds. So several dozen times more expensive to context switch.