News for hackers. Stuff that matters.
Re:Coroutines in C by hgs3 on Sunday February 25, 2024 @02:39PM (#39504032)
> Coroutines are fun, but in real code please consider using actual threads.

Coroutines are lightweight and trivial to synchronize. They are perfect for small bits of incremental computation, like iterators and tokenizers. Maybe you're thinking of green threads?

There are no comments on this comment yet.