Tagged articles
34 articles
Page 1 of 1
Tencent Technical Engineering
Tencent Technical Engineering
Dec 15, 2025 · Artificial Intelligence

How to Add Human‑in‑the‑Loop Interrupts to LangGraph Agents for Safe, Controllable AI Workflows

This guide explains the concept of human‑in‑the‑loop (HITL) interruptions in LangGraph, outlines the core mechanisms such as persistent state and dynamic/static interrupts, and provides detailed Python examples for four classic patterns—approval/rejection, state editing, tool‑call review, and input validation—plus advanced topics like parallel interrupts and MCP‑based tool integration.

AI agentsHuman-in-the-LoopLangGraph
0 likes · 35 min read
How to Add Human‑in‑the‑Loop Interrupts to LangGraph Agents for Safe, Controllable AI Workflows
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.

ExceptionJavaStop
0 likes · 12 min read
How to Safely Stop a Java Thread: From interrupt() to stop() and Beyond
Linux Code Review Hub
Linux Code Review Hub
Mar 27, 2025 · Operations

A Complete Guide to Linux Interrupt Management and Workqueues

This article provides an in‑depth, step‑by‑step analysis of Linux GICv3 interrupt architecture, the kernel driver initialization, hardware‑to‑virtual interrupt mapping, the full interrupt handling state machine, and the workqueue subsystem including its data structures, initialization, and usage patterns.

Device TreeKernelLinux
0 likes · 37 min read
A Complete Guide to Linux Interrupt Management and Workqueues
Liangxu Linux
Liangxu Linux
Dec 7, 2024 · Fundamentals

How Does a Keystroke Travel From Keyboard to Your Screen?

This article explains step‑by‑step how a key press is detected by the keyboard controller, generates an interrupt, is handled by the kernel driver, written to a device file, and finally delivered to an X Window client via IPC.

IPCKeyboardOS fundamentals
0 likes · 4 min read
How Does a Keystroke Travel From Keyboard to Your Screen?
Java Tech Enthusiast
Java Tech Enthusiast
Jul 23, 2024 · Fundamentals

Understanding __disable_irq() and __enable_irq() Intrinsic Functions in ARM Cortex-M

The article explains that __disable_irq() and __enable_irq() are compiler‑provided intrinsics that expand to CPSID i and CPSIE i instructions, return the prior PRIMASK state, globally mask CPU interrupt handling without stopping hardware events, and contrasts them with CMSIS __NVIC_DisableIRQ/EnableIRQ which control individual interrupt lines.

ARMCMCU
0 likes · 7 min read
Understanding __disable_irq() and __enable_irq() Intrinsic Functions in ARM Cortex-M
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()
Top Architect
Top Architect
May 11, 2023 · Fundamentals

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

This article explains the various ways to terminate a running Java thread—including using exit flags, the deprecated stop() method, interrupt(), and exception handling—illustrates each technique with complete code examples, compares their effects on thread state, and warns about the dangers of forceful termination.

ExceptionStopinterrupt()
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Common Pitfalls
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 APIJavaThread
0 likes · 11 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
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.

DeprecatedExceptionJava
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
Architects' Tech Alliance
Architects' Tech Alliance
Nov 2, 2022 · Fundamentals

Understanding DMA (Direct Memory Access) in STM32 Microcontrollers

This article explains the principles, transfer modes, parameters, features, and register configuration of Direct Memory Access (DMA) in STM32 microcontrollers, illustrating how DMA offloads data movement from the CPU, improves performance, and integrates with peripherals, memory, and interrupt handling.

DMADirect Memory AccessMicrocontroller
0 likes · 16 min read
Understanding DMA (Direct Memory Access) in STM32 Microcontrollers
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 20, 2022 · Fundamentals

Linux Kernel Interrupt Mapping: Hardware and Software IRQ Translation Process

The article explains how the Linux kernel translates ARM GIC hardware interrupt numbers into virtual software IRQs by maintaining a global bitmap, initializing the interrupt controller, using irq_domain structures to map and associate hwirq and virq values, and storing relationships in descriptor and revmap trees for efficient lookup.

Device TreeIRQ MappingLinux
0 likes · 10 min read
Linux Kernel Interrupt Mapping: Hardware and Software IRQ Translation Process
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.

DeprecatedJavaStop
0 likes · 10 min read
Why Thread.stop and Thread.suspend Are Deprecated and How to Gracefully Stop Threads in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 2, 2020 · Fundamentals

Fundamental Concepts of Operating Systems and Computer Architecture

This article provides a comprehensive overview of operating system fundamentals and computer architecture, covering topics such as OS components, kernel and user modes, memory management, process handling, hardware interfaces, storage hierarchies, virtualization, and related historical and modern systems in roughly eighty concise entries.

KernelMemory Managementcomputer architecture
0 likes · 25 min read
Fundamental Concepts of Operating Systems and Computer Architecture
Programmer DD
Programmer DD
Feb 21, 2020 · Backend Development

Mastering Thread Termination in Java: Safe Practices and Common Pitfalls

This article explains how to properly stop a Java thread, compares deprecated Thread.stop() with interruption techniques, demonstrates checking a thread's interrupted state, shows how to use exceptions and return statements for graceful termination, and warns about the dangers of forceful stops and lock release.

ExceptionJavaStop
0 likes · 12 min read
Mastering Thread Termination in Java: Safe Practices and Common Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Dec 16, 2019 · Backend Development

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

This article explains the various ways to terminate a running Java thread—including using exit flags, the deprecated stop() method, interrupt(), and exception handling—illustrates each approach with code samples, compares Thread.interrupted() and isInterrupted(), and discusses the dangers of forceful termination and lock release.

JavaStopThread
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
Meituan Technology Team
Meituan Technology Team
Mar 15, 2018 · Operations

Root Cause Analysis and Optimization of Network Packet Loss in High‑Traffic Redis Services

Through kernel‑level analysis we discovered that Redis packet loss stemmed from rx_dropped buffer exhaustion caused by interrupt‑handling backlogs, and resolved it by assigning NIC interrupts to specific cores on one NUMA node while binding Redis processes to the other, eliminating loss under dual‑10 GbE load.

Linux kernelNAPIPacket Loss
0 likes · 33 min read
Root Cause Analysis and Optimization of Network Packet Loss in High‑Traffic Redis Services
Java Captain
Java Captain
Feb 5, 2018 · Fundamentals

Java Multithreading Basics: History, Thread States, Creation Methods, Synchronization, and Control

This article provides a comprehensive introduction to Java multithreading, covering its historical background, thread lifecycle states, two ways to create threads, code examples for shared and non‑shared data, synchronization with the synchronized keyword, thread control methods such as interrupt, sleep, suspend, yield, priority settings, and daemon threads, concluding with key takeaways.

JavaThreaddaemon
0 likes · 18 min read
Java Multithreading Basics: History, Thread States, Creation Methods, Synchronization, and Control
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
MaGe Linux Operations
MaGe Linux Operations
Jun 4, 2015 · Backend Development

Master Linux Kernel Interrupts and Timers: A Hands‑On Guide

This article explains Linux kernel interrupt handling, top‑half and bottom‑half mechanisms, IRQ request/release, shared IRQs, disabling/enabling IRQs, tasklets, workqueues, softirqs, the timer API, and provides a complete character‑device driver example with a user‑space test program.

CKernelLinux
0 likes · 16 min read
Master Linux Kernel Interrupts and Timers: A Hands‑On Guide