News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by tommiegannert on Sunday September 17, 2023 @03:16AM (#37542363)
For me, it's the difference between code structure and resource usage.

Green threads are for a cleaner code structure. async/await comes quite close, but requires function coloring, creating high coupling. The threads have to have low overhead, so that I don't have to think about whether I should create a new one or not.

Kernel threads are for parallelism and scaling across cores.

There are no comments on this comment yet.