News for hackers. Stuff that matters.
Re:Philosophy of Coroutines by riwsky on Saturday September 02, 2023 @12:58AM (#37358660)
You’re confusing concurrency with parallelism. A single-threaded event loop a la node is indeed concurrent. Multiple threads a la the Kotlin IO pool you mention would be both concurrent and parallel. Concurrency isn’t about different parts of the code actually executing at the same time, merely about being able to structure and think about code as if it were executing that way.

There are no comments on this comment yet.