2 ms·
The point is you don't need native threads. You can use lightweight (green) threads. So if a green thread is waiting for I/O, another can use the CPU just fine
by hu3 3y ago
The point is you don't need native threads. You can use lightweight (green) threads.
So if a green thread is waiting for I/O, another can use the CPU just fine.
Yes there's context switching but it does scale and code becomes simpler to write and reason about.