Tag

concurrency

1 views collected around this technical thread.

FunTester
FunTester
Jun 17, 2025 · Backend Development

How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies

This article explains why using Thread.sleep() in Java ExecutorService unit tests is unreliable and inefficient, and introduces three robust alternatives—Future.get(), CountDownLatch, and shutdown/awaitTermination—to achieve stable and performant testing of asynchronous code.

CountDownLatchExecutorServiceFuture
0 likes · 13 min read
How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies
Java Architect Essentials
Java Architect Essentials
Jun 14, 2025 · Backend Development

Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It

This article explains why MyBatis's default StdOutImpl logging, which relies on System.out.println, blocks threads and creates severe concurrency bottlenecks, and demonstrates how to replace it with asynchronous logging implementations like Slf4jImpl, configure log levels, and even create custom Log classes for optimal performance.

JavaLoggingMyBatis
0 likes · 8 min read
Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It
Sohu Tech Products
Sohu Tech Products
Jun 11, 2025 · Fundamentals

Mastering iOS Locks: Types, Usage, and Performance Comparison

This article explains the relationship between locks and multithreading on iOS, introduces common lock types such as NSRecursiveLock, NSConditionLock, OSSpinLock, os_unfair_lock, pthread_mutex, and @synchronized, demonstrates resource contention with code examples, discusses lock selection, priority inversion, and provides a performance ranking of various locks.

LocksPerformanceconcurrency
0 likes · 22 min read
Mastering iOS Locks: Types, Usage, and Performance Comparison
Java Captain
Java Captain
Jun 10, 2025 · Fundamentals

Understanding Java Monitors: How Thread Synchronization Works

Java monitors provide a mechanism for thread synchronization by associating each object with a monitor lock, comprising an entry list, owner thread, and wait set, and the article explains their structure, thread state transitions, and demonstrates usage with a practical code example.

JavaMonitorSynchronization
0 likes · 6 min read
Understanding Java Monitors: How Thread Synchronization Works
php中文网 Courses
php中文网 Courses
Jun 10, 2025 · Backend Development

Unlock Go’s Power: Master the Most Essential Standard Library Packages

This guide walks through Go’s most powerful standard library packages—fmt, net/http, sync, encoding/json, context, os/io, testing, time, sort, and reflect—showing practical code examples, advanced tips, and best‑practice recommendations to boost development efficiency and write professional Go code.

GoJSONPerformance
0 likes · 20 min read
Unlock Go’s Power: Master the Most Essential Standard Library Packages
Architect's Guide
Architect's Guide
Jun 9, 2025 · Fundamentals

Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers

The article explains that the 65,535 limit refers only to available port numbers, while actual TCP concurrency on Linux depends on the 4‑tuple identification, memory, file‑descriptor limits, and port reuse, allowing servers to handle far more connections than the port count suggests.

LinuxTCPconcurrency
0 likes · 12 min read
Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers
Java Architect Essentials
Java Architect Essentials
Jun 6, 2025 · Fundamentals

Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood

This article demystifies Java's ThreadPoolExecutor, explaining why thread pools improve performance, detailing their design analogy to factories, exploring constructors, task queues, rejection policies, worker lifecycle, and practical usage examples, while also covering initialization, shutdown, and dynamic resizing techniques for robust backend development.

JavaThreadPoolExecutorbackend development
0 likes · 35 min read
Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood
Java Architect Essentials
Java Architect Essentials
Jun 5, 2025 · Fundamentals

Understanding CAS, LongAdder, and AtomicLong in Java for High‑Concurrency Counters

This article explains the principles, advantages, and drawbacks of CAS, LongAdder, and AtomicLong in Java, illustrating why Alibaba recommends LongAdder for high‑concurrency counter scenarios, how the ABA problem arises, and how AtomicStampedReference can mitigate it.

AtomicLongCASDistributedSystems
0 likes · 9 min read
Understanding CAS, LongAdder, and AtomicLong in Java for High‑Concurrency Counters
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 4, 2025 · Backend Development

A Comprehensive Guide to Redisson Distributed Locks in Java

This article explains Redisson's various distributed lock mechanisms—including watchdog, reentrant lock, multi‑lock, read‑write lock, semaphore, RedLock, and CountDownLatch—detailing their principles, usage patterns, code examples, and best‑practice recommendations for robust backend concurrency control.

Distributed LocksJavaRedisson
0 likes · 16 min read
A Comprehensive Guide to Redisson Distributed Locks in Java
Code Ape Tech Column
Code Ape Tech Column
Jun 4, 2025 · Backend Development

Request Collapsing Techniques: Hystrix Collapser, BatchCollapser, and ConcurrentHashMultiset

This article compares three request‑collapsing techniques—Hystrix Collapser, a custom BatchCollapser, and Guava's ConcurrentHashMultiset—explaining their designs, configurations, code implementations, and suitable scenarios for reducing downstream load in Java backend systems.

HystrixJavaRequest Collapsing
0 likes · 13 min read
Request Collapsing Techniques: Hystrix Collapser, BatchCollapser, and ConcurrentHashMultiset
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
php中文网 Courses
php中文网 Courses
Jun 3, 2025 · Backend Development

Understanding Go's Concurrency Model: Goroutine, Channel, Select, WaitGroup, and Context

This article explains Go's lightweight concurrency model, covering Goroutine creation, Channel communication, Select multiplexing, synchronization with WaitGroup and Context, common concurrency patterns such as worker pools and pub/sub, and provides best‑practice recommendations for building high‑performance concurrent programs.

GoSELECT *WaitGroup
0 likes · 7 min read
Understanding Go's Concurrency Model: Goroutine, Channel, Select, WaitGroup, and Context
Lobster Programming
Lobster Programming
Jun 3, 2025 · Backend Development

How ThreadLocal Can Cause Memory Leaks in Java Multithreading

This article explains how ThreadLocal creates per‑thread variable copies, demonstrates its usage with sample Java code, illustrates the internal storage structure, and reveals why improper handling can lead to memory leaks when thread‑local values persist in thread pools.

JavaMemory Leakconcurrency
0 likes · 3 min read
How ThreadLocal Can Cause Memory Leaks in Java Multithreading
Lobster Programming
Lobster Programming
Jun 3, 2025 · Databases

Master MySQL Locks: From Row to Intention Locks Explained with Real Examples

This article explains MySQL InnoDB locking mechanisms—including row, record, gap, next‑key, and intention locks—illustrates each type with SQL statements and performance_schema data, and shows how they interact during concurrent transactions.

DatabaseInnoDBLocks
0 likes · 8 min read
Master MySQL Locks: From Row to Intention Locks Explained with Real Examples
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.

CoroutinesHigh ConcurrencyThreads
0 likes · 6 min read
Why Threads Alone Struggle to Achieve Million‑Scale Concurrency and How Coroutines Provide a Better Solution
Code Mala Tang
Code Mala Tang
May 31, 2025 · Backend Development

How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies

This article explains why FastAPI struggles with CPU‑intensive tasks due to Python’s Global Interpreter Lock, describes the types of workloads affected, and provides concrete solutions such as background task queues, microservices, ProcessPoolExecutor, and C/C++ extensions to keep APIs responsive and scalable.

CPU-boundGILPerformance
0 likes · 8 min read
How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies
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.

Best PracticesCoroutinesKotlin
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.

CoroutinesHigh ConcurrencyThreads
0 likes · 6 min read
Why a Thread‑Only Model Struggles to Reach Million‑Level Concurrency on a Single Machine
Architect's Guide
Architect's Guide
May 27, 2025 · Backend Development

Understanding CopyOnWrite (COW) Concept and Its Implementation in Java

The article explains the CopyOnWrite (COW) concept, its read‑write separation benefits for thread‑safe, read‑heavy scenarios, key implementation details in Java’s CopyOnWriteArrayList—including volatile and transient usage—and discusses its memory overhead and eventual‑consistency drawbacks.

CopyOnWriteDataStructureJava
0 likes · 5 min read
Understanding CopyOnWrite (COW) Concept and Its Implementation in Java