Tagged articles
632 articles
Page 5 of 7
FunTester
FunTester
Apr 22, 2021 · Operations

How Thread Count, Random Delays, and Logging Skew QPS Measurements

This article experimentally examines how different sources of performance‑test error—fixed versus random request latency, thread‑count variations, and log‑printing overhead—affect QPS calculations, revealing that higher concurrency amplifies error while increased request repetitions and reduced logging improve measurement accuracy.

GroovyJavaPerformance Testing
0 likes · 12 min read
How Thread Count, Random Delays, and Logging Skew QPS Measurements
Python Programming Learning Circle
Python Programming Learning Circle
Apr 13, 2021 · Backend Development

Python Web Scraping Techniques: GET/POST Requests, Proxy IP, Cookies, Header Spoofing, Gzip Compression, and Multithreading

This article provides a comprehensive Python web‑scraping guide covering basic GET/POST requests with urllib2, proxy handling, cookie management, header manipulation to mimic browsers, gzip compression handling, regular‑expression and library parsing, simple captcha strategies, and a multithreaded thread‑pool example.

GzipHeader SpoofingProxy
0 likes · 8 min read
Python Web Scraping Techniques: GET/POST Requests, Proxy IP, Cookies, Header Spoofing, Gzip Compression, and Multithreading
dbaplus Community
dbaplus Community
Apr 11, 2021 · Databases

Why Redis Added Multithreading in 6.0: Myths, Benefits, and Design Choices

Redis, traditionally single‑threaded for network I/O and key‑value operations, introduced multithreading in version 6.0 to improve network I/O handling; this article explains the original single‑thread design, when multithreading is appropriate, its drawbacks, the role of I/O multiplexing, and why Redis still keeps most work single‑threaded.

Database PerformanceI/O MultiplexingVersion 6.0
0 likes · 12 min read
Why Redis Added Multithreading in 6.0: Myths, Benefits, and Design Choices
TAL Education Technology
TAL Education Technology
Apr 8, 2021 · Backend Development

Java Concurrency Programming: Concepts, Tools, and Practical Examples

This comprehensive guide introduces Java concurrency fundamentals, explains common tools and their underlying principles, discusses typical challenges such as thread safety, visibility, and ordering, and provides practical code examples and optimization techniques for building high‑performance multithreaded applications.

Javaconcurrencymultithreading
0 likes · 16 min read
Java Concurrency Programming: Concepts, Tools, and Practical Examples
Top Architect
Top Architect
Apr 8, 2021 · Databases

Redis Multi‑Threading Evolution: Lazy Free and I/O Thread Mechanisms

Redis, traditionally a single‑threaded in‑memory cache, introduces Lazy Free in version 4.0 and multi‑threaded I/O in version 6.0 to mitigate blocking during large key deletions and improve performance, with detailed explanations of event handling, code implementations, limitations, and comparisons to Tair’s threading model.

I/O ThreadLazy Freedatabase
0 likes · 16 min read
Redis Multi‑Threading Evolution: Lazy Free and I/O Thread Mechanisms
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 7, 2021 · Fundamentals

Unlocking Java Concurrency: Master Threads, Locks, and Thread Pools

This comprehensive guide explains why concurrency is essential for modern systems, introduces core metrics like response time and throughput, outlines the three pillars of thread safety, compares concurrency with parallelism, and provides practical solutions for deadlocks, thread creation, synchronization, and efficient thread‑pool usage in Java.

JavaSynchronizationThreadPool
0 likes · 87 min read
Unlocking Java Concurrency: Master Threads, Locks, and Thread Pools
vivo Internet Technology
vivo Internet Technology
Mar 17, 2021 · Backend Development

Implementation and Principles of HTTP Range (Breakpoint) File Download in Java

The article explains how Vivo’s platform implements a fault‑tolerant HTTP Range (breakpoint) download in Java—detecting server support, choosing single‑or multi‑threaded segmented downloads, using RandomAccessFile and retry logic, verifying integrity with ETag/MD5, and issuing alerts, while noting when the added complexity is justified.

Breakpoint DownloadHTTP RangeJava
0 likes · 23 min read
Implementation and Principles of HTTP Range (Breakpoint) File Download in Java
FunTester
FunTester
Mar 11, 2021 · Operations

Accelerating Multi‑User Performance Tests with Java’s CyclicBarrier

This article explains how to eliminate the serial‑login bottleneck in multi‑user performance testing by using Java’s CyclicBarrier to synchronize user logins, then runs a two‑step insert‑update scenario with a custom FunTester class, complete with full code examples and result analysis.

BackendCyclicBarrierJava
0 likes · 8 min read
Accelerating Multi‑User Performance Tests with Java’s CyclicBarrier
Java Captain
Java Captain
Feb 20, 2021 · Backend Development

Systematic Overview of Java Concurrency and the J.U.C Framework

This article provides a comprehensive, systematic guide to Java concurrency, covering fundamental concepts, key keywords such as volatile, final, and synchronized, and an in‑depth exploration of the J.U.C framework including locks, atomic classes, concurrent collections, thread pools, and utility classes.

JUCJavaLocks
0 likes · 23 min read
Systematic Overview of Java Concurrency and the J.U.C Framework
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Feb 19, 2021 · Fundamentals

Comprehensive Guide to Java synchronized Locks: Usage, Scenarios, and Pitfalls

This article explains the various usages of Java's synchronized keyword, including class locks, object locks, static and instance methods, code blocks, and important considerations such as non‑interruptibility, reentrancy, lack of timeout, and best‑practice performance tips, illustrated with multiple demo programs.

Javalockingmultithreading
0 likes · 19 min read
Comprehensive Guide to Java synchronized Locks: Usage, Scenarios, and Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Feb 18, 2021 · Backend Development

Optimizing Web Request Performance with Multithreading and Caching in Java Servlets

The article explains how multithreading can improve web request throughput and scalability, illustrates performance gains with example I/O tasks, discusses pitfalls of shared HashMap in servlets, and presents thread‑safe caching solutions using ConcurrentHashMap and FutureTask to reduce latency and avoid concurrency bugs.

JavaServletmultithreading
0 likes · 8 min read
Optimizing Web Request Performance with Multithreading and Caching in Java Servlets
Java Captain
Java Captain
Feb 10, 2021 · Backend Development

Java Web Crawler for Downloading Sogou Image Search Results

This article demonstrates how to build a Java-based web crawler that fetches image URLs from Sogou Image Search, parses the JSON response, and downloads thousands of pictures to a local directory using multithreaded processing and custom HTTP utilities.

HTTPImage DownloadJava
0 likes · 19 min read
Java Web Crawler for Downloading Sogou Image Search Results
FunTester
FunTester
Feb 4, 2021 · Operations

Multi‑Chain Performance Testing Demo Using FunTester

This article presents a practical demo for multi‑chain performance testing with FunTester, describing the overall workflow, custom multithreaded implementation, Java code example, and sample console output to illustrate how to execute and analyze load tests across multiple request paths.

FunTesterJavaLoad Testing
0 likes · 7 min read
Multi‑Chain Performance Testing Demo Using FunTester
macrozheng
macrozheng
Jan 25, 2021 · Backend Development

Designing a Flexible Java ThreadPoolExecutor: From Basics to Advanced Features

This article walks through building a custom thread pool executor in Java, starting with a simple thread creation example, evolving through multiple design iterations, and culminating in a full-featured implementation that supports core and maximum pool sizes, task queues, thread factories, and rejection policies.

ExecutorJavaThreadPoolExecutor
0 likes · 10 min read
Designing a Flexible Java ThreadPoolExecutor: From Basics to Advanced Features
FunTester
FunTester
Dec 31, 2020 · Operations

Speed Up Load Test Preparation with Java CyclicBarrier

This article explains how to use Java's CyclicBarrier and related concurrency utilities to parallelize user login preparation for load testing, reducing setup time and synchronizing multi‑stage performance tests with concrete code examples and sample console output.

CyclicBarrierJavaLoad Testing
0 likes · 8 min read
Speed Up Load Test Preparation with Java CyclicBarrier
Amap Tech
Amap Tech
Dec 30, 2020 · Mobile Development

App Startup Performance Optimization: Techniques and Tools for iOS and Android

Optimizing app launch on iOS and Android—through deep‑link handling, H5 splash strategies, On‑Demand Resources, custom WKWebView schemes, reduced download size, static and runtime .so loading flags, thread‑pool tuning, method swizzling, actor‑based concurrency, and using Instruments, MetricKit and Android Profiler—prevents user abandonment and boosts conversion.

AndroidPerformance OptimizationProfiling
0 likes · 37 min read
App Startup Performance Optimization: Techniques and Tools for iOS and Android
macrozheng
macrozheng
Dec 24, 2020 · Backend Development

Mastering Java Thread Pools: When and How to Choose the Right One

This article explains the concept of thread pools, compares seven creation methods—including FixedThreadPool, CachedThreadPool, and ThreadPoolExecutor—covers their parameters, execution flow, and rejection policies, and offers guidance on selecting the most appropriate pool for Java applications.

ExecutorServiceJavaThreadPool
0 likes · 20 min read
Mastering Java Thread Pools: When and How to Choose the Right One
FunTester
FunTester
Dec 17, 2020 · Operations

Multi‑Interface Load Testing for Collect/Uncollect Feature Using FunTester

This article describes how to implement a multi‑interface performance test for the collect and uncollect operations of a teacher’s resource list, using Groovy scripts, a custom FunTester framework, multithreaded request generation, request‑id tracking, and response recording to produce QPS and RT metrics.

API performanceFunTesterGroovy
0 likes · 8 min read
Multi‑Interface Load Testing for Collect/Uncollect Feature Using FunTester
Code Ape Tech Column
Code Ape Tech Column
Dec 17, 2020 · Backend Development

108 Essential Java Multithreading Interview Questions and Answers

This comprehensive guide compiles 108 common Java multithreading interview questions, covering the purpose of concurrency, thread creation methods, lifecycle nuances, synchronization utilities, memory visibility, thread safety levels, debugging techniques, executor frameworks, concurrent collections, atomic operations, lock implementations, and best‑practice recommendations.

ExecutorJavaSynchronization
0 likes · 59 min read
108 Essential Java Multithreading Interview Questions and Answers
Java Captain
Java Captain
Dec 10, 2020 · Backend Development

Implementing a Real-Time Network Chatroom in Java Using TCP and Multithreading

This article explains how to build a real‑time network chatroom in Java using TCP sockets, multithreading, and a ConcurrentHashMap to manage user connections, detailing command handling for listing users, group chat, private messages, exiting, and server shutdown, with full source code examples.

ChatroomConcurrentHashMapJava
0 likes · 14 min read
Implementing a Real-Time Network Chatroom in Java Using TCP and Multithreading
High Availability Architecture
High Availability Architecture
Dec 7, 2020 · Fundamentals

Understanding the Java Memory Model: History, Definition, and Practical Implications

This article explains the evolution from single‑core to multi‑core computing, introduces memory models as a protocol for ordering memory operations, details the Java memory model’s definition, its impact on Java and other languages, and provides practical examples and insights into synchronization, volatile, and happens‑before rules.

Happens-beforeJavaMemory Model
0 likes · 26 min read
Understanding the Java Memory Model: History, Definition, and Practical Implications
ITPUB
ITPUB
Dec 2, 2020 · Backend Development

Why Thread Safety and Reentrancy Matter in C++ Backend Development

The article uses a casual conversation between two backend engineers to introduce multithreading concepts, explain shared vs. private resources, define thread‑safe and reentrant functions, illustrate common pitfalls with code examples, and provide practical guidelines for writing correct concurrent C++ services.

Backend DevelopmentCReentrancy
0 likes · 11 min read
Why Thread Safety and Reentrancy Matter in C++ Backend Development
Programmer DD
Programmer DD
Nov 30, 2020 · Backend Development

How Many Threads Are Optimal? Mastering Thread Pool Sizing for Maximum Performance

This article explains why multithreading improves program performance, distinguishes latency reduction from throughput increase, and provides practical formulas to determine the ideal number of threads for both I/O‑bound and CPU‑bound workloads, helping you fully utilize hardware resources.

I/O BoundPerformance Optimizationconcurrency
0 likes · 4 min read
How Many Threads Are Optimal? Mastering Thread Pool Sizing for Maximum Performance
DeWu Technology
DeWu Technology
Nov 23, 2020 · Fundamentals

PThread Essentials: Thread Creation, Synchronization, and Advanced Techniques

This session reviews PThread fundamentals and advanced techniques in C, covering thread creation, termination, attributes, mutexes, reader‑writer locks, condition variables, semaphores, barrier synchronization, and thread‑specific data, with code examples and a concluding homework assignment.

SynchronizationThread Specific Datacondition variable
0 likes · 11 min read
PThread Essentials: Thread Creation, Synchronization, and Advanced Techniques
Architect's Tech Stack
Architect's Tech Stack
Nov 4, 2020 · Databases

Optimizing MySQL Insert Performance with Multithreading, Prepared Statements, Batch Inserts, and Transactions

This article explains why multithreaded inserts into a single MySQL table can be faster than single-threaded inserts, analyzes the time distribution of insertion operations, and presents techniques such as prepared statements, multi-value inserts, batch execution, and transaction batching to significantly improve insert throughput.

Batch InsertInsert OptimizationPreparedStatement
0 likes · 6 min read
Optimizing MySQL Insert Performance with Multithreading, Prepared Statements, Batch Inserts, and Transactions
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 2, 2020 · Backend Development

Java Multithreaded Sequential Printing: Solutions Using Lock, wait/notify, Condition, Semaphore, and LockSupport

This article presents various Java solutions for common interview multithreading problems that require sequential printing, demonstrating implementations using Lock, wait/notify, Condition, Semaphore, and LockSupport, along with detailed code examples and explanations of thread communication mechanisms.

JavaLockconcurrency
0 likes · 15 min read
Java Multithreaded Sequential Printing: Solutions Using Lock, wait/notify, Condition, Semaphore, and LockSupport
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Oct 30, 2020 · Fundamentals

Understanding FUSE: Architecture and Implementation Details

FUSE implements a user‑space file‑system framework where a kernel module creates the /dev/fuse device and forwards VFS requests into kernel queues, while a multi‑threaded daemon reads these requests, optionally uses splice for zero‑copy, processes them, and writes replies back, enabling simple file‑system development without kernel recompilation.

FUSEFilesystem architectureLinux kernel
0 likes · 10 min read
Understanding FUSE: Architecture and Implementation Details
FunTester
FunTester
Oct 21, 2020 · Backend Development

Using Java Generics to Simplify Multithreaded Task Design

This article explores how to apply Java generics in a multithreaded task framework, demonstrates refactoring a ThreadBase class, provides concrete code examples with RequestThreadTimes, and discusses the challenges and solutions for generic type constraints in inheritance hierarchies.

Design PatternsGenericsJava
0 likes · 6 min read
Using Java Generics to Simplify Multithreaded Task Design
MaGe Linux Operations
MaGe Linux Operations
Oct 11, 2020 · Backend Development

Master Python File Downloads: Requests, Wget, urllib, Boto3 & Asyncio

This tutorial walks you through using various Python modules—including requests, wget, urllib, urllib3, boto3, and asyncio—to download regular files, web pages, Amazon S3 objects, handle redirects, large files, parallel downloads, proxies, and progress bars, all with clear code examples.

Boto3File Downloadasyncio
0 likes · 8 min read
Master Python File Downloads: Requests, Wget, urllib, Boto3 & Asyncio
Java Captain
Java Captain
Oct 8, 2020 · Backend Development

Advanced Java Debugging Techniques: Conditional Breakpoints, Drop Frame, Multithread, Remote Debugging, and Expression Evaluation

This guide explains how to use conditional breakpoints, drop‑frame, thread‑specific suspension, remote debugging configuration, and on‑the‑fly expression evaluation in Java IDEs, providing step‑by‑step instructions and visual examples to help developers debug complex applications more effectively.

IDEJavaconditional-breakpoints
0 likes · 5 min read
Advanced Java Debugging Techniques: Conditional Breakpoints, Drop Frame, Multithread, Remote Debugging, and Expression Evaluation
Selected Java Interview Questions
Selected Java Interview Questions
Oct 5, 2020 · Backend Development

Java Interview Questions and Answers: StringBuilder, Null Checks, Integer Caching, Collections, File I/O, Float Precision, Multithreading, Loops, and Finally

This article compiles a series of common Java interview questions covering StringBuilder versus String concatenation, null‑check pitfalls, Integer caching behavior, parameter passing, array‑to‑list conversion limits, directory creation methods, floating‑point precision, multithreading techniques, loop edge cases, and the guaranteed execution of finally blocks.

file-iomultithreading
0 likes · 6 min read
Java Interview Questions and Answers: StringBuilder, Null Checks, Integer Caching, Collections, File I/O, Float Precision, Multithreading, Loops, and Finally
macrozheng
macrozheng
Sep 22, 2020 · Fundamentals

Master Java Multithreading: Why, How, and Common Pitfalls Explained

This article introduces the fundamentals of Java multithreading, explaining why concurrency is needed, the differences between programs, processes and threads, four ways to create threads, and common pitfalls such as thread safety and deadlocks, all with clear code examples.

Javaconcurrencymultithreading
0 likes · 10 min read
Master Java Multithreading: Why, How, and Common Pitfalls Explained
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 21, 2020 · Backend Development

Understanding Java Thread Pools: Concepts, Benefits, and Usage

This article explains Java thread pools, covering their purpose, advantages, core components, constructor parameters, built‑in pool types such as Cached, Fixed and Single thread pools, and the available rejection policies, providing code examples and practical guidance for efficient multithreaded programming.

ExecutorServiceJavaThreadPool
0 likes · 11 min read
Understanding Java Thread Pools: Concepts, Benefits, and Usage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 14, 2020 · Fundamentals

Java Thread Lifecycle and Common Thread APIs

This article explains Java's thread lifecycle, detailing its six states—New, Runnable, Blocked, Waiting, Timed_waiting, and Terminated—and describes eleven commonly used thread APIs such as join(), wait(), notify(), yield(), sleep(), currentThread(), getName(), getId(), getPriority(), setPriority() and stop().

APIJavaThread
0 likes · 9 min read
Java Thread Lifecycle and Common Thread APIs
Wukong Talks Architecture
Wukong Talks Architecture
Sep 2, 2020 · Fundamentals

Comprehensive Overview of Java Locks and Concurrency Mechanisms

This article provides a detailed guide to various Java lock types—including optimistic, pessimistic, spin, reentrant, read‑write, fair, unfair, shared, exclusive, heavyweight, lightweight, biased, segment, mutex, synchronization, deadlock, lock coarsening, and lock elimination—explaining their principles, typical usages, advantages, disadvantages, and related JVM optimizations.

JavaLocksconcurrency
0 likes · 17 min read
Comprehensive Overview of Java Locks and Concurrency Mechanisms
Code Ape Tech Column
Code Ape Tech Column
Aug 21, 2020 · Fundamentals

Mastering Java Threads: From Basics to Priority and State Management

This article explains the fundamentals of Java threads, contrasting them with processes, demonstrates thread creation via extending Thread and implementing Runnable, discusses the benefits of multithreading, covers thread priority settings, and details the lifecycle states and transitions with practical code examples.

BackendJavaThreads
0 likes · 9 min read
Mastering Java Threads: From Basics to Priority and State Management
FunTester
FunTester
Aug 20, 2020 · Backend Development

Efficiently Deleting Tens of Thousands of Records via API: Serial, Async, and Multithreaded Solutions

Faced with tens of thousands of dirty records and no bulk‑delete API, the author iteratively optimized a deletion script—starting with simple serial requests, then adding asynchronous HTTP calls, and finally employing multithreading—to achieve rapid, reliable removal of hundreds of entries per second.

APIAsynchronousBatch Deletion
0 likes · 6 min read
Efficiently Deleting Tens of Thousands of Records via API: Serial, Async, and Multithreaded Solutions
Programmer DD
Programmer DD
Aug 20, 2020 · Fundamentals

Unlocking Java’s synchronized: When Does It Really Protect?

This article explores Java’s synchronized keyword in depth, covering its purpose, usage with object and class locks, seven multithreading scenarios, core principles like reentrancy and visibility, performance drawbacks, and best practices for choosing between synchronized and explicit Lock implementations.

concurrencylockingmultithreading
0 likes · 18 min read
Unlocking Java’s synchronized: When Does It Really Protect?
Youku Technology
Youku Technology
Aug 18, 2020 · Backend Development

How Youku Engineered a High‑Performance, Low‑Latency Marketing Platform

This article details Youku's membership marketing system architecture, covering complex marketing scenarios, high‑availability and low‑latency requirements, rule‑based QL engine, unified marketing framework, multi‑cache storage, multithreaded matching, asynchronous reward distribution, and distributed transaction mechanisms.

BackendLow latencySystem Design
0 likes · 12 min read
How Youku Engineered a High‑Performance, Low‑Latency Marketing Platform
FunTester
FunTester
Aug 4, 2020 · Backend Development

Mastering Java’s Phaser: A Flexible Alternative to CountDownLatch and CyclicBarrier

This article explains how Java’s Phaser class extends the capabilities of CountDownLatch and CyclicBarrier, offering dynamic phase management for multistage tasks, details its constructors and key methods, compares usage scenarios, and provides a complete code demo illustrating practical implementation.

JavaPhaserSynchronization
0 likes · 9 min read
Mastering Java’s Phaser: A Flexible Alternative to CountDownLatch and CyclicBarrier
FunTester
FunTester
Aug 2, 2020 · Backend Development

Understanding Java CountDownLatch: Introduction, Core Methods, and Practical Usage

This article explains Java’s CountDownLatch class, covering its package location, constructor, essential await and countDown methods, and demonstrates practical integration within a multithreaded performance testing framework, including sample code for task execution, thread management, and cleanup.

CountDownLatchJavaconcurrency
0 likes · 5 min read
Understanding Java CountDownLatch: Introduction, Core Methods, and Practical Usage
MaGe Linux Operations
MaGe Linux Operations
Jul 31, 2020 · Information Security

Build a Python TCP Port Scanner with Multithreading and Nmap

This article demonstrates how to build a Python TCP port scanner using raw sockets, adds service fingerprinting by sending probes, speeds up scans with multithreading, and shows an alternative approach using the nmap library, complete with example code and sample output.

multithreadingnmapport scanning
0 likes · 5 min read
Build a Python TCP Port Scanner with Multithreading and Nmap
Selected Java Interview Questions
Selected Java Interview Questions
Jul 30, 2020 · Backend Development

Java Thread Communication Techniques: join, wait/notify, CountDownLatch, CyclicBarrier, Callable and FutureTask

This article explains various Java thread‑communication mechanisms—including thread.join(), object.wait()/notify(), CountDownLatch, CyclicBarrier, Callable, and FutureTask—through clear examples, code snippets, and execution results, helping developers coordinate thread execution and retrieve results from worker threads.

Thread Communicationmultithreading
0 likes · 15 min read
Java Thread Communication Techniques: join, wait/notify, CountDownLatch, CyclicBarrier, Callable and FutureTask
FunTester
FunTester
Jul 9, 2020 · Backend Development

Multithreaded Test Case Execution and Database Standards

The article shares practical experiences on running test cases concurrently using Java multithreading and a custom thread pool, and outlines MySQL database naming, null handling, and schema design guidelines, including full code examples for the case runner and thread pool implementation.

Database designJavaSQL
0 likes · 7 min read
Multithreaded Test Case Execution and Database Standards
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 8, 2020 · Fundamentals

Understanding Java Locks: Optimistic vs Pessimistic, Spin Locks, and ReentrantLock

This article explains the various types of locks provided by Java, compares optimistic and pessimistic locking, introduces spin locks and adaptive spin locks, details lock states such as biased, lightweight, and heavyweight, and examines fair versus non‑fair, reentrant versus non‑reentrant, and exclusive versus shared locks with source code references.

CASJavaLocks
0 likes · 25 min read
Understanding Java Locks: Optimistic vs Pessimistic, Spin Locks, and ReentrantLock
JavaEdge
JavaEdge
Jul 5, 2020 · Backend Development

Why Java Concurrency Is Tricky: 4 Pitfalls Every Developer Must Avoid

The article explains why Java concurrency is fraught with hidden traps, outlines four key misconceptions, and offers practical guidance on safely using threads, understanding memory models, and recognizing the limits of testing and libraries.

Javaconcurrencymultithreading
0 likes · 11 min read
Why Java Concurrency Is Tricky: 4 Pitfalls Every Developer Must Avoid
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 30, 2020 · Fundamentals

Understanding Java Volatile Keyword and Memory Model

This article provides a comprehensive tutorial on Java's volatile keyword, covering its role in the Java Memory Model, the three concurrency fundamentals of atomicity, visibility, and ordering, and detailed explanations of volatile's visibility, ordering guarantees, implementation mechanisms, and a source code example.

JMMJavaMemory Model
0 likes · 10 min read
Understanding Java Volatile Keyword and Memory Model
FunTester
FunTester
Jun 28, 2020 · Fundamentals

Mastering Java Thread Lifecycle: From NEW to TERMINATED Explained

This article provides a comprehensive guide to Java's thread lifecycle, detailing each of the six thread states, their meanings, how they are triggered, and practical code examples that demonstrate state transitions and logging output.

JavaLifecycleThread
0 likes · 10 min read
Mastering Java Thread Lifecycle: From NEW to TERMINATED Explained
Java Backend Technology
Java Backend Technology
Jun 27, 2020 · Fundamentals

Why Use a while Loop Instead of if with wait() in Java Synchronization?

This article explains why a while loop is required rather than an if statement when using wait() inside synchronized blocks, demonstrates the race condition with a bounded buffer example, shows the correct fix, discusses notifyAll versus notify, and illustrates how improper use can lead to deadlocks in Java multithreading.

Javaconcurrencymultithreading
0 likes · 8 min read
Why Use a while Loop Instead of if with wait() in Java Synchronization?
FunTester
FunTester
Jun 25, 2020 · Backend Development

Implementing Asynchronous Test Case Execution with Thread Pool in Java

This article explains how to design and implement a multithreaded framework for executing test cases concurrently in Java, covering thread‑pool creation, a runnable test‑case class, collection execution logic, and parameter handling with user credentials and random data generation.

JavaTestAutomationThreadPool
0 likes · 8 min read
Implementing Asynchronous Test Case Execution with Thread Pool in Java
Top Architect
Top Architect
Jun 17, 2020 · Fundamentals

Understanding Java synchronized: Overview, Usage, Scenarios, Principles, Drawbacks, and FAQs

This article provides a comprehensive guide to Java's synchronized keyword, covering its purpose, object and class lock usage, seven multithreading scenarios, reentrancy and non‑interruptibility properties, underlying lock and visibility mechanisms, performance drawbacks, and common questions with detailed code examples.

Javalockingmultithreading
0 likes · 20 min read
Understanding Java synchronized: Overview, Usage, Scenarios, Principles, Drawbacks, and FAQs
Architect
Architect
Jun 14, 2020 · Backend Development

Practices for Improving RabbitMQ Consumption Speed

This article explains several techniques to boost RabbitMQ consumption speed, including adding more consumers, tuning the prefetch count, employing multithreaded processing, and using batch acknowledgments, while discussing related challenges such as backend capacity, concurrency conflicts, and message ordering.

Batch AckRabbitMQconsumer scaling
0 likes · 10 min read
Practices for Improving RabbitMQ Consumption Speed
Python Crawling & Data Mining
Python Crawling & Data Mining
May 28, 2020 · Backend Development

Multithreaded Python Crawl of Xiaomi App Store Games

This tutorial demonstrates how to use Python's requests, threading, and queue modules to build a multithreaded crawler that extracts game names, download links, and execution time from the Xiaomi App Store, complete with code examples and performance tips.

PythonWeb ScrapingXiaomi App Store
0 likes · 7 min read
Multithreaded Python Crawl of Xiaomi App Store Games
macrozheng
macrozheng
May 27, 2020 · Backend Development

Master Java Thread Interruption: Using interrupt(), isInterrupted() & interrupted()

This article explains Java’s thread interruption mechanism, detailing the purpose and differences of interrupt(), isInterrupted() and interrupted(), how interruption flags work, when InterruptedException is thrown, proper handling practices, common usage scenarios, and examples from JDK classes such as ThreadPoolExecutor and FutureTask.

Interrupt APIJavaThread Interruption
0 likes · 12 min read
Master Java Thread Interruption: Using interrupt(), isInterrupted() & interrupted()
Programmer DD
Programmer DD
May 26, 2020 · Backend Development

Deep Dive into Java's ConcurrentHashMap: Implementation, Put & Remove Mechanics

This article thoroughly examines Java's ConcurrentHashMap, covering its evolution from JDK 1.7 segmented locks to JDK 1.8's CAS‑based design, detailing key internal fields, the thread‑safe put and remove operations, and the complex resizing and transfer mechanisms that enable high‑concurrency performance.

ConcurrentHashMapHashMapJava
0 likes · 24 min read
Deep Dive into Java's ConcurrentHashMap: Implementation, Put & Remove Mechanics
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 20, 2020 · Fundamentals

An Introduction to Java synchronized: Features, Implementation, and Optimizations

This article explains the Java synchronized keyword, detailing its four core properties—atomicity, visibility, ordering, and reentrancy—while illustrating its bytecode behavior, lock types, upgrade mechanisms, and JVM optimizations such as biased, lightweight, and heavyweight locks, lock elimination, and lock coarsening.

lockingmultithreadingsynchronized
0 likes · 15 min read
An Introduction to Java synchronized: Features, Implementation, and Optimizations
FunTester
FunTester
May 9, 2020 · Fundamentals

Mastering Java Synchronization: Object vs Class Locks Explained

This guide explains Java's synchronized keyword, detailing how object‑level and class‑level locks work, provides code examples for each, and lists essential best‑practice tips and common pitfalls to avoid when writing thread‑safe Java code.

JavaLocksSynchronization
0 likes · 6 min read
Mastering Java Synchronization: Object vs Class Locks Explained
Programmer DD
Programmer DD
Apr 30, 2020 · Fundamentals

Unlocking CPU Secrets: How Processors Execute, Cache, and Multithread

This article explains the core components and operation of a CPU, covering the fetch‑decode‑execute cycle, instruction sets, registers, pipeline and superscalar designs, multi‑core and hyper‑threading concepts, and the hierarchy of caches from registers to L3, providing a comprehensive fundamentals overview.

CPUCacheRegisters
0 likes · 14 min read
Unlocking CPU Secrets: How Processors Execute, Cache, and Multithread
FunTester
FunTester
Apr 18, 2020 · Backend Development

Implementing Multi‑Threaded HTTP Load Tests in Java

This article explains how to build two Java load‑testing modes—quantitative and timed—by extending thread‑limit classes, managing GCThread lifecycle, sending HTTP requests with FanLibrary, and correctly cloning request objects to avoid bugs during multithreaded performance testing.

BackendHTTPJava
0 likes · 6 min read
Implementing Multi‑Threaded HTTP Load Tests in Java
FunTester
FunTester
Apr 11, 2020 · Operations

Building a Java Multithreaded Performance Testing Framework: Base and Execution Classes

This article explains how to design a Java performance testing framework by defining an abstract multithreaded base class for common behaviors, implementing two virtual classes for different load‑testing modes, and creating an execution class that orchestrates thread pools, collects metrics, and generates visual reports, with full source code examples and a Gitee repository link.

Code ExampleFrameworkJava
0 likes · 12 min read
Building a Java Multithreaded Performance Testing Framework: Base and Execution Classes
Programmer DD
Programmer DD
Apr 10, 2020 · Fundamentals

When and How to Use Multithreading: Choosing the Right Thread Count

This article explains why multithreading remains essential, distinguishes CPU‑bound and I/O‑bound scenarios, provides formulas for calculating the optimal number of threads, discusses interview questions, and highlights practical considerations such as thread pools and synchronization.

CPU BoundI/O Boundmultithreading
0 likes · 13 min read
When and How to Use Multithreading: Choosing the Right Thread Count
Ctrip Technology
Ctrip Technology
Mar 5, 2020 · Fundamentals

Understanding Kotlin/Native Asynchronous Concurrency: Workers, Object Subgraphs, and Multithreaded Coroutines

This article explores Kotlin/Native's asynchronous concurrency model, detailing the three native approaches—OS‑level threads, Kotlin/Native coroutines, and Workers with object subgraphs—while also examining the preview multithreaded coroutine support, transfer modes, annotations, and practical code examples.

Workersmultithreadingmutex
0 likes · 24 min read
Understanding Kotlin/Native Asynchronous Concurrency: Workers, Object Subgraphs, and Multithreaded Coroutines
FunTester
FunTester
Feb 3, 2020 · Backend Development

Enhancements to Marking, Recording, and Thread Initialization in a Performance Testing Framework

This article details recent updates to a performance testing framework, including moving the mark feature into ThreadBase, changing method signatures, introducing two virtual thread limit classes for count‑based and time‑based execution, optimizing after() handling, and abandoning deep‑copy cloning for thread objects.

Code RefactoringJavaPerformance Testing
0 likes · 10 min read
Enhancements to Marking, Recording, and Thread Initialization in a Performance Testing Framework
FunTester
FunTester
Jan 11, 2020 · Backend Development

How to Track and Record Unique Request IDs in a Java Performance Testing Framework

This article explains how to generate, propagate, and log unique request IDs across multithreaded HTTP calls in a Java performance‑testing framework, providing a MarkRequest interface, a RequestThreadTimes implementation, and a runnable demo that captures request‑ID timestamps for analysis.

HTTPJavaPerformance Testing
0 likes · 8 min read
How to Track and Record Unique Request IDs in a Java Performance Testing Framework
Architecture Digest
Architecture Digest
Jan 4, 2020 · Backend Development

Java Concurrency: Thread Safety, Visibility, Atomicity, and Lock Mechanisms

This article provides a comprehensive overview of Java concurrency concepts, covering thread‑safety issues, variable visibility, atomic operations, the use of synchronized, volatile, ReentrantLock, ReadWriteLock, CountDownLatch, and other AQS‑based synchronizers, with code examples illustrating each mechanism.

AQSJavaLocks
0 likes · 34 min read
Java Concurrency: Thread Safety, Visibility, Atomicity, and Lock Mechanisms
Test Development Learning Exchange
Test Development Learning Exchange
Dec 31, 2019 · Fundamentals

Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads

This article explains multithreading fundamentals, covering thread concepts, lock mechanisms for database access, deadlock causes and solutions, recursive locks (RLock), data race issues, and daemon thread behavior. It also discusses connection pooling, timeout strategies to avoid deadlock, and practical code examples in Python.

Connection PoolingDaemon ThreadLocks
0 likes · 6 min read
Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 26, 2019 · Fundamentals

Java Thread Interview Questions and Answers with Code Examples

This article provides a comprehensive guide to common Java multithreading interview questions, covering thread ordering with join, lock vs synchronized, read‑write locks, wait vs sleep, blocking queues, producer‑consumer patterns, deadlock detection, thread dumps, thread states, and immutable objects, all illustrated with runnable code samples.

BlockingQueueJavaLock
0 likes · 33 min read
Java Thread Interview Questions and Answers with Code Examples
Programmer DD
Programmer DD
Dec 26, 2019 · Fundamentals

Understanding CPU Architecture: From Instruction Cycle to Multicore Caches

This article explains how a CPU executes programs through the fetch‑decode‑execute cycle, describes instruction sets, registers, pipelines, superscalar and multithreaded designs, and details the hierarchy of caches from registers up to L3, providing a comprehensive overview of modern processor fundamentals.

CPUcachescomputer architecture
0 likes · 12 min read
Understanding CPU Architecture: From Instruction Cycle to Multicore Caches
FunTester
FunTester
Dec 4, 2019 · Backend Development

Implementing Fixed‑Count and Fixed‑Time Load Tests with a Custom ThreadBase in Java

This article explains how to extend an existing Java performance‑testing framework by adding a fixed‑time mode alongside the traditional fixed‑count mode, detailing the design of ThreadBase, ThreadLimitTimes, ThreadLimitTime classes, demo implementations for HTTP requests, and key design considerations for low‑overhead timing and early termination.

Backend DevelopmentJavaLoad Testing
0 likes · 12 min read
Implementing Fixed‑Count and Fixed‑Time Load Tests with a Custom ThreadBase in Java
Programmer DD
Programmer DD
Dec 4, 2019 · Fundamentals

What a Fruit Store Can Teach You About Java Concurrency

This article uses a vivid fruit‑store analogy to explain Java multithreading concepts such as locks, synchronized blocks, wait/notify, thread states, time‑slicing, and volatile variables, helping readers grasp core concurrency mechanisms in an engaging narrative.

LocksSynchronizationconcurrency
0 likes · 18 min read
What a Fruit Store Can Teach You About Java Concurrency
Java Captain
Java Captain
Nov 22, 2019 · Fundamentals

A Fruit Store Analogy for Understanding Java Concurrency

The article uses a vivid fruit‑store story to illustrate core Java concurrency concepts such as threads, lock objects, critical sections, thread states, synchronization queues, wait/notify mechanisms, and volatile variables, helping readers grasp multithreading fundamentals through relatable scenarios.

JavaLockThread
0 likes · 17 min read
A Fruit Store Analogy for Understanding Java Concurrency
Java Backend Technology
Java Backend Technology
Nov 14, 2019 · Backend Development

Master Java Debugging: Conditional Breakpoints, Drop Frame, Remote Debug & More

This guide explains essential Java debugging techniques—including conditional breakpoints, dropping to a previous stack frame, handling multithreaded breakpoints, remote debugging setup, and evaluating or modifying expressions on the fly—providing clear steps and visual examples to help developers debug more efficiently.

DebuggingIDEbreakpoints
0 likes · 6 min read
Master Java Debugging: Conditional Breakpoints, Drop Frame, Remote Debug & More