All the overhead of switching contexts is applied to the thread one time.
切换上下文的所有开销都一次性应用到线程。
2
Due to the overhead involved in context switching to a thread or process for any amount of work, systems with small-scope granularity are often inefficient and suffer from low performance.
This avoids network latency and the overhead of inter-process communication, as well as context switching in the operating system, further contributing to extreme speed.