Tag

Coroutines

2 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 4, 2025 · Backend Development

Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization

This article explains Java's lock mechanisms—including synchronized, ReentrantLock, and their JVM implementations—covers lock classifications, memory barriers, CAS, and compares them with Kotlin coroutine synchronization tools like Mutex, providing code examples and practical guidance for safe concurrent programming.

CoroutinesJVMJava
0 likes · 22 min read
Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization
Java Tech Enthusiast
Java Tech Enthusiast
May 31, 2025 · Fundamentals

Why Threads Alone Struggle to Achieve Million‑Scale Concurrency and How Coroutines Provide a Better Solution

The article examines why relying solely on threads cannot achieve single‑machine million‑level concurrency, analyzing thread resource consumption, context‑switch overhead, and contrasting it with user‑space coroutine scheduling that offers predictable, low‑cost switches, making coroutines better suited for IO‑intensive high‑concurrency scenarios.

CoroutinesThreadsconcurrency
0 likes · 6 min read
Why Threads Alone Struggle to Achieve Million‑Scale Concurrency and How Coroutines Provide a Better Solution
AndroidPub
AndroidPub
May 29, 2025 · Mobile Development

Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android

This article highlights five common Kotlin coroutine pitfalls for Android developers—directly calling suspend functions in Views, misusing GlobalScope, sequential network calls, improper exception handling, and ignoring cancellation—while providing correct implementations and best‑practice guidelines to avoid them.

AndroidCoroutinesKotlin
0 likes · 10 min read
Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android
IT Services Circle
IT Services Circle
May 27, 2025 · Fundamentals

Why a Thread‑Only Model Struggles to Reach Million‑Level Concurrency on a Single Machine

The article analyzes why relying solely on operating‑system threads cannot easily achieve single‑machine million‑level concurrency, examining thread stack memory misconceptions, kernel‑level context‑switch costs, and how user‑space coroutine scheduling overcomes these limits.

CoroutinesIO MultiplexingThreads
0 likes · 6 min read
Why a Thread‑Only Model Struggles to Reach Million‑Level Concurrency on a Single Machine
php中文网 Courses
php中文网 Courses
Apr 18, 2025 · 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, detailing the underlying principles, advantages over synchronous sending, and providing a complete code example with Swoole, PHPMailer, and channel coordination.

CoroutinesEmailPHP
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
DaTaobao Tech
DaTaobao Tech
Apr 2, 2025 · Backend Development

Understanding Java Virtual Threads: From Traditional Thread Models to Stackful Coroutines

The article traces Java’s concurrency evolution from heavyweight thread‑per‑request and complex reactive models to JDK 21’s virtual threads, which act as stack‑ful coroutines offering lightweight, heap‑allocated threads, full stack traces, and blocking‑I/O compatibility while preserving the familiar thread API.

Async ProgrammingCoroutinesJDK21
0 likes · 24 min read
Understanding Java Virtual Threads: From Traditional Thread Models to Stackful Coroutines
Code Mala Tang
Code Mala Tang
Mar 15, 2025 · Backend Development

Master Async Python: Boost Performance with Coroutines and Event Loops

This guide introduces asynchronous Python, explaining why async improves speed, how coroutines and the event loop work, and provides practical examples and common pitfalls to help developers write faster, more efficient I/O‑bound code.

Asynchronous ProgrammingCoroutinesEvent Loop
0 likes · 14 min read
Master Async Python: Boost Performance with Coroutines and Event Loops
Code Mala Tang
Code Mala Tang
Mar 13, 2025 · Fundamentals

Unlock Python’s Power: 10 Advanced Features Every Developer Should Master

This article explores ten advanced Python features—including context managers, metaclasses, coroutines, abstract base classes, descriptors, threading, duck typing, data classes, list comprehensions, and custom iterators—explaining their purpose, core syntax, and practical code examples to help developers write cleaner, more efficient code.

Advanced FeaturesCoroutinesData Classes
0 likes · 9 min read
Unlock Python’s Power: 10 Advanced Features Every Developer Should Master
Test Development Learning Exchange
Test Development Learning Exchange
Jan 23, 2025 · Fundamentals

Advanced Python Features: Generators, Context Managers, Metaclasses, and More

This article introduces twelve advanced Python features—including generators, context managers, metaclasses, descriptors, coroutines, data classes, type annotations, multiple inheritance with mixins, exception chaining, modules and packages, itertools, and regular expressions—explaining their purpose and providing clear code examples to illustrate each concept.

Advanced FeaturesContext ManagersCoroutines
0 likes · 8 min read
Advanced Python Features: Generators, Context Managers, Metaclasses, and More
Deepin Linux
Deepin Linux
Jan 8, 2025 · Fundamentals

Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications

This article explains the fundamentals of C++20 coroutines, describing their lightweight asynchronous execution model, key language constructs such as co_await, co_yield, and co_return, the underlying components like promise objects and coroutine handles, and demonstrates real‑world usage through comprehensive code examples for networking, file I/O, generators, and task scheduling.

Asynchronous ProgrammingC++20Coroutines
0 likes · 32 min read
Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 10, 2024 · Mobile Development

Using Kotlin Coroutines, Flow, Retrofit, and OkHttp for Network Requests in Android

This article explains how to combine Kotlin coroutines, Flow, Retrofit, and OkHttp to create a clean, reactive, and maintainable network request framework for Android applications, covering concepts, core principles, and practical code examples.

AndroidCoroutinesFlow
0 likes · 16 min read
Using Kotlin Coroutines, Flow, Retrofit, and OkHttp for Network Requests in Android
JD Tech Talk
JD Tech Talk
Nov 19, 2024 · Fundamentals

Concurrency, Coroutines vs Threads, and Performance Optimization in Java/Kotlin

This article compares coroutines and threads for high‑concurrency and I/O‑intensive workloads, summarizes multithreading fundamentals, presents performance‑critical code examples, and discusses JVM memory, locking, middleware, and various optimization techniques for backend systems.

CoroutinesJVMJava
0 likes · 7 min read
Concurrency, Coroutines vs Threads, and Performance Optimization in Java/Kotlin
Test Development Learning Exchange
Test Development Learning Exchange
Sep 21, 2024 · Fundamentals

Understanding Python Coroutines: Concepts, Implementation, and Practical Examples

This article introduces Python coroutines, explains their basic concepts and advantages, demonstrates how to implement them using async and await, and provides practical examples for concurrent HTTP requests and resource management, illustrating the underlying mechanics of async def, await, and the asyncio library.

Async/AwaitCoroutinesasyncio
0 likes · 6 min read
Understanding Python Coroutines: Concepts, Implementation, and Practical Examples
DaTaobao Tech
DaTaobao Tech
Sep 6, 2024 · Backend Development

Go Language Coroutine Principles and GMP Model Implementation

The article examines Go's coroutine architecture and its GMP (Goroutine-Machine-Processor) model, tracing coroutine history, comparing kernel, user, and hybrid thread models, and detailing G, M, and P components, scheduling principles, work-stealing, preemption, and runtime implementation that give Go high concurrency and low latency.

CoroutinesGMP modelParallel Computing
0 likes · 37 min read
Go Language Coroutine Principles and GMP Model Implementation
Bilibili Tech
Bilibili Tech
Aug 20, 2024 · Mobile Development

Kotlin Multiplatform for HarmonyOS App Development

Kotlin Multiplatform enables developers to share a single Kotlin codebase across Android, iOS and the new Harmony Next OS—avoiding costly full rewrites—by converting Harmony OS TypeScript definitions to Kotlin, compiling to JavaScript or native binaries, though challenges remain in debugging, library compatibility, bundle size and threading support.

CoroutinesCross-Platform DevelopmentHarmonyOS
0 likes · 18 min read
Kotlin Multiplatform for HarmonyOS App Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 23, 2024 · Fundamentals

Understanding Thread Switching and Task Flow in Kotlin Coroutines – Part 1

This article examines why Kotlin coroutine concepts are hard to explain, identifies common shortcomings in existing tutorials, and proposes a step‑by‑step approach that starts from basic thread concepts, uses incremental examples, and introduces task‑flow techniques to clarify coroutine behavior.

CoroutinesKotlinTask Flow
0 likes · 15 min read
Understanding Thread Switching and Task Flow in Kotlin Coroutines – Part 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 28, 2024 · Fundamentals

Handcrafting a Minimal Kotlin Coroutine Implementation

This article analyzes the shortcomings of existing Kotlin coroutine tutorials and presents a step‑by‑step guide to building a lightweight coroutine framework from scratch, covering thread basics, CoroutineScope, launch, delay, resume, state‑machine logic, withContext, async, and Deferred with complete code examples.

Asynchronous ProgrammingCoroutinesCustom Implementation
0 likes · 15 min read
Handcrafting a Minimal Kotlin Coroutine Implementation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 20, 2024 · Mobile Development

Understanding Kotlin Coroutines: Fundamentals, Suspension, and Resumption

This article explains the core concepts of Kotlin coroutines, including what they are, how they differ from threads, the mechanics of suspension and resumption, the role of the suspend keyword, and practical code examples that illustrate their usage in Android development.

AsyncCoroutinesKotlin
0 likes · 20 min read
Understanding Kotlin Coroutines: Fundamentals, Suspension, and Resumption
php中文网 Courses
php中文网 Courses
Jan 4, 2024 · Backend Development

Using Swoole Coroutines to Achieve High Concurrency in PHP Applications

This article explains how to boost PHP application performance by installing the Swoole extension and using its coroutine API to run concurrent tasks such as HTTP requests and database queries, providing code examples and configuration steps for effective backend concurrency.

CoroutinesPerformanceSwoole
0 likes · 4 min read
Using Swoole Coroutines to Achieve High Concurrency in PHP Applications