Tagged articles
20 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Feb 7, 2026 · Fundamentals

Mastering Linux Process Synchronization: Prevent Race Conditions with Mutexes, Semaphores, and More

This comprehensive guide explains why race conditions occur in Linux processes, explores the underlying concepts of critical sections and synchronization, and provides practical examples of atomic operations, mutexes, semaphores, condition variables, read‑write locks, and spinlocks to ensure safe concurrent programming.

CPOSIXcondition variable
0 likes · 39 min read
Mastering Linux Process Synchronization: Prevent Race Conditions with Mutexes, Semaphores, and More
FunTester
FunTester
Dec 24, 2025 · Frontend Development

Avoid Stale State and Race Conditions in React useEffect – Interview‑Ready Tips

This article dissects a common React interview snippet that uses useEffect for data fetching, exposing hidden pitfalls such as component unmount updates, request race conditions, and missing error handling, and then presents a robust solution with cleanup logic and proper error management.

AsynchronousReactState Management
0 likes · 8 min read
Avoid Stale State and Race Conditions in React useEffect – Interview‑Ready Tips
IT Services Circle
IT Services Circle
Oct 3, 2025 · Product Management

Why Meta’s Smart‑Glasses Demo Crashed: Inside the DDoS and Race‑Condition Nightmares

At Meta Connect 2025, Meta's ambitious showcase of three new smart glasses and a neural wristband backfired with two high‑profile demo failures—one caused by a self‑inflicted DDoS from simultaneous device requests and the other by a race‑condition bug that put the HUD to sleep—turning a potential breakthrough into a public embarrassment.

AIDDoSMeta
0 likes · 8 min read
Why Meta’s Smart‑Glasses Demo Crashed: Inside the DDoS and Race‑Condition Nightmares
Liangxu Linux
Liangxu Linux
May 14, 2025 · Fundamentals

How to Detect and Prevent Race Conditions in Embedded Firmware

Embedded firmware bugs such as race conditions and non‑reentrant functions are hard to reproduce, but by understanding their causes, using atomic operations, mutexes, and clear naming conventions, developers can systematically identify, avoid, and mitigate these hidden errors in RTOS‑based systems.

RTOSbest practicesnon-reentrant
0 likes · 7 min read
How to Detect and Prevent Race Conditions in Embedded Firmware
Raymond Ops
Raymond Ops
May 8, 2025 · Backend Development

Mastering Go Concurrency: Goroutines, Channels, and Synchronization Explained

This article provides a comprehensive guide to Go's concurrency model, covering goroutine creation, the scheduler, synchronization primitives such as WaitGroup, atomic operations, mutexes, and both unbuffered and buffered channels, with practical code examples and explanations of race conditions and best practices.

ChannelsGoGoroutine
0 likes · 25 min read
Mastering Go Concurrency: Goroutines, Channels, and Synchronization Explained
BirdNest Tech Talk
BirdNest Tech Talk
Jan 15, 2025 · Backend Development

Data Race vs Race Condition in Go: Clear Differences and How to Fix Them

The article explains the distinction between a data race—simultaneous unsynchronized memory access by goroutines—and a race condition—logic errors caused by timing dependencies—using Go code examples, demonstrates how to reproduce each issue, and shows how mutexes or atomic operations can resolve them.

GoGoroutineatomic
0 likes · 5 min read
Data Race vs Race Condition in Go: Clear Differences and How to Fix Them
Test Development Learning Exchange
Test Development Learning Exchange
Oct 23, 2024 · Fundamentals

Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python

This article explains common multithreading problems such as race conditions, deadlocks, resource contention, and data consistency issues, and provides Python code examples that demonstrate synchronization techniques, lock ordering, connection pooling, thread pools, and transaction management to ensure correct and stable concurrent execution.

Data ConsistencyPythonResource Management
0 likes · 10 min read
Understanding Race Conditions, Deadlocks, Resource Contention, and Data Consistency in Multithreaded Python
Bilibili Tech
Bilibili Tech
Sep 27, 2024 · Backend Development

Concurrency Issues and Race Condition Mitigation in Bilibili's Content Production System

Bilibili tackled race‑condition vulnerabilities in its massive video content pipeline by replacing simple timestamp checks with optimistic locking (CAS) and rate‑limiting locks, adding version verification and observation tools that now eliminate missed reviews and improve security, scalability, and real‑time editing reliability.

Bilibiliconcurrencycontent moderation
0 likes · 10 min read
Concurrency Issues and Race Condition Mitigation in Bilibili's Content Production System
MaGe Linux Operations
MaGe Linux Operations
Apr 20, 2024 · Backend Development

Mastering Go Concurrency: Goroutines, Scheduler, Race Detection & Channels

This article explains Go's concurrency model, detailing how goroutines are scheduled onto logical processors, how to create and run them, handle race conditions with atomic operations, mutexes, and the race detector, and share data safely using unbuffered and buffered channels with practical code examples.

ChannelGoGoroutine
0 likes · 19 min read
Mastering Go Concurrency: Goroutines, Scheduler, Race Detection & Channels
Liangxu Linux
Liangxu Linux
Jan 21, 2024 · Fundamentals

5 Common Embedded Firmware Bugs and How to Prevent Them

This article outlines five typical errors that plague embedded firmware—race conditions, non‑reentrant functions, missing volatile qualifiers, stack overflows, and heap fragmentation—and provides concrete best‑practice guidelines to detect, avoid, and mitigate each issue.

Reentrancyfirmwarerace condition
0 likes · 13 min read
5 Common Embedded Firmware Bugs and How to Prevent Them
php Courses
php Courses
Nov 2, 2023 · Backend Development

Handling Concurrent Access and Race Conditions in PHP

This article explains essential techniques for managing concurrent access and race conditions in PHP, covering mutex locks, semaphores, atomic operations, queue-based processing, database access optimization, and transaction management to improve system reliability and performance.

PHPatomicconcurrency
0 likes · 5 min read
Handling Concurrent Access and Race Conditions in PHP
KooFE Frontend Team
KooFE Frontend Team
Nov 10, 2022 · Frontend Development

How to Prevent Race Conditions When Fetching Data in React

This article explains why asynchronous data fetching in React can cause race conditions that lead to flickering or mismatched content, and presents several practical solutions—including component remounting, data validation, cleanup effects, and request cancellation—to ensure reliable UI updates.

AbortControllerData Fetchingrace condition
0 likes · 16 min read
How to Prevent Race Conditions When Fetching Data in React
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2022 · Frontend Development

Avoiding Race Conditions in React Data Fetching with Hooks, Boolean Flags, and useRequest

This article explains what race conditions are, demonstrates how they can occur in React components during asynchronous data fetching, and provides practical solutions using component lifecycle checks, boolean cancellation flags, the ahooks useRequest hook, and React Suspense to ensure correct UI updates.

race conditionuseEffectuseRequest
0 likes · 9 min read
Avoiding Race Conditions in React Data Fetching with Hooks, Boolean Flags, and useRequest
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 16, 2022 · Frontend Development

How to Prevent Race Conditions in React Data Fetching

This article explains what race conditions are in front‑end web development, demonstrates the issue with a React demo fetching articles, and walks through step‑by‑step solutions using custom hooks, useEffect cleanup, and AbortController to safely cancel outdated requests and avoid stale data rendering.

AbortControllerCustom HookData Fetching
0 likes · 10 min read
How to Prevent Race Conditions in React Data Fetching
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 13, 2022 · Frontend Development

Boost Front‑End Reliability with Real‑World RxJS Anti‑Corruption Layer Patterns

This article demonstrates how to use RxJS Observable to build robust front‑end anti‑corruption layers, covering stability improvement, splash‑screen timing, automatic fast‑API selection, race‑condition handling, and high‑order data composition with practical code examples and online demos.

Anti‑Corruption LayerData compositionRetry
0 likes · 12 min read
Boost Front‑End Reliability with Real‑World RxJS Anti‑Corruption Layer Patterns
dbaplus Community
dbaplus Community
Oct 17, 2020 · Fundamentals

How a Hidden Memory Leak Stole Hours: Debugging Multithreaded C++ Code

After noticing abnormal memory usage in a production service, the author traced a leak to a race condition in shared data during a C++ code refactor, demonstrated the debugging steps, explained why traditional tools like Valgrind help, and shared lessons on avoiding multithreaded memory leaks.

CDebuggingrace condition
0 likes · 10 min read
How a Hidden Memory Leak Stole Hours: Debugging Multithreaded C++ Code
FunTester
FunTester
Jul 22, 2019 · Backend Development

Thread Safety Issues When Combining Thread‑Safe Methods: A ConcurrentHashMap Example

Even when using thread‑safe classes like Java's ConcurrentHashMap, combining multiple thread‑safe methods into a single operation can still cause race conditions, as demonstrated by a test where two threads concurrently execute get‑and‑put logic, leading to an unexpected map value and a failed assertion.

ConcurrentHashMapJavaconcurrency
0 likes · 3 min read
Thread Safety Issues When Combining Thread‑Safe Methods: A ConcurrentHashMap Example
MaGe Linux Operations
MaGe Linux Operations
May 19, 2018 · Fundamentals

How a Four‑Year Hunt Fixed a Hidden Python GIL Race Condition

The article recounts a four‑year investigation that uncovered and repaired a subtle race‑condition bug in Python's Global Interpreter Lock, detailing the bug's origin, the implemented fixes, performance testing, and the decision to make the GIL creation unconditional in Python 3.7.

CPythonGILPython
0 likes · 10 min read
How a Four‑Year Hunt Fixed a Hidden Python GIL Race Condition