|
|
|
|
|
by ackfoobar
1506 days ago
|
|
> all N threads that were spawned were tied to a single kernel thread. It also required cooperative multithreading, where one green thread may need to yield. This is pretty much how JavaScript operates. You can consider calling an async function as spawning a user-level "thread"; chained-up callbacks are the same thing, but with manual CPS transform. This has always perplexed me. Why N:1 threading is hated, but Node.JS is so loved? |
|