User-Space Context Switching: Minimal Overhead for Nanosecond Speed

User-space schedulers, like those found in Erlang's BEAM or Go's goroutines, achieve nanosecond context switch times by avoiding costly kernel calls and managing lightweight processes within the application's own memory space, primarily saving/restoring only a few registers and stack pointers.

Sources

Open the full topic