News for hackers. Stuff that matters.
Re:My tutorial and take on C++20 coroutines by mazieres on Monday February 22, 2021 @05:39AM (#26222953)
> Stackless means when you resume a coroutine you're still using the same OS thread stack

This is confusing, because it begs the question "same as what?" In fact, you can migrate a coroutine across threads, or even create a thread specifically for the purposes of resuming a coroutine.

But I suppose it is true that from the point at which you resume a coroutine to the point at which it suspends itself, it will use a particular stack for any function calls made within the coroutine. That's why you can't suspend a coroutine from within a function call, because the function call will use the stack.

There are no comments on this comment yet.