Tag

stackless

1 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Nov 8, 2022 · Fundamentals

Deep Dive into C++ Coroutines: From C++17 Stackless Implementation to C++20 and Scheduler Design

This article compares the legacy C++17 stackless coroutine implementation using macro‑generated state machines with the native C++20 coroutine model, explains their core concepts, and demonstrates how to design a flexible scheduler that manages various await modes and integrates custom awaitable tasks.

CProgrammingScheduler
0 likes · 47 min read
Deep Dive into C++ Coroutines: From C++17 Stackless Implementation to C++20 and Scheduler Design
Laiye Technology Team
Laiye Technology Team
Jul 8, 2022 · Fundamentals

Coroutine Scheduling and Stack Management for High-Concurrency Systems

This article explains how to achieve high‑performance C10M concurrency by moving memory management, packet handling, and scheduling out of the kernel into user space, introduces coroutine concepts, demonstrates a producer‑consumer coroutine example, discusses coroutine stack implementations (stackful vs stackless), and outlines classic scheduling strategies.

C10MSchedulingcoroutine
0 likes · 9 min read
Coroutine Scheduling and Stack Management for High-Concurrency Systems