Tagged articles
214 articles
Page 3 of 3
ITPUB
ITPUB
Apr 29, 2017 · Backend Development

40 Essential Java Multithreading Interview Questions Explained

This article compiles and clarifies forty common Java multithreading interview questions, covering thread creation, synchronization mechanisms, thread pools, memory model, and practical debugging techniques to help developers deepen their understanding and prepare for technical interviews.

Java Memory ModelSynchronizationinterview
0 likes · 30 min read
40 Essential Java Multithreading Interview Questions Explained
ITPUB
ITPUB
Sep 16, 2016 · Fundamentals

Why Interrupt Handlers Can't Sleep: Deep Dive into Linux Kernel Sleep and Wakeup

This article explains the purpose and mechanics of process sleep in the Linux kernel, describes how wait queues and wake‑up functions operate, and details why sleeping in interrupt context or while holding spinlocks, seqlocks, or RCU locks leads to deadlocks and system crashes.

LinuxSynchronizationinterrupt()
0 likes · 16 min read
Why Interrupt Handlers Can't Sleep: Deep Dive into Linux Kernel Sleep and Wakeup
ITPUB
ITPUB
Aug 12, 2016 · Fundamentals

Why Do Spinlocks Behave Differently on UP vs SMP Linux Kernels?

The article explains how Linux spinlocks, originally designed for SMP systems, operate in UP kernels, why CONFIG_DEBUG_SPINLOCK changes their behavior, and which spinlock variants should be used in different interrupt and preemption contexts.

CONFIG_DEBUG_SPINLOCKLinux kernelSpinlock
0 likes · 14 min read
Why Do Spinlocks Behave Differently on UP vs SMP Linux Kernels?
Qunar Tech Salon
Qunar Tech Salon
May 9, 2016 · Backend Development

Comprehensive Overview of Java Locks: Fair, Unfair, Spin, Reentrant, Biased, Lightweight, Heavyweight, and More

This article provides a detailed explanation of various Java lock mechanisms—including fair and unfair locks, spin locks, lock elimination, lock coarsening, reentrant, class and object locks, biased, lightweight, heavyweight, pessimistic and optimistic locks—as well as practical code examples and a lock state table to help developers understand concurrency control in the JVM.

JVMJavaLocks
0 likes · 16 min read
Comprehensive Overview of Java Locks: Fair, Unfair, Spin, Reentrant, Biased, Lightweight, Heavyweight, and More
21CTO
21CTO
Mar 26, 2016 · Fundamentals

How a Custom Linux‑Based Distributed File System Achieves Scalability and Consistency

This article describes the design and implementation of a Linux‑based distributed file system (DFS) that targets large‑scale data storage and access, detailing its architecture, goals, storage model, consistency mechanisms, thread‑safety approach, synchronization strategies, and recovery processes to ensure high availability and data integrity.

DFS designDistributed File SystemLinux storage
0 likes · 35 min read
How a Custom Linux‑Based Distributed File System Achieves Scalability and Consistency
Architecture Digest
Architecture Digest
Feb 26, 2016 · Backend Development

Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model

This article provides an extensive overview of Java concurrency, covering synchronous vs asynchronous calls, critical sections, blocking and non‑blocking behavior, deadlock, starvation, livelock, concurrency levels, the Java Memory Model, atomicity, visibility, ordering, thread lifecycle, synchronization mechanisms, thread pools, and related utilities.

JMMJavaSynchronization
0 likes · 39 min read
Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model
Architect
Architect
Oct 21, 2015 · Backend Development

WeChat Backend Architecture: Synchronization Protocol, RPC Framework, and Multi-IDC Design

The article outlines WeChat’s backend architecture, detailing extreme business requirements such as low latency and power efficiency, challenges of synchronizing diverse data across terminals, and solutions including a minimal sync protocol, high‑efficiency notification mechanisms, a three‑tier backend, unified RPC framework, coroutine‑based high‑concurrency RPC, and multi‑IDC distribution with strong consistency and disaster‑recovery strategies.

Distributed SystemsRPCSynchronization
0 likes · 7 min read
WeChat Backend Architecture: Synchronization Protocol, RPC Framework, and Multi-IDC Design
Qunar Tech Salon
Qunar Tech Salon
Apr 5, 2015 · Backend Development

Implementing Java Event Notification with the Observer Pattern: Common Pitfalls and Thread‑Safe Solutions

This article explains how to build a Java event‑notification system using the observer pattern, highlights typical mistakes such as concurrent modification and deadlocks, and presents several thread‑safe implementations ranging from synchronized blocks to CopyOnWriteArraySet and atomic primitives.

Observer PatternSynchronizationconcurrency
0 likes · 10 min read
Implementing Java Event Notification with the Observer Pattern: Common Pitfalls and Thread‑Safe Solutions