Tag

Interrupt

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Nov 24, 2024 · Fundamentals

How Keyboard Input Traverses from Hardware to Software in Unix-like Systems

When a key is pressed, the keyboard controller generates an interrupt that pauses the CPU, invokes the interrupt handler and driver to translate the scan code into a character, writes it to a device file, which the X server reads and forwards via IPC to the focused window.

IPCInterruptOS
0 likes · 3 min read
How Keyboard Input Traverses from Hardware to Software in Unix-like Systems
Selected Java Interview Questions
Selected Java Interview Questions
Oct 11, 2024 · Backend Development

Graceful Thread Termination in Java: Strategies and Best Practices

The article explains why forcibly stopping a Java thread is unsafe, outlines common scenarios requiring thread exit, compares graceful and forced termination methods, and provides practical techniques such as flag checks and Thread.interrupt() with recommended interrupt‑handling strategies.

Graceful ShutdownInterruptJava
0 likes · 11 min read
Graceful Thread Termination in Java: Strategies and Best Practices
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.

ARMC++Interrupt
0 likes · 7 min read
Understanding __disable_irq() and __enable_irq() Intrinsic Functions in ARM Cortex-M
Selected Java Interview Questions
Selected Java Interview Questions
Nov 4, 2023 · Backend Development

Graceful Thread Termination in Java: Principles and Practices

The article explains why forcibly stopping a Java thread is unsafe, outlines common scenarios that require thread exit, compares graceful and forced termination, and presents practical techniques such as flag checks and Thread.interrupt() to achieve safe and predictable thread shutdown.

Graceful ShutdownInterruptJava
0 likes · 12 min read
Graceful Thread Termination in Java: Principles and Practices
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 ShutdownInterruptJava
0 likes · 4 min read
Gracefully Stopping a Java Thread and the Difference Between isInterrupted() and interrupted()
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.

ExceptionInterruptJava
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 APIInterruptJava
0 likes · 11 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
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.

ExceptionInterruptJava
0 likes · 12 min read
How to Stop a Java Thread: Methods, Code Samples, and Common 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.

ExceptionInterruptJava
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 AccessEmbedded Systems
0 likes · 16 min read
Understanding DMA (Direct Memory Access) in STM32 Microcontrollers
Selected Java Interview Questions
Selected Java Interview Questions
Sep 19, 2022 · Backend Development

How to Properly Stop Java Threads Using interrupt and ThreadPool Shutdown Methods

This article explains why Java does not provide a forced stop for threads, demonstrates how to use interrupt and various ThreadPool shutdown methods—including shutdown, isShutdown, isTerminated, awaitTermination, and shutdownNow—to safely terminate threads, and provides practical code examples.

InterruptJavaThread
0 likes · 10 min read
How to Properly Stop Java Threads Using interrupt and ThreadPool Shutdown Methods
IT Services Circle
IT Services Circle
Jul 11, 2022 · Fundamentals

From Keyboard Press to Screen Display: A Step‑by‑Step Overview of the Computer System

Pressing a key triggers a complex chain of events—from the keyboard’s matrix circuit generating a keycode, through USB polling and kernel interrupt handling, to the X server reading device files, delivering the input to applications, and finally rendering the character on the screen via the framebuffer.

Input HandlingInterruptOperating System
0 likes · 6 min read
From Keyboard Press to Screen Display: A Step‑by‑Step Overview of the Computer System
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.

CancellationInterruptJava
0 likes · 5 min read
Cooperative Thread Cancellation in Java: Flags and Interrupts
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 TreeGICIRQ Mapping
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.

InterruptJavaStop
0 likes · 10 min read
Why Thread.stop and Thread.suspend Are Deprecated and How to Gracefully Stop Threads in Java
JD Tech
JD Tech
Mar 26, 2021 · Frontend Development

Understanding React Fiber: Interrupt Mechanism, Scheduling and Performance Optimization

This article explains how React 16 introduced the Fiber architecture to replace synchronous VDOM rendering, using operating‑system‑style interrupt mechanisms, RequestIdleCallback scheduling and task splitting to improve rendering performance and user experience in modern browsers.

FiberInterruptReact
0 likes · 8 min read
Understanding React Fiber: Interrupt Mechanism, Scheduling and Performance Optimization
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.

Computer ArchitectureInterruptMemory Management
0 likes · 25 min read
Fundamental Concepts of Operating Systems and Computer Architecture
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.

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

InterruptJavaSynchronization
0 likes · 18 min read
Java Multithreading Basics: History, Thread States, Creation Methods, Synchronization, and Control