News for hackers. Stuff that matters.
Re:Libaco: A fast and lightweight C asymmetric coroutine lib... by fla on Saturday July 14, 2018 @04:35AM (#17529420)
One example that comes in mid is that it can provide cooperative multitasking in user space. That gives you light speed context switching over potentially thousands of threads. It can make some software architecture (like actor models) much simpler to express.
Re:Libaco: A fast and lightweight C asymmetric coroutine lib... by ur-whale on Saturday July 14, 2018 @07:09AM (#17529830)
Not sure how the second sentence follows from the first here ...

As for context switching speed, you may well be right, but I was under the impression that thread context switching in Linux is really cheap these days, almost as fast as userland coroutines.

Re:Libaco: A fast and lightweight C asymmetric coroutine lib... by blattimwind on Saturday July 14, 2018 @08:18AM (#17530017)
Coroutine switching can be as fast as a dozen or so ns. Meanwhile a thread context switch will still take a microsecond at least.