Tagged articles
170 articles
Page 1 of 2
Java Architect Handbook
Java Architect Handbook
Apr 24, 2026 · Interview Experience

Why Use Coroutines When Threads Already Exist? Java Interview Deep Dive

An interview‑focused analysis explains how processes allocate resources, threads handle CPU scheduling, and coroutines act as lightweight user‑mode threads, comparing their creation costs, switching overhead, and memory usage, and highlights Java 19/21 virtual threads as the Java implementation of coroutines.

ThreadVirtual Threadsconcurrency
0 likes · 13 min read
Why Use Coroutines When Threads Already Exist? Java Interview Deep Dive
IT Services Circle
IT Services Circle
Feb 5, 2026 · Backend Development

DeWu 2024 Backend Salary Insights & Deep Dive into Java Interview Questions

The article reveals detailed 2024 campus recruitment salary packages for DeWu’s backend, SRE, and client development roles, compares offer tiers, shares interview difficulty, and provides in‑depth technical explanations of Redis key expiration, MySQL redo/undo logs, crash recovery, thread context switching, and performance optimizations.

BackendThreadsalary
0 likes · 18 min read
DeWu 2024 Backend Salary Insights & Deep Dive into Java Interview Questions
Deepin Linux
Deepin Linux
Dec 28, 2025 · Fundamentals

Understanding Linux User Stacks: How Threads Manage Memory and Calls

This article explains the role of the Linux user stack in multithreaded programs, covering its memory layout, how each thread gets a private stack, stack frame mechanics, growth and overflow handling, and practical examples of creating and debugging stacks with pthreads and gdb.

LinuxThreadUser Stack
0 likes · 24 min read
Understanding Linux User Stacks: How Threads Manage Memory and Calls
Deepin Linux
Deepin Linux
Dec 24, 2025 · Fundamentals

Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes

This article explains how Linux thread stacks work, why improper stack size or unchecked recursion can cause crashes and memory leaks, and provides practical debugging tools, stack‑size tuning methods, and optimization techniques—including thread‑pool usage and real‑world case studies—to keep concurrent programs stable and efficient.

StackThreaddebugging
0 likes · 28 min read
Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes
Java Tech Enthusiast
Java Tech Enthusiast
Nov 21, 2025 · Fundamentals

Catch Memory Changes with GDB Watchpoints in C/C++

This guide explains how to set hardware watchpoints in GDB to monitor specific memory addresses, demonstrates the technique with a simple C++ program that modifies a variable via a thread, and shows how GDB reports the exact location and values of the change.

Threadc++gdb
0 likes · 6 min read
Catch Memory Changes with GDB Watchpoints in C/C++
Liangxu Linux
Liangxu Linux
Oct 18, 2025 · Backend Development

How to Safely Stop a Java Thread: From interrupt() to stop() and Beyond

This article explains multiple techniques for terminating a Java thread—including using interrupt flags, checking thread state with isInterrupted(), handling InterruptedException, and why the deprecated stop() method is unsafe—providing code examples, output results, and cautions about lock release and data consistency.

ExceptionStopThread
0 likes · 12 min read
How to Safely Stop a Java Thread: From interrupt() to stop() and Beyond
IT Services Circle
IT Services Circle
Sep 22, 2025 · Backend Development

Ace Java Interviews: From Thread States to Design Patterns and Linux Tips

This article compiles practical interview advice, core Java concepts, thread and process differences, database transaction fundamentals, essential Linux commands, and design‑pattern basics to help candidates succeed in software‑development interviews, especially for major bank R&D centers.

Threadbank-softwaredesign-patterns
0 likes · 16 min read
Ace Java Interviews: From Thread States to Design Patterns and Linux Tips
Python Programming Learning Circle
Python Programming Learning Circle
Sep 15, 2025 · Fundamentals

Processes vs Threads: Key Differences, Pros, Cons, and When to Use Them

This article explains the fundamental concepts of processes and threads, compares their definitions, lifecycles, advantages and disadvantages, and provides practical guidelines for choosing between multi‑processing and multi‑threading based on factors such as resource usage, performance, reliability, and application requirements.

Threadconcurrencymultithreading
0 likes · 19 min read
Processes vs Threads: Key Differences, Pros, Cons, and When to Use Them
Architect's Guide
Architect's Guide
Jul 25, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution shortens request latency and presents eight practical Java techniques—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code examples and usage tips.

CompletableFutureFutureMessage Queue
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
Java Tech Enthusiast
Java Tech Enthusiast
Jul 24, 2025 · Backend Development

Ace Your Java Interview: Key Concepts, Thread States, and Linux Tips

This article provides a comprehensive Java interview guide covering effective self‑introduction, showcasing internship contributions, comparing Java and C++ features, explaining method overloading versus overriding, clarifying process‑thread differences and thread lifecycle states, and offering essential Linux commands for memory monitoring and file searching.

LinuxThreadc++
0 likes · 11 min read
Ace Your Java Interview: Key Concepts, Thread States, and Linux Tips
Cognitive Technology Team
Cognitive Technology Team
Jul 20, 2025 · Fundamentals

Unlock Java’s Memory Model: How Threads See Shared Data

This article explains the Java Memory Model, how the JVM organizes memory into thread stacks and heap, how threads interact with shared variables, the impact of hardware memory architecture, and practical techniques like volatile and synchronized to ensure visibility and avoid race conditions.

Memory ModelSynchronizationThread
0 likes · 14 min read
Unlock Java’s Memory Model: How Threads See Shared Data
Deepin Linux
Deepin Linux
Jun 20, 2025 · Fundamentals

Unlock C++11: 10 Game‑Changing Features Every Developer Must Master

This article walks through the most impactful C++11 enhancements—including initializer lists, auto type deduction, decltype, smart pointers, lambda expressions, move semantics, range‑based for loops, nullptr, constexpr, type aliases, and the thread library—explaining their syntax, benefits, and practical usage with clear code examples.

C++11LambdaThread
0 likes · 27 min read
Unlock C++11: 10 Game‑Changing Features Every Developer Must Master
Java Captain
Java Captain
May 21, 2025 · Fundamentals

Understanding Java Thread States and Their Transitions with Example Code

This article explains the six Java thread states defined in java.lang.Thread.State, describes the meaning of each state, illustrates the possible state transitions, and provides three runnable code examples that demonstrate NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING and TERMINATED states along with their console outputs.

ThreadThreadStateconcurrency
0 likes · 11 min read
Understanding Java Thread States and Their Transitions with Example Code
Deepin Linux
Deepin Linux
May 6, 2025 · Fundamentals

Understanding Processes and Threads: Concepts, Differences, and When to Use Them

This article explains the fundamental concepts of processes and threads, their relationship, resource allocation, scheduling, communication methods, practical use cases, and interview preparation tips, helping readers choose between multiprocessing and multithreading for various scenarios.

Threadconcurrencymultiprocessing
0 likes · 22 min read
Understanding Processes and Threads: Concepts, Differences, and When to Use Them
Deepin Linux
Deepin Linux
May 3, 2025 · Backend Development

Analyzing and Resolving Uninterruptible Thread States During System Suspend

This article examines why a thread may remain in an uninterruptible wake‑up state during system suspend, explains deadlock fundamentals, outlines thread lifecycle states, and provides practical debugging steps and mitigation strategies using Java concurrency tools and system monitoring.

Threadconcurrencydeadlock
0 likes · 23 min read
Analyzing and Resolving Uninterruptible Thread States During System Suspend
Cognitive Technology Team
Cognitive Technology Team
Mar 25, 2025 · Fundamentals

Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture

This article explains how the Java Memory Model defines the interaction between threads, thread stacks, and the heap, illustrates these concepts with diagrams and example code, and discusses how modern hardware memory architecture, caches, and CPU registers affect visibility and race conditions in concurrent Java programs.

HeapMemory ModelThread
0 likes · 11 min read
Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture
IT Services Circle
IT Services Circle
Mar 22, 2025 · Backend Development

Nine Ways to Implement Asynchronous Programming in Java

This article introduces nine different approaches to achieve asynchronous programming in Java, including using Thread and Runnable, Executors thread pools, custom thread pools, Future and Callable, CompletableFuture, ForkJoinPool, Spring @Async, message queues, and Hutool's ThreadUtil, with code examples and usage tips.

AsynchronousCompletableFutureExecutor
0 likes · 15 min read
Nine Ways to Implement Asynchronous Programming in Java
Java Tech Enthusiast
Java Tech Enthusiast
Mar 22, 2025 · Backend Development

9 Ways to Implement Asynchronous Programming in Java

The article outlines nine practical approaches for asynchronous programming in Java—including low‑level Thread/Runnable, managed Executors and custom thread pools, Future/Callable, CompletableFuture, ForkJoinPool, Spring’s @Async annotation, message‑queue integration, and the Hutool ThreadUtil utility—offering a comprehensive toolbox for scalable, non‑blocking execution.

AsynchronousCompletableFutureExecutor
0 likes · 13 min read
9 Ways to Implement Asynchronous Programming in Java
Lobster Programming
Lobster Programming
Feb 20, 2025 · Backend Development

Will a JVM Exit When a Thread Runs Out of Memory? Deep Dive with Code

This article investigates whether the JVM terminates when a thread encounters an OutOfMemoryError, demonstrating through Spring Boot controllers and multithreaded examples how main and child threads, daemon settings, and explicit OOM handling affect JVM shutdown behavior.

JVMOutOfMemoryErrorSpring Boot
0 likes · 6 min read
Will a JVM Exit When a Thread Runs Out of Memory? Deep Dive with Code
Deepin Linux
Deepin Linux
Jan 13, 2025 · Backend Development

C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study

This article explains why C++ timers are essential for asynchronous programming, presents three implementation approaches—including a simple thread‑chrono version, a Boost.Asio based timer, and a C++11 atomic/condition‑variable design—offers practical optimization tips such as precise intervals, thread‑pool reuse, efficient callbacks, and memory management, and demonstrates their impact with a network‑server case study comparing naïve and optimized solutions.

Boost.AsioC++Thread
0 likes · 22 min read
C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jan 6, 2025 · Backend Development

Master Thread Sequencing in Java: 8 Proven Techniques

This article explains why thread execution order is nondeterministic and presents eight Java techniques—join, single‑thread executor, CountDownLatch, CyclicBarrier, Semaphore, synchronized with wait/notify, and Lock with Condition—to reliably enforce sequential execution, complete with clear code examples for each method.

CountDownLatchExecutorServiceLock
0 likes · 13 min read
Master Thread Sequencing in Java: 8 Proven Techniques
FunTester
FunTester
Nov 28, 2024 · Backend Development

Java Multithreading Implementations

This article explains three common ways to create multithreaded Java programs—extending Thread, implementing Runnable, and using Lambda expressions—providing step‑by‑step instructions, code samples, console output, and a summary of each method’s advantages and appropriate use cases.

LambdaRunnableThread
0 likes · 6 min read
Java Multithreading Implementations
Architect's Guide
Architect's Guide
Aug 25, 2024 · Backend Development

Eight Ways to Implement Asynchronous Execution in Java

This article introduces eight common Java asynchronous implementation techniques—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, third‑party utilities like Hutool ThreadUtil and Guava ListenableFuture—explaining their usage, code examples, advantages, and drawbacks for improving performance in scenarios such as sending SMS or emails.

CompletableFutureFutureGuava
0 likes · 14 min read
Eight Ways to Implement Asynchronous Execution in Java
Code Wrench
Code Wrench
Aug 20, 2024 · Fundamentals

Master OS Fundamentals: From Kernel/User Modes to Semaphores

This article explains core operating system concepts—including its main functions, the distinction between user and kernel modes, process and thread management, and semaphore-based synchronization—providing clear definitions, code examples, and practical usage scenarios for developers.

Threadkernelprocess
0 likes · 8 min read
Master OS Fundamentals: From Kernel/User Modes to Semaphores
MaGe Linux Operations
MaGe Linux Operations
May 2, 2024 · Fundamentals

Unlock Python’s Power: Master Multiprocessing for Faster, Scalable Code

This comprehensive guide explains Python’s multiprocessing module, covering process creation, inter‑process communication, pools, synchronization primitives, error handling, and real‑world examples such as web crawlers, data analysis, and game servers, helping developers harness multiple CPU cores to boost performance and avoid GIL limitations.

Code ExamplesParallelismPython
0 likes · 32 min read
Unlock Python’s Power: Master Multiprocessing for Faster, Scalable Code
Java Tech Enthusiast
Java Tech Enthusiast
Feb 28, 2024 · Backend Development

Understanding Java Processes, Threads, and Thread Creation Techniques

The article clarifies Java processes and threads using a game analogy, then demonstrates three thread‑creation techniques—extending Thread, implementing Runnable, and implementing Callable with FutureTask—while covering run vs start, thread control methods such as sleep, join, and daemon settings.

CallableRunnableThread
0 likes · 9 min read
Understanding Java Processes, Threads, and Thread Creation Techniques
Architect Chen
Architect Chen
Feb 23, 2024 · Fundamentals

Mastering Java’s Six Thread States: A Visual Guide

This article explains Java’s six thread states—NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED—using clear diagrams, concise descriptions, and practical code examples to help developers understand how threads transition during execution.

Threadconcurrencyprogramming
0 likes · 6 min read
Mastering Java’s Six Thread States: A Visual Guide
FunTester
FunTester
Feb 18, 2024 · Backend Development

Mastering Java Concurrency: Threads, Synchronization, and Immutable Design

This article provides a step‑by‑step guide to Java concurrency, covering core concepts such as threads, runnables, thread lifecycle, synchronization primitives, wait/notify patterns, volatile variables, ThreadLocal storage, and how to design immutable objects for thread‑safety, all illustrated with concrete code examples and detailed explanations.

ImmutableSynchronizationThread
0 likes · 17 min read
Mastering Java Concurrency: Threads, Synchronization, and Immutable Design
Su San Talks Tech
Su San Talks Tech
Feb 11, 2024 · Backend Development

How to Retrieve Async Return Values with Java FutureTask?

This article explains how to obtain return values from asynchronous Java methods using FutureTask, covering its AQS foundation, execution flow, get() behavior, and provides concrete source code examples for practical implementation.

AQSAsyncFuture
0 likes · 13 min read
How to Retrieve Async Return Values with Java FutureTask?
Java High-Performance Architecture
Java High-Performance Architecture
Jan 24, 2024 · Backend Development

8 Powerful Ways to Implement Asynchronous Execution in Java

Understanding asynchronous execution in Java can dramatically reduce latency for tasks such as sending SMS, emails, or updating data, and this article walks through eight practical implementations—from raw Threads and Futures to Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code samples and best‑practice tips.

AsynchronousCompletableFutureGuava
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Execution in Java
MaGe Linux Operations
MaGe Linux Operations
Nov 16, 2023 · Fundamentals

How to Gracefully Stop a Java Thread Without Using Thread.stop()

This article explains why forcibly stopping a Java thread is unsafe, outlines common scenarios that require thread termination, compares graceful and forced shutdown methods, and provides practical techniques—including flag checks and Thread.interrupt—to safely exit threads in Java applications.

Graceful ShutdownThreadinterrupt()
0 likes · 11 min read
How to Gracefully Stop a Java Thread Without Using Thread.stop()
Cognitive Technology Team
Cognitive Technology Team
Nov 1, 2023 · Fundamentals

Differences and Similarities between wait() and sleep() in Java

Both wait() and sleep() can pause a thread and enter waiting states, but wait() belongs to Object and requires synchronized blocks, releases the monitor lock, and must handle spurious wakeups, whereas sleep() is a Thread method that does not release locks and has simpler usage.

SynchronizationThreadconcurrency
0 likes · 4 min read
Differences and Similarities between wait() and sleep() in Java
Sanyou's Java Diary
Sanyou's Java Diary
Oct 26, 2023 · Backend Development

Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async

Explore the fundamentals and advanced techniques of asynchronous programming in Java, from basic thread creation and thread pools to Future, FutureTask, CompletableFuture, and Spring Boot’s @Async annotation, including practical code examples, event handling, and message queue integration for high‑throughput systems.

CompletableFutureFutureSpring Boot
0 likes · 17 min read
Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async
Cognitive Technology Team
Cognitive Technology Team
Oct 11, 2023 · Fundamentals

Gracefully Stopping a Java Thread and the Difference Between isInterrupted() and interrupted()

The deprecated Thread.stop method should never be used; instead, Java threads are stopped gracefully by using a volatile stop flag or interrupting blocked threads, handling InterruptedException, and distinguishing between Thread.isInterrupted() (read‑only) and Thread.interrupted() (clears the flag).

Graceful ShutdownThreadconcurrency
0 likes · 4 min read
Gracefully Stopping a Java Thread and the Difference Between isInterrupted() and interrupted()
政采云技术
政采云技术
Sep 13, 2023 · Backend Development

Understanding Java Threads and Thread Pools

This article explains the concept of threads in Java, how to create them, the purpose and benefits of thread pools, the inheritance hierarchy of Java's Executor framework, key parameters of ThreadPoolExecutor, rejection policies, pool states, and the underlying working mechanism, supplemented with code examples.

ExecutorRejectionPolicyThread
0 likes · 15 min read
Understanding Java Threads and Thread Pools
FunTester
FunTester
Aug 17, 2023 · Backend Development

Understanding java.lang.Runtime.addShutdownHook for JVM Graceful Shutdown

This article explains the Java Runtime addShutdownHook API, its purpose for registering shutdown hooks, typical use cases such as resource cleanup, state saving, and logging, and provides practical Java and Groovy code examples while noting that hook execution order is unspecified.

GroovyRuntimeShutdownHook
0 likes · 6 min read
Understanding java.lang.Runtime.addShutdownHook for JVM Graceful Shutdown
Top Architect
Top Architect
Jun 20, 2023 · Backend Development

Eight Ways to Implement Asynchronous Programming in Java

This article introduces eight practical approaches for achieving asynchronous execution in Java—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture—providing code samples, configuration tips, and discussion of each method's advantages and drawbacks.

AsynchronousBackendCompletableFuture
0 likes · 14 min read
Eight Ways to Implement Asynchronous Programming in Java
Programmer DD
Programmer DD
May 31, 2023 · Backend Development

8 Powerful Ways to Implement Asynchronous Execution in Java

This article explains what asynchronous execution is, compares it with synchronous processing, and presents eight practical Java implementations—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture—complete with code samples and usage tips.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Execution in Java
Architect's Guide
Architect's Guide
May 12, 2023 · Backend Development

Eight Ways to Implement Asynchronous Programming in Java

This article introduces the concept of asynchronous execution and presents eight practical Java implementations—including Thread, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—along with code examples and usage tips for each method.

AsynchronousCompletableFutureFuture
0 likes · 12 min read
Eight Ways to Implement Asynchronous Programming in Java
Architect's Guide
Architect's Guide
May 9, 2023 · Backend Development

How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls

This article explains various ways to terminate a running Java thread, including using exit flags, the deprecated stop/suspend/resume methods, interrupt, handling InterruptedException, and the risks of forceful termination, accompanied by detailed code examples and best‑practice recommendations.

Deprecated APIThreadThread Management
0 likes · 11 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
DeWu Technology
DeWu Technology
May 5, 2023 · Fundamentals

Understanding JVM Safepoints: Concepts, Examples, and Tuning

JVM safepoints are pause points where the VM can stop all threads for operations like garbage collection; the article shows how counted loops can prevent threads from reaching safepoints, causing unexpected long sleeps, and explains tuning flags, loop‑counter changes, and best practices to avoid STW pauses.

Garbage CollectionJVMSafepoint
0 likes · 18 min read
Understanding JVM Safepoints: Concepts, Examples, and Tuning
Selected Java Interview Questions
Selected Java Interview Questions
Apr 11, 2023 · Fundamentals

Understanding the Differences Between Processes and Threads, Concurrency, and Shared Resources

This article explains the concepts of processes and threads, their fundamental differences, how they relate to concurrency and parallelism, and details which resources are private to each thread versus shared across a process, using diagrams and real‑world factory analogies to aid understanding.

Operating SystemParallelismThread
0 likes · 13 min read
Understanding the Differences Between Processes and Threads, Concurrency, and Shared Resources
Su San Talks Tech
Su San Talks Tech
Mar 19, 2023 · Backend Development

Master 8 Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution is essential for tasks like sending SMS or emails, defines async concepts, and walks through eight practical Java implementations—including Thread, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code examples and usage tips.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
Master 8 Ways to Implement Asynchronous Programming in Java
Architect's Guide
Architect's Guide
Mar 18, 2023 · Backend Development

Eight Ways to Implement Asynchronous Execution in Java

This article introduces eight common methods for implementing asynchronous execution in Java, including threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture, and provides code examples and usage considerations.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
Eight Ways to Implement Asynchronous Execution in Java
Top Architect
Top Architect
Mar 3, 2023 · Backend Development

How to Stop a Java Thread: Methods, Code Samples, and Common Pitfalls

This article explains various ways to terminate a running Java thread, including using exit flags, interrupt(), deprecated stop()/suspend()/resume() methods, handling InterruptedException, while providing code examples and discussing the risks of forceful termination.

StopMethodThreadconcurrency
0 likes · 12 min read
How to Stop a Java Thread: Methods, Code Samples, and Common Pitfalls
Architect
Architect
Mar 1, 2023 · Backend Development

Eight Asynchronous Programming Techniques in Java

This article introduces eight common methods for achieving asynchronous execution in Java, including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture, explaining their usage, advantages, and limitations.

AsynchronousCompletableFutureFuture
0 likes · 10 min read
Eight Asynchronous Programming Techniques in Java
Architect
Architect
Feb 23, 2023 · Fundamentals

How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls

This article explains various ways to terminate a running Java thread, comparing safe flag‑based exit, the deprecated stop/suspend/resume methods, and the recommended interrupt approach, while demonstrating how to detect interruption status, handle exceptions, and avoid common pitfalls with code examples.

DeprecatedExceptionThread
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
Java High-Performance Architecture
Java High-Performance Architecture
Feb 22, 2023 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explores eight Java asynchronous programming techniques—from raw threads and Future to CompletableFuture, Spring @Async, event-driven approaches, message queues, Hutool ThreadUtil, and Guava ListenableFuture—detailing their concepts, advantages, limitations, and providing complete code examples for each.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
Code Ape Tech Column
Code Ape Tech Column
Jan 18, 2023 · Backend Development

Eight Ways to Implement Asynchronous Execution in Java

This article introduces eight practical techniques for achieving asynchronous processing in Java—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture—complete with code examples and discussion of their advantages and limitations.

AsynchronousFutureGuava
0 likes · 14 min read
Eight Ways to Implement Asynchronous Execution in Java
Laravel Tech Community
Laravel Tech Community
Jan 4, 2023 · Fundamentals

Understanding Processes, Threads, Concurrency, and Process Pools

This article explains the concepts of processes and threads, their differences and interactions, the states of a process, the distinctions between serial, concurrent, and parallel execution, and the purpose and operation of process pools in modern computing environments.

ParallelismProcess PoolThread
0 likes · 12 min read
Understanding Processes, Threads, Concurrency, and Process Pools
Refining Core Development Skills
Refining Core Development Skills
Oct 12, 2022 · Fundamentals

Deep Comparison of Linux Processes and Threads from the Kernel Implementation Perspective

This article explains how Linux implements processes and threads, showing that both are represented by the same task_struct structure, detailing thread creation via pthread_create and clone, and comparing the kernel‑level steps—including flag handling, copy_process, and resource sharing—that differentiate threads from full processes.

LinuxThreadclone
0 likes · 17 min read
Deep Comparison of Linux Processes and Threads from the Kernel Implementation Perspective
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 18, 2022 · Backend Development

Java Asynchronous Programming: Five Implementation Methods Explained

This article introduces the concept of asynchronous programming in Java, compares it with synchronous execution, and provides detailed examples of five implementation approaches—thread creation, thread pool with Future, CompletableFuture, SpringBoot @Async, and Guava ListenableFuture—complete with code snippets and usage guidelines.

CompletableFutureFutureGuava
0 likes · 9 min read
Java Asynchronous Programming: Five Implementation Methods Explained
Su San Talks Tech
Su San Talks Tech
Aug 19, 2022 · Fundamentals

Master Java Concurrency: 60+ Interview Q&A on Threads, Locks & Thread Pools

This comprehensive guide explores Java concurrency fundamentals, covering thread creation, lifecycle, synchronization mechanisms, lock implementations, thread-local storage, memory model, atomic classes, common concurrency utilities, and detailed explanations of thread pools, their configurations, states, and best practices, accompanied by over sixty interview-style questions and code examples.

LockSynchronizationThread
0 likes · 81 min read
Master Java Concurrency: 60+ Interview Q&A on Threads, Locks & Thread Pools
Tencent Cloud Developer
Tencent Cloud Developer
Jul 25, 2022 · Backend Development

Understanding Go Concurrency: Goroutines, Scheduler, Threads and Synchronization

The article explains Go’s concurrency model, detailing how goroutines are lightweight work units scheduled by the Go runtime onto logical processors, the role of the scheduler, differences between concurrency and parallelism, thread limits, and practical synchronization tools such as WaitGroup, atomic operations, and mutexes.

GoSchedulerSynchronization
0 likes · 19 min read
Understanding Go Concurrency: Goroutines, Scheduler, Threads and Synchronization
Cognitive Technology Team
Cognitive Technology Team
Jul 23, 2022 · Backend Development

Understanding FutureTask: Features, Implementation, and Common Pitfalls

FutureTask acts as a proxy for asynchronous tasks in Java, providing result retrieval with optional timeout, completion checks, cancellation, and repeat execution, while managing task state, outcomes, and exceptions; the article illustrates usage, internal fields, and common pitfalls such as missed exceptions and indefinite blocking.

AsynchronousFutureTaskThread
0 likes · 5 min read
Understanding FutureTask: Features, Implementation, and Common Pitfalls
Sohu Tech Products
Sohu Tech Products
Jun 8, 2022 · Mobile Development

Understanding iOS RunLoop: Architecture, Modes, and Message Handling

This article provides an in‑depth technical overview of iOS RunLoop, explaining its relationship to threads, event loops, RunLoop modes, sources, timers, observers, and the underlying Mach message mechanisms, while including original source code excerpts for reference.

CoreFoundationMachRunLoop
0 likes · 30 min read
Understanding iOS RunLoop: Architecture, Modes, and Message Handling
Sohu Tech Products
Sohu Tech Products
Jun 8, 2022 · Mobile Development

Practical Uses of RunLoop in iOS: Thread Keep‑Alive, Stopping, Lazy Image Loading, Lag Detection, Crash Protection, and Integration in the Matrix Framework

This article explains how iOS RunLoop can be leveraged for thread keep‑alive, controlled termination, lazy image loading, various lag‑detection techniques, crash protection strategies, and demonstrates its integration within the open‑source Matrix framework, providing concrete Swift and Objective‑C code examples.

Mobile DevelopmentObjective‑CPerformance Monitoring
0 likes · 18 min read
Practical Uses of RunLoop in iOS: Thread Keep‑Alive, Stopping, Lazy Image Loading, Lag Detection, Crash Protection, and Integration in the Matrix Framework
Selected Java Interview Questions
Selected Java Interview Questions
Jun 4, 2022 · Backend Development

Understanding Java Thread Creation, Thread Pools, and Optimization Strategies

This article explains how Java threads are created via the Thread.start method, details the underlying native implementation using pthread_create, compares Thread, Runnable, and Callable approaches, discusses the performance costs of spawning many threads, and presents thread‑pool optimization techniques for CPU‑ and I/O‑bound tasks.

ThreadThreadPool
0 likes · 13 min read
Understanding Java Thread Creation, Thread Pools, and Optimization Strategies
Cognitive Technology Team
Cognitive Technology Team
May 21, 2022 · Fundamentals

Cooperative Thread Cancellation in Java: Flags and Interrupts

The article explains that Java lacks a safe preemptive way to stop threads and describes two cooperative cancellation mechanisms—using a volatile cancellation flag and using thread interruption—along with code examples and practical considerations for each approach.

Threadcancellationconcurrency
0 likes · 5 min read
Cooperative Thread Cancellation in Java: Flags and Interrupts
Cognitive Technology Team
Cognitive Technology Team
May 7, 2022 · Fundamentals

Understanding Java Context ClassLoader and How It Breaks the Parent Delegation Model

This article explains why Java introduced the Context ClassLoader to bypass the parent‑delegation model, demonstrates its role in SPI mechanisms such as JDBC driver loading, compares class loader behavior in Spring Boot development versus packaged execution, and highlights common pitfalls when using custom class loaders.

ContextClassLoaderSPISpring Boot
0 likes · 8 min read
Understanding Java Context ClassLoader and How It Breaks the Parent Delegation Model
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2022 · Fundamentals

Java Thread States and How to Query Them

This article explains Java’s six thread states—NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED—provides detailed descriptions, shows how to inspect thread states using jstack and online tools, and includes example thread dumps for practical analysis.

Threadconcurrencyjava
0 likes · 6 min read
Java Thread States and How to Query Them
IT Services Circle
IT Services Circle
Apr 26, 2022 · Backend Development

Typical Java Crash Scenarios with Sample Code

This article examines typical Java application failure scenarios—including heap OOM, memory leaks, CPU spikes, thread leaks, deadlocks, stack overflows, and blocked threads—providing concise code examples and practical diagnostic tips for root cause analysis.

CrashThreaddebugging
0 likes · 9 min read
Typical Java Crash Scenarios with Sample Code
MaGe Linux Operations
MaGe Linux Operations
Apr 22, 2022 · Fundamentals

Understanding Linux CPU Context Switches: Impact and Mechanics

This article explains how Linux creates the illusion of multitasking by rapidly swapping CPU registers and program counters, details the three types of context switches—process, thread, and interrupt—and shows why excessive switching can significantly degrade system performance.

LinuxThreadcontext switch
0 likes · 10 min read
Understanding Linux CPU Context Switches: Impact and Mechanics
Top Architect
Top Architect
Apr 19, 2022 · Backend Development

Understanding Java Thread States and ThreadPoolExecutor

This article explains Java thread lifecycle states, the Thread.State enum, and the design and implementation details of ThreadPoolExecutor—including its constructors, parameters, internal state constants, ctl bit manipulation, and rejection policies—while also providing code examples and usage guidance.

JavaConcurrencyThreadThreadPoolExecutor
0 likes · 12 min read
Understanding Java Thread States and ThreadPoolExecutor
FunTester
FunTester
Dec 22, 2021 · Backend Development

Java Multithreading Tutorial: Simulating Ticket Booking with Runnable

This article explains how to implement Java multithreading using the Runnable interface through a ticket‑booking example, demonstrates common pitfalls like calling run() directly, shows code with and without Thread.sleep, and discusses concurrency issues such as thread‑unsafe ticket duplication.

RunnableThreadconcurrency
0 likes · 10 min read
Java Multithreading Tutorial: Simulating Ticket Booking with Runnable
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 30, 2021 · Fundamentals

Master Python Multiprocessing: From Basics to Real-World File Copying

This article explains the differences between processes and threads, the advantages of using multiple processes in Python, and provides step‑by‑step code examples—including basic process creation, subclassing Process, inter‑process communication with queues, process pools, and a practical file‑copying case study—to help readers master multiprocessing for efficient concurrent programming.

Code ExamplesThreadconcurrency
0 likes · 11 min read
Master Python Multiprocessing: From Basics to Real-World File Copying
Wukong Talks Architecture
Wukong Talks Architecture
Oct 28, 2021 · Backend Development

Common Java Interview Questions and Answers

This article compiles a comprehensive list of frequently asked Java interview questions, covering topics such as the relationship between JDK/JRE/JVM, object creation methods, differences between == and equals, hashCode, String variants, synchronization mechanisms, lock implementations, collections, concurrency utilities, thread pools, and I/O models, providing concise explanations for each.

CollectionsJDKJVM
0 likes · 14 min read
Common Java Interview Questions and Answers
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 22, 2021 · Fundamentals

Understanding and Solving Deadlocks in Java: Demonstrations, Causes, Detection Tools, and Solutions

This article explains Java deadlocks with synchronized and Lock examples, outlines the four necessary conditions, introduces detection tools such as jstack, jconsole, jvisualvm and jmc, and presents practical solutions including sequential locking and polling lock techniques with optimizations to avoid loops and starvation.

LockSynchronizationThread
0 likes · 27 min read
Understanding and Solving Deadlocks in Java: Demonstrations, Causes, Detection Tools, and Solutions
ByteDance Web Infra
ByteDance Web Infra
Sep 16, 2021 · Backend Development

Deep Dive into Node.js Architecture and Core Module Implementation

This article provides a comprehensive overview of Node.js’s architecture, including its composition, code structure, startup process, event loop phases, process and thread management, core modules such as Cluster, libuv thread pool, signal handling, file operations, and networking protocols, illustrating how the runtime integrates V8 and operating‑system features.

BackendNode.jsThread
0 likes · 29 min read
Deep Dive into Node.js Architecture and Core Module Implementation
Top Architect
Top Architect
Aug 11, 2021 · Fundamentals

Why Thread.stop and Thread.suspend Are Deprecated and How to Gracefully Stop Threads in Java

This article explains why the Thread.stop and Thread.suspend methods were deprecated in modern Java, demonstrates the problems they cause with concrete code examples, and presents two safe alternatives—using a shared flag and the interrupt mechanism—to gracefully terminate threads without risking deadlocks or resource leaks.

DeprecatedStopSuspend
0 likes · 10 min read
Why Thread.stop and Thread.suspend Are Deprecated and How to Gracefully Stop Threads in Java
Selected Java Interview Questions
Selected Java Interview Questions
Aug 9, 2021 · Backend Development

Understanding Java Thread States and Their Transitions

This article explains Java thread states, their lifecycle transitions, and provides practical code examples demonstrating NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED states, along with insights on synchronization, spurious wakeups, and best practices for using wait() within loops.

ThreadThreadStatejava
0 likes · 14 min read
Understanding Java Thread States and Their Transitions
Architects' Tech Alliance
Architects' Tech Alliance
Jul 19, 2021 · Fundamentals

Understanding Processes and Threads: Definitions, Differences, Advantages, and Practical Usage

This article explains the fundamental concepts of processes and threads in operating systems, compares their characteristics, outlines their respective advantages and disadvantages, and provides practical guidelines for choosing between multi‑process and multi‑thread designs in real‑world applications.

Operating SystemParallelismThread
0 likes · 20 min read
Understanding Processes and Threads: Definitions, Differences, Advantages, and Practical Usage