Tagged articles
106 articles
Page 1 of 2
Java Architect Handbook
Java Architect Handbook
Apr 24, 2026 · Interview Experience

Why Use Coroutines When Threads Already Exist? Java Interview Deep Dive

An interview‑focused analysis explains how processes allocate resources, threads handle CPU scheduling, and coroutines act as lightweight user‑mode threads, comparing their creation costs, switching overhead, and memory usage, and highlights Java 19/21 virtual threads as the Java implementation of coroutines.

ThreadVirtual Threadsconcurrency
0 likes · 13 min read
Why Use Coroutines When Threads Already Exist? Java Interview Deep Dive
php Courses
php Courses
Jan 6, 2026 · Backend Development

Boost Email Delivery Speed with PHP Async Coroutines

This article explains how to use PHP asynchronous coroutines with Swoole and PHPMailer to concurrently send large volumes of emails, improving performance, stability, and resource usage compared to traditional synchronous mailing methods.

AsyncEmailPHPMailer
0 likes · 5 min read
Boost Email Delivery Speed with PHP Async Coroutines
Open Source Tech Hub
Open Source Tech Hub
Nov 17, 2025 · Backend Development

Mastering High‑Performance PHP with Swoole: Multi‑Process, Coroutine, and Async I/O Guide

Learn how Swoole transforms PHP into a high‑performance, asynchronous server by detailing its multi‑process architecture, reactor‑worker‑task model, coroutine‑enabled I/O, and practical code examples for TCP clients, HTTP servers, and file operations, enabling scalable, non‑blocking applications.

AsynchronousBackendNetwork I/O
0 likes · 7 min read
Mastering High‑Performance PHP with Swoole: Multi‑Process, Coroutine, and Async I/O Guide
Liangxu Linux
Liangxu Linux
Nov 4, 2025 · Fundamentals

Why a Single‑Threaded Event Loop Can Beat Multithreading: Exploring Coroutines and the Reactor Pattern

This article walks through serial file reading, thread‑based parallelism, event‑driven asynchronous I/O, callbacks, and finally shows how coroutines combined with an event loop provide a synchronous‑style solution that scales efficiently without the drawbacks of massive threading.

Reactor Patternasynchronous programmingcoroutine
0 likes · 13 min read
Why a Single‑Threaded Event Loop Can Beat Multithreading: Exploring Coroutines and the Reactor Pattern
Code Mala Tang
Code Mala Tang
Oct 10, 2025 · Fundamentals

Why async/await Doesn’t Give You Concurrency – And How to Make It Work

Although Python’s async/await syntax lets you pause and resume functions, it alone doesn’t run tasks concurrently; you must explicitly schedule coroutines with tools like asyncio.create_task(), gather(), or TaskGroup, and understand when to use sequential versus concurrent execution to avoid common pitfalls.

async/awaitasyncioconcurrency
0 likes · 10 min read
Why async/await Doesn’t Give You Concurrency – And How to Make It Work
php Courses
php Courses
Sep 23, 2025 · Backend Development

Coroutines vs Fibers in PHP: Which Concurrency Model Wins?

This article explains the fundamental differences between coroutines and fibers in modern PHP, covering their concepts, implementation layers, scheduling, stack management, integration, and practical code examples, helping developers choose the right concurrency approach for high‑performance applications.

AsynchronousFiberPHP
0 likes · 10 min read
Coroutines vs Fibers in PHP: Which Concurrency Model Wins?
Liangxu Linux
Liangxu Linux
Aug 19, 2025 · Backend Development

From Callbacks to Promises: Solving Callback Hell with Async Patterns

The article explains how early thread‑blocking models led to the invention of callbacks, why deeply nested callbacks create "callback hell," and how promises/futures and their chaining, as well as coroutines, provide more linear and efficient asynchronous programming for high‑concurrency backend services.

Callbacksasynchronous programmingcallback hell
0 likes · 6 min read
From Callbacks to Promises: Solving Callback Hell with Async Patterns
Open Source Tech Hub
Open Source Tech Hub
Aug 6, 2025 · Backend Development

Swow 1.0 Release: Full PHP 8.4 Support, New Pipe API, and Critical Fixes

The latest Swow release brings complete PHP 8.4 compatibility, introduces a powerful pipe API (Swow\pipe(), Swow\fileno(), Swow\pipe_from_fd()), adds CPU core detection via Swow\nproc(), enhances SSL/TLS reliability, restructures closure serialization, fixes numerous memory‑safety and compatibility bugs, and updates internal libraries.

PHP 8.4Release NotesSwow
0 likes · 4 min read
Swow 1.0 Release: Full PHP 8.4 Support, New Pipe API, and Critical Fixes
Go Programming World
Go Programming World
Jul 20, 2025 · Fundamentals

Unlocking Go 1.23 Iterators: Deep Dive into Push & Pull Mechanisms

This comprehensive guide explores Go 1.23's iterator system, detailing the underlying principles of push and pull iterators, code transformations performed by the compiler, coroutine implementation, and practical examples that compare Go's approach with Python and JavaScript, helping developers master iterator usage and design.

GoIteratorsPull Iterator
0 likes · 29 min read
Unlocking Go 1.23 Iterators: Deep Dive into Push & Pull Mechanisms
AndroidPub
AndroidPub
Jul 3, 2025 · Mobile Development

Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs

This article explains how Kotlin coroutine cancellation works, why catching CancellationException can create zombie coroutines, and provides concrete patterns—using isActive, coroutineContext.ensureActive(), and proper try‑catch placement—to reliably stop repeating tasks without resource leaks.

AsyncCancellationExceptionKotlin
0 likes · 9 min read
Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs
Deepin Linux
Deepin Linux
Jun 21, 2025 · Backend Development

Unlocking High-Concurrency in C/C++: A Deep Dive into Coroutines and Their Implementation

This comprehensive guide explores how coroutines provide a lightweight, lock‑free alternative to traditional threads for high‑concurrency C/C++ server programming, covering their fundamentals, differences from threads, implementation techniques, context switching, scheduler design, epoll integration, timer management, and performance testing.

C++Schedulerasynchronous I/O
0 likes · 57 min read
Unlocking High-Concurrency in C/C++: A Deep Dive into Coroutines and Their Implementation
Bilibili Tech
Bilibili Tech
Jun 13, 2025 · Mobile Development

How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS

This article details Bilibili's practical experience with Kotlin Multiplatform (KMP), covering the choice of Bazel as a build system, multi‑language interop, dependency injection, modular export, state‑machine driven single‑direction data flow, and the successful deployment of shared logic and UI across Android, iOS, and HarmonyOS platforms.

BazelCompose UICross‑platform
0 likes · 20 min read
How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS
php Courses
php Courses
Apr 23, 2025 · Backend Development

Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices

This article explains the fundamentals of Python coroutines and the asyncio library, covering basic concepts, key components, practical examples, advanced techniques such as mixing with threads, cancellation handling, performance optimizations, and common troubleshooting tips for asynchronous programming.

Pythonasynchronous programmingasyncio
0 likes · 9 min read
Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices
php Courses
php Courses
Mar 18, 2025 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to use PHP asynchronous coroutines, powered by Swoole, to concurrently send large volumes of email, improving throughput and stability, and provides a complete code example with PHPMailer integration and channel-based task distribution.

coroutine
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
Ops Development & AI Practice
Ops Development & AI Practice
Mar 1, 2025 · Fundamentals

Understanding Concurrency Scheduling Models: From User Threads to Go’s M:P:G Scheduler

This article explains the main concurrency scheduling models—including user‑level, kernel‑level, two‑level (M:N), and coroutine approaches—covers common scheduling algorithms, and details Go’s unique M:P:G scheduler, highlighting its principles, workflow, and advantages for high‑performance parallel execution.

GoroutineSchedulingThreads
0 likes · 9 min read
Understanding Concurrency Scheduling Models: From User Threads to Go’s M:P:G Scheduler
Code Mala Tang
Code Mala Tang
Jan 26, 2025 · Fundamentals

Master Python Async: Boost Performance with asyncio, async/await, and Tasks

This guide explains Python asynchronous programming using the asyncio library, covering async functions, coroutine objects, the event loop, await syntax, task creation, and concurrent execution with asyncio.run, create_task, and gather to improve I/O‑bound performance.

Pythonasync/awaitasynchronous programming
0 likes · 7 min read
Master Python Async: Boost Performance with asyncio, async/await, and Tasks
Open Source Tech Hub
Open Source Tech Hub
Jan 18, 2025 · Backend Development

What New Features Does workerman v5 Bring to PHP Coroutines?

The article explains workerman v5’s major updates—including a revolt/event-loop based engine and multi‑implementation coroutine support—while detailing PHP coroutine concepts, practical async export examples, code snippets, and the future challenges of expanding coroutine ecosystems in PHP.

AsynchronousPHPcoroutine
0 likes · 8 min read
What New Features Does workerman v5 Bring to PHP Coroutines?
php Courses
php Courses
Dec 11, 2024 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to use PHP asynchronous coroutines and Swoole to concurrently send large volumes of email, improving speed, stability, and resource usage, and includes a complete code example with PHPMailer integration.

AsynchronousPHPSwoole
0 likes · 6 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
php Courses
php Courses
Nov 28, 2024 · Backend Development

Advanced Coroutine Frameworks with Swoole 5, Hyperf 3, and PHP 8

This course provides an in‑depth exploration of Swoole 5, Hyperf 3, and PHP 8 coroutine frameworks, teaching developers how to leverage coroutines for high‑performance, concurrent PHP applications through practical, step‑by‑step instruction and comprehensive coverage of installation, core principles, and advanced implementation techniques.

HyperfPHPSwoole
0 likes · 5 min read
Advanced Coroutine Frameworks with Swoole 5, Hyperf 3, and PHP 8
php Courses
php Courses
Nov 13, 2024 · Backend Development

Deep Dive into Swoole5, Hyperf3, and PHP8 Coroutine Frameworks

This course provides an in‑depth analysis of the new coroutine features in Swoole5, Hyperf3, and PHP8, teaching developers how to leverage coroutines for higher concurrency, improved performance, and efficient PHP backend development through practical, hands‑on examples.

HyperfPHPSwoole
0 likes · 6 min read
Deep Dive into Swoole5, Hyperf3, and PHP8 Coroutine Frameworks
Test Development Learning Exchange
Test Development Learning Exchange
Oct 14, 2024 · Fundamentals

Understanding async and await in Python with Practical Examples

This article introduces Python's async and await keywords, explains how they enable coroutine programming, and provides multiple practical examples including simple coroutine definitions, awaiting tasks, concurrent execution with asyncio.gather, HTTP requests using aiohttp, and resource management with custom coroutine-based managers.

AsyncPythonasyncio
0 likes · 6 min read
Understanding async and await in Python with Practical Examples
php Courses
php Courses
Sep 11, 2024 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to improve the speed and stability of bulk email delivery in modern web applications by using PHP asynchronous coroutines with Swoole, providing a detailed code example that leverages PHPMailer, channels, and coroutine management.

AsynchronousBackendEmail
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
Deepin Linux
Deepin Linux
Aug 26, 2024 · Fundamentals

Understanding and Preventing Memory Leaks in C++ Applications

The article explains what memory leaks are, common causes, and presents practical techniques such as avoiding heap allocations, using smart pointers, employing arena allocators, leveraging coroutines, applying RAII, and debugging with tools like gperftools to detect and resolve leaks in C++ programs.

ArenaC++RAII
0 likes · 12 min read
Understanding and Preventing Memory Leaks in C++ Applications
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2024 · Backend Development

Boost PHP Performance with PRipple: A Native Coroutine Framework

PRipple is a high‑performance native PHP coroutine framework built on PHP 8.1 fibers and the Revolt library, offering simple APIs for asynchronous I/O, seamless integration with popular PHP frameworks, and easy installation via Composer for developing concurrent, high‑load applications.

FrameworkPHPasync I/O
0 likes · 6 min read
Boost PHP Performance with PRipple: A Native Coroutine Framework
php Courses
php Courses
May 21, 2024 · Backend Development

Deep Dive into Swoole 5, Hyperf 3, and PHP 8 Coroutine Frameworks

This course offers an in‑depth exploration of Swoole 5, Hyperf 3, and PHP 8 coroutine features, teaching developers how to harness asynchronous programming to boost concurrency, performance, and efficiency in modern PHP applications through practical, hands‑on examples.

FrameworkHyperfPHP8
0 likes · 4 min read
Deep Dive into Swoole 5, Hyperf 3, and PHP 8 Coroutine Frameworks
Open Source Tech Hub
Open Source Tech Hub
Jan 21, 2024 · Backend Development

Master Swoole: Install, Configure, and Harness PHP Coroutines

This guide explains what Swoole is, provides step‑by‑step installation and configuration instructions for the PHP extension, shows how to enable it in the Webman framework, and demonstrates coroutine concepts with practical PHP code examples and expected output.

BackendSwoolecoroutine
0 likes · 7 min read
Master Swoole: Install, Configure, and Harness PHP Coroutines
Tencent Cloud Developer
Tencent Cloud Developer
Jan 19, 2024 · Backend Development

Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs

This article revisits a 2017 decision to ban exceptions in a large codebase, examines the technical and organizational reasons behind that rule, analyzes exception mechanics, coroutine interactions, and performance impacts with concrete C++ examples, and finally proposes a pragmatic action plan for safely adopting exception‑driven design.

ConsistencyException HandlingSoftware Architecture
0 likes · 33 min read
Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs
Deepin Linux
Deepin Linux
Nov 17, 2023 · Backend Development

Understanding Coroutines: Principles, Implementations, and Performance in C/C++

This article explains the concept of coroutines as lightweight user‑level threads, compares them with traditional threads, details various implementation mechanisms in C/C++ (including libco and NtyCo), and demonstrates how they improve I/O‑bound server performance through examples and code snippets.

C++NtyCocoroutine
0 likes · 45 min read
Understanding Coroutines: Principles, Implementations, and Performance in C/C++
php Courses
php Courses
Nov 8, 2023 · Backend Development

Implementing Thread Pools and Coroutines in PHP

This article explains how to implement low‑level thread pools and coroutine mechanisms in PHP, providing detailed code examples that demonstrate creating a ThreadPool class, managing worker threads, and using generator‑based coroutines to achieve high‑performance, concurrent execution.

PHPconcurrencycoroutine
0 likes · 5 min read
Implementing Thread Pools and Coroutines in PHP
Liangxu Linux
Liangxu Linux
Sep 29, 2023 · Fundamentals

Why Coroutines Matter: A Beginner’s Guide to Pausable Functions

This article explains what coroutines are, how they differ from ordinary functions by supporting multiple pause points, demonstrates their behavior with Python code and visual diagrams, covers their historical origins, and details low‑level implementation using stack frames and heap allocation for efficient user‑level concurrency.

PythonYieldasynchronous programming
0 likes · 13 min read
Why Coroutines Matter: A Beginner’s Guide to Pausable Functions
FunTester
FunTester
Jun 28, 2023 · Backend Development

Designing a Go Coroutine Pool Based on Java ThreadPoolExecutor

This article explains how to implement a high‑performance Go coroutine pool by adapting key features of Java’s ThreadPoolExecutor, covering core parameters, task queue design, dynamic scaling, worker management, timeout handling, and provides complete code examples and self‑test results.

BackendGoThreadPool
0 likes · 10 min read
Designing a Go Coroutine Pool Based on Java ThreadPoolExecutor
vivo Internet Technology
vivo Internet Technology
Apr 19, 2023 · Fundamentals

Coroutines and Their Implementation in Tars C++

The article introduces coroutine fundamentals and classifications, then explains how the Tars C++ framework (v3.0.0) implements stackful, symmetric coroutines using Boost.Context for user‑mode context switching and an epoll‑driven scheduler that manages coroutine lifecycles, states, and operations such as go, yield, sleep, and put.

C++SchedulerTars
0 likes · 13 min read
Coroutines and Their Implementation in Tars C++
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 14, 2022 · Databases

How We Turned RocksDB into a High‑Performance Coroutine Engine

By manually modifying a few hundred lines and using an automated script, we transformed the multithreaded RocksDB storage engine into a coroutine‑based version with PhotonLibOS, achieving near‑identical functionality and, in heavy I/O and high‑concurrency scenarios, up to double the throughput compared to the original.

PhotonLibOSRocksDBcoroutine
0 likes · 16 min read
How We Turned RocksDB into a High‑Performance Coroutine Engine
Tencent Cloud Developer
Tencent Cloud Developer
Nov 11, 2022 · Databases

How KeeWiDB Solves Redis’s Memory Cost with Tiered Storage & Async I/O

KeeWiDB, a next‑generation distributed KV store from Tencent Cloud, combines a proxy layer, multi‑node service layer, tiered hot‑cold data placement, multi‑threaded and coroutine‑based processing, persistent memory caching, direct I/O, and enhanced replication to address Redis’s memory cost, scalability, and latency challenges.

Async IOKV StorePersistent Memory
0 likes · 18 min read
How KeeWiDB Solves Redis’s Memory Cost with Tiered Storage & Async I/O
Tencent Cloud Developer
Tencent Cloud Developer
Sep 28, 2022 · Fundamentals

Understanding C++20 Coroutines: Promise, Await, and Practical Examples

C++20 coroutines turn functions containing co_await, co_yield, or co_return into suspendable tasks, requiring a promise_type that defines get_return_object, initial_suspend, final_suspend, yield_value, return handling, and exception management, while handles manage resumption, and custom awaiters enable asynchronous I/O such as non‑blocking TCP connections.

AsyncC++20Promise
0 likes · 13 min read
Understanding C++20 Coroutines: Promise, Await, and Practical Examples
Tencent Cloud Developer
Tencent Cloud Developer
Aug 23, 2022 · Backend Development

Understanding Asio Coroutine Implementation in C++20

The article explains how Asio implements C++20 coroutine support by converting callback‑based async operations into awaitables with use_awaitable, launching them via co_spawn and co_spawn_entry_point, handling result propagation and thread dispatch, and providing parallel composition operators (&&, ||) for concurrent awaiting.

AsioAsyncC++
0 likes · 26 min read
Understanding Asio Coroutine Implementation in C++20
Dada Group Technology
Dada Group Technology
Aug 19, 2022 · Backend Development

Improving High‑Concurrency System Performance with Coroutines and the Quasar Framework

The article analyzes the high load and low CPU utilization problems of a Java service, compares various I/O models, introduces coroutine fundamentals and the Quasar library, demonstrates practical migration steps with code examples, and evaluates the performance gains and risks of adopting coroutine‑based concurrency.

BackendIO ModelQuasar
0 likes · 19 min read
Improving High‑Concurrency System Performance with Coroutines and the Quasar Framework
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.

C10MStacklesscoroutine
0 likes · 9 min read
Coroutine Scheduling and Stack Management for High-Concurrency Systems
Tencent Cloud Developer
Tencent Cloud Developer
Jun 16, 2022 · Game Development

C++20 Coroutines and Execution: Building an Asynchronous Game Server Framework

The article explains how C++20 coroutines and the emerging execution framework are used to redesign a single‑threaded game‑server architecture, detailing custom async wrappers, integration with asio and libunifex, job‑type scheduling, example coroutine code, current limitations, and a roadmap toward a simpler, sender/receiver‑based async library.

AsynchronousC++20Game Development
0 likes · 19 min read
C++20 Coroutines and Execution: Building an Asynchronous Game Server Framework
php Courses
php Courses
May 18, 2022 · Backend Development

Aggregating High‑Concurrency Requests with Swoole Coroutine in PHP

This tutorial explains how to improve high‑concurrency order processing by aggregating requests and using batch inserts with Swoole coroutines in PHP, illustrating the concept with elevator‑like logic and a complete code example.

Request AggregationSwoolecoroutine
0 likes · 6 min read
Aggregating High‑Concurrency Requests with Swoole Coroutine in PHP
Tencent Cloud Developer
Tencent Cloud Developer
Mar 10, 2022 · Fundamentals

How to Build a Stackful C++ Coroutine from Scratch: Deep Dive into Context Switching

This article provides a step‑by‑step technical guide to implementing C++ stackful coroutines, covering the design of the owl.context API, low‑level context‑switch principles, register saving conventions on 32‑bit ARM, and complete source code for co_getcontext, co_setcontext, co_swapcontext and co_makecontext with illustrative examples and diagrams.

ARMAssemblySystem Programming
0 likes · 15 min read
How to Build a Stackful C++ Coroutine from Scratch: Deep Dive into Context Switching
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2021 · Fundamentals

Understanding Iteration, Iterables, Iterators, Generators, Coroutines, Greenlet and Gevent in Python

This tutorial explains Python's iteration concepts, how to identify and create iterable objects, implement custom iterables and iterators, use the iter() and next() functions, build generators with yield, control execution with coroutines, and leverage greenlet and gevent for cooperative multitasking.

Iteratorcoroutinegenerator
0 likes · 22 min read
Understanding Iteration, Iterables, Iterators, Generators, Coroutines, Greenlet and Gevent in Python
WeChat Client Technology Team
WeChat Client Technology Team
Oct 21, 2021 · Fundamentals

Why We Built Our Own C++ Coroutine Framework and How It Boosts Development Efficiency

This article explains the motivation behind creating the C++ coroutine framework "owl" for the cross‑platform WeChat client, compares callback, promise, and coroutine approaches with code examples, and details its design choices such as stackful coroutines, single‑thread scheduling, structured concurrency, and performance characteristics.

AsynchronousFrameworkc++
0 likes · 19 min read
Why We Built Our Own C++ Coroutine Framework and How It Boosts Development Efficiency
Tencent Cloud Developer
Tencent Cloud Developer
Sep 23, 2021 · Game Development

Understanding C++20 Coroutines and Their Application in a Game Scheduler

The article walks through C++20 coroutines—from basic suspension mechanics and the roles of coroutine_handle, promise_type, and awaitable methods—to constructing a lightweight game scheduler that manages task lifetimes, await modes, and RPC integration, and demonstrates how this approach mirrors Python’s yield‑based skill system while offering clearer, high‑performance native code.

AsynchronousC++20Game Development
0 likes · 29 min read
Understanding C++20 Coroutines and Their Application in a Game Scheduler
Tech Musings
Tech Musings
Sep 21, 2021 · Backend Development

Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls

This article shares a developer’s experience converting a Java Spring Boot microservice to Kotlin, covering why Kotlin is attractive, required Maven plugins and dependencies, code‑migration quirks such as open classes and @Jvm annotations, testing hurdles, and the final decision to revert to Java.

KotlinSpring Bootcode migration
0 likes · 11 min read
Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls
Python Programming Learning Circle
Python Programming Learning Circle
Sep 11, 2021 · Fundamentals

A Comparative Overview of Python and JavaScript Coroutines

This article compares the evolution, concepts, and practical implementations of coroutines in Python and JavaScript, explaining their histories, core mechanisms such as async/await, event loops, and providing side‑by‑side code examples to help newcomers understand asynchronous programming in both languages.

AsyncPythonawait
0 likes · 15 min read
A Comparative Overview of Python and JavaScript Coroutines
MaGe Linux Operations
MaGe Linux Operations
Jul 12, 2021 · Backend Development

Boost Python API Testing Speed with Async httpx: A Practical Guide

This article explains what coroutines are, compares them with threads, outlines when to use them, introduces the async‑capable httpx library, shows installation and sample code, and demonstrates a performance test where asynchronous requests cut execution time by about 73% compared to synchronous requests.

BackendPythonasyncio
0 likes · 7 min read
Boost Python API Testing Speed with Async httpx: A Practical Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 5, 2021 · Backend Development

Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await

This article explains how Python implements coroutines for high‑performance network and web programming by combining OS‑level IO multiplexing, generator‑based control flow, callback elimination, stack‑driven call‑chain traversal, Future objects, and the evolution toward async/await syntax.

GeneratorsIO Multiplexingasync/await
0 likes · 18 min read
Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 31, 2021 · Backend Development

How libtask Implements Coroutines for High‑Performance Servers in C

libtask, a lightweight coroutine library written by Russ Cox, demonstrates how to build a cooperative multitasking scheduler in C, detailing task creation, context switching, epoll‑based I/O handling, and a non‑preemptive FIFO scheduling model that enables asynchronous I/O to appear synchronous for server development.

asynchronous I/Oc++coroutine
0 likes · 19 min read
How libtask Implements Coroutines for High‑Performance Servers in C
Python Programming Learning Circle
Python Programming Learning Circle
Mar 23, 2021 · Fundamentals

Coroutines and Asynchronous Programming in Python

This article explains Python coroutines, their advantages over threads, demonstrates producer‑consumer patterns, introduces the asyncio event loop, shows how to use async/await syntax, and provides examples of asynchronous network requests and a simple aiohttp server for high‑concurrency I/O.

Pythonaiohttpasync/await
0 likes · 13 min read
Coroutines and Asynchronous Programming in Python
Beike Product & Technology
Beike Product & Technology
Mar 19, 2021 · Backend Development

Implementing a PHP Coroutine Task Scheduler for Concurrent RPC and MySQL Access

This article presents a PHP coroutine‑based Task Scheduler that enables high‑concurrency RPC calls and asynchronous MySQL queries, explains its design and implementation with code examples, compares performance against traditional synchronous and HttpMultiClient approaches, and discusses task dependency handling using DAG and topological sorting.

AsyncRPCconcurrency
0 likes · 19 min read
Implementing a PHP Coroutine Task Scheduler for Concurrent RPC and MySQL Access
php Courses
php Courses
Feb 3, 2021 · Backend Development

Getting Started with Hyperf: Installation, Configuration, and Running the Swoole‑Based PHP Coroutine Framework

This guide introduces Hyperf, a high‑performance PHP coroutine framework built on Swoole, explains its CLI vs PHP‑FPM modes, lists required system extensions, shows how to configure Composer mirrors, install the skeleton, disable Swoole short names, start the server, and resolve common port‑conflict issues.

CLIDockerHyperf
0 likes · 5 min read
Getting Started with Hyperf: Installation, Configuration, and Running the Swoole‑Based PHP Coroutine Framework
Laravel Tech Community
Laravel Tech Community
Jan 31, 2021 · Backend Development

Wind Framework 1.0.3 Release Notes

Version 1.0.3 of the pure PHP coroutine Wind Framework introduces a new Chan class for intra-process coroutine messaging, enhances the message queue with Redis and Beanstalk drivers supporting massive consumer counts and timeout settings, and fixes several Beanstalk client command errors.

BeanstalkFrameworkMessage Queue
0 likes · 2 min read
Wind Framework 1.0.3 Release Notes
macrozheng
macrozheng
Oct 22, 2020 · Fundamentals

Can Threads Pause and Resume? A Tale of Coroutines Across Java and Go

A whimsical story depicts a GoLang envoy introducing the concept of coroutines to the proud Java empire, contrasting thread blocking, asynchronous callbacks, and cooperative scheduling, and explores how execution contexts can be saved, switched, and resumed without OS intervention.

GolangThreadcoroutine
0 likes · 8 min read
Can Threads Pause and Resume? A Tale of Coroutines Across Java and Go
MaGe Linux Operations
MaGe Linux Operations
Aug 24, 2020 · Fundamentals

Why Coroutines Outperform Threads: A Deep Dive into Python’s Generator Magic

Coroutines, also known as micro‑threads, allow a single thread to pause and resume functions, offering higher efficiency than traditional multithreading by eliminating context‑switch overhead and lock contention, with Python’s generator‑based implementation enabling lock‑free producer‑consumer patterns and seamless multi‑core utilization via processes.

Producer ConsumerPythonconcurrency
0 likes · 7 min read
Why Coroutines Outperform Threads: A Deep Dive into Python’s Generator Magic
Liangxu Linux
Liangxu Linux
Aug 13, 2020 · Fundamentals

When to Use Processes, Threads, or Coroutines in Python? A Practical Guide

This article explains the operating‑system concepts of processes, threads, and coroutines, compares their performance with Python code examples, discusses the impact of the GIL and DMA, and provides clear guidelines for choosing the right concurrency model based on CPU‑bound, I/O‑bound, or mixed workloads.

Threadconcurrencycoroutine
0 likes · 18 min read
When to Use Processes, Threads, or Coroutines in Python? A Practical Guide
dbaplus Community
dbaplus Community
Jul 2, 2020 · Backend Development

Why High Concurrency Is Really About Squeezing CPU Performance

The article explains that high concurrency in distributed systems is measured by QPS, but its essence lies in effectively utilizing CPU resources, discusses control‑variable analysis of the HTTP request flow, compares PHP‑Swoole and Java‑Netty implementations, and shows how coroutine‑based designs can dramatically boost throughput when I/O blocking is present.

Backend PerformanceNettySwoole
0 likes · 15 min read
Why High Concurrency Is Really About Squeezing CPU Performance
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jun 12, 2020 · Backend Development

Understanding Swoole Coroutines and Asynchronous I/O in PHP

This article explains the fundamentals of Swoole coroutines, how they differ from threads and processes, the relationship between coroutines and asynchronous I/O, and provides practical code examples for timers, tasks, and concurrent DNS queries to help PHP developers write efficient, non‑blocking backend applications.

PHPSwooleasynchronous I/O
0 likes · 14 min read
Understanding Swoole Coroutines and Asynchronous I/O in PHP
iQIYI Technical Product Team
iQIYI Technical Product Team
Jun 5, 2020 · Backend Development

Design and Implementation of iQiyi's libfiber Network Coroutine Library

Using iQiyi’s open‑source libfiber as a case study, the article explains how network coroutines combine sequential programming simplicity with non‑blocking I/O scalability, detailing libfiber’s single‑threaded scheduler, cross‑platform event engine, coroutine‑aware synchronization, API hooking, and its deployment in high‑performance CDN caching and DNS services.

Network programmingcoroutinehigh concurrency
0 likes · 26 min read
Design and Implementation of iQiyi's libfiber Network Coroutine Library
Laravel Tech Community
Laravel Tech Community
May 29, 2020 · Backend Development

Swoole Coroutine Channel: Overview, Methods, and Example Usage

This article introduces Swoole's Coroutine Channel for inter‑coroutine communication, explains its memory‑efficient implementation and key methods such as __construct, push, pop, stats, close, length, isEmpty, isFull, capacity and errCode, and provides a complete PHP example demonstrating producer‑consumer behavior.

AsyncChannelPHP
0 likes · 5 min read
Swoole Coroutine Channel: Overview, Methods, and Example Usage
58 Tech
58 Tech
May 20, 2020 · Backend Development

Design and Implementation of an Asynchronous PHP Microservice Framework Based on Swoole

This article presents the design, reconstruction, and deployment of an asynchronous, event‑driven PHP microservice framework built on Swoole, detailing its background, technical objectives, serialization, RPC architecture, coroutine handling, service governance, and performance improvements for high‑concurrency rental‑business applications.

AsynchronousBackendRPC
0 likes · 10 min read
Design and Implementation of an Asynchronous PHP Microservice Framework Based on Swoole
Python Programming Learning Circle
Python Programming Learning Circle
Sep 9, 2019 · Fundamentals

Master Python Coroutines: From Generators to async/await

This article walks through the evolution of Python's coroutine support—from early generator‑based yield/send patterns, through the introduction of @asyncio.coroutine and yield from, to the modern async and await syntax—explaining concepts, execution flow, and providing clear code examples.

PythonYieldasync/await
0 likes · 10 min read
Master Python Coroutines: From Generators to async/await
Java Captain
Java Captain
Jun 28, 2019 · Backend Development

Understanding High Concurrency: CPU Utilization, Context Switching, and Performance Comparison of PHP Swoole vs Java Netty

This article explains that high concurrency is fundamentally about efficiently squeezing CPU resources, discusses the evolution of concurrency models, presents a control‑variable analysis of HTTP request flow, and compares PHP‑Swoole with Java‑Netty through detailed benchmark results and code examples.

Java NettyPHP SwoolePerformance Testing
0 likes · 13 min read
Understanding High Concurrency: CPU Utilization, Context Switching, and Performance Comparison of PHP Swoole vs Java Netty
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 28, 2019 · Mobile Development

Why Alibaba’s coobjc Coroutine Framework Is Revolutionizing iOS Asynchronous Programming

Alibaba’s newly open‑sourced coobjc framework brings coroutine‑based async/await, generators, and actor model support to Objective‑C and Swift on iOS, offering cleaner code, better performance, and reduced threading issues compared to traditional block‑based GCD approaches, with detailed design, implementation, and benchmark insights.

asynchronous programmingcoobjccoroutine
0 likes · 12 min read
Why Alibaba’s coobjc Coroutine Framework Is Revolutionizing iOS Asynchronous Programming
MaGe Linux Operations
MaGe Linux Operations
Feb 14, 2019 · Fundamentals

Master Python Coroutines: From Basics to Real-World File Search

This article explains the concept of coroutines, compares them with threads, outlines their pros and cons, and demonstrates multiple Python implementations using yield, send, and decorators, culminating in a practical generator‑based file‑search utility that mimics the Linux grep command.

File SearchPythoncoroutine
0 likes · 11 min read
Master Python Coroutines: From Basics to Real-World File Search
360 Quality & Efficiency
360 Quality & Efficiency
Jan 18, 2019 · Backend Development

Understanding Asynchronous Programming in Python with Tornado and asyncio

This article explains the fundamentals of asynchronous programming, contrasting blocking, non‑blocking, synchronous and asynchronous execution, and demonstrates how to implement async behavior in Python using Tornado, asyncio, and aiohttp, including coroutine definitions, yield usage, and practical code examples.

AsynchronousPythonaiohttp
0 likes · 12 min read
Understanding Asynchronous Programming in Python with Tornado and asyncio
MaGe Linux Operations
MaGe Linux Operations
Dec 2, 2018 · Backend Development

Master Python asyncio: From Coroutines to Event Loops Explained

This article introduces Python's asyncio library, explains how coroutines are defined and run, demonstrates event‑loop management with run_until_complete and run_forever, covers callbacks, gathering multiple coroutines, and best practices for closing loops, all illustrated with clear code screenshots.

asynchronous programmingasyncioconcurrency
0 likes · 7 min read
Master Python asyncio: From Coroutines to Event Loops Explained
MaGe Linux Operations
MaGe Linux Operations
Aug 23, 2018 · Backend Development

Inside Tornado’s IOLoop: Callbacks, Futures & Coroutines Explained

This article provides a detailed examination of Tornado’s IOLoop core, explaining its callback handling, timer management, I/O event loop, and the pivotal role of Future objects, while also demystifying the implementation of gen.coroutine and offering practical code examples to illustrate asynchronous execution.

AsynchronousFutureIOLoop
0 likes · 11 min read
Inside Tornado’s IOLoop: Callbacks, Futures & Coroutines Explained
MaGe Linux Operations
MaGe Linux Operations
Dec 6, 2017 · Fundamentals

Master Python Multiprocessing and Coroutines: From Queues to Async Efficiency

This article explains Python's inter-process communication methods, including process creation, queues, pipes, locks, and pools, and introduces coroutines as lightweight alternatives, detailing their creation with gevent, practical web crawling, and socket server implementations, highlighting performance benefits and appropriate use cases.

Pythonconcurrencycoroutine
0 likes · 6 min read
Master Python Multiprocessing and Coroutines: From Queues to Async Efficiency