Context switch
Changing which process runs on a core — save all the state for one, restore it for the other.
The kernel saves register contents, program counter and stack pointer for the outgoing process and loads the equivalent for the incoming one. If the process changes too, not just the thread, the memory translation must be swapped, which in practice flushes the TLB.
The switch itself takes a microsecond or so, but the hidden cost is larger: the new process starts with a cold cache and waits on memory for thousands of cycles. That is the whole reason asynchronous models with few threads often beat thread-per-connection, and why a system with a high cs figure in vmstat is unwell.