3 ms·
Coroutines are not the same thing as green threads, which the author seems to half acknowledge but then really screws up the terminology for the rest of the art
by klodolph 14y ago
Coroutines are not the same thing as green threads, which the author seems to half acknowledge but then really screws up the terminology for the rest of the article. Green threads are things that can be implemented using coroutines, or they can be implemented without coroutines.
Python generators are coroutines, a specific kind of coroutine. And you don't see anyone calling them brittle or buggy.
The author's real complaint here is that the traditional shared-memory-plus-locks model of concurrent programming is hard, and that's absolutely true. I don't see how using a cooperative scheduler makes writing correct programs any easier or harder.