Hacker News new | ask | show | jobs
by pron 4111 days ago
Of course.

Let me just clarify one point: lightweight[1] threads are not an abstraction; threads are. Lightweight threads are simply threads whose implementation is such that blocking has no (or negligible) overhead. When you have threads, you're better off using blocking queues and blocking futures, which are the "pull" duals of the "push" mechanisms described in the article.

[1]: I don't like the term green threads because traditionally it's been used to describe threads that do not support parallelism.