Tagged articles
49 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Feb 12, 2026 · Operations

Master Systemd: Build Production‑Ready Service Files from Scratch

This comprehensive guide walks you through Systemd’s architecture, explains every Unit type and Service section, shows how to choose the right Service Type, configure restart policies, watchdogs, resource limits, security hardening, logging, Timers and Socket activation, and provides a complete production‑grade Service file template with deployment steps and a checklist.

LinuxServiceresource-limits
0 likes · 41 min read
Master Systemd: Build Production‑Ready Service Files from Scratch
Xiao Liu Lab
Xiao Liu Lab
Oct 30, 2025 · Operations

Why systemd Timers Outperform crontab and How to Migrate Your Jobs

This article explains why the built‑in systemd timer engine is a more reliable, observable, and feature‑rich replacement for traditional crontab, and provides a step‑by‑step guide to rewrite, configure, and manage your scheduled tasks on Linux.

AutomationOperationscrontab
0 likes · 9 min read
Why systemd Timers Outperform crontab and How to Migrate Your Jobs
Code Wrench
Code Wrench
Sep 6, 2025 · Backend Development

Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#

This article explains the core principles of timers, compares heap‑based and timing‑wheel algorithms, analyzes Go's built‑in timer implementation versus C#'s approach, and provides practical optimization techniques for high‑concurrency, high‑precision scenarios.

CGoHeap
0 likes · 10 min read
Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 9, 2025 · Mobile Development

Mastering iOS Timers: CADisplayLink, NSTimer, RunLoop and Memory‑Leak Solutions Explained

This article dives deep into iOS timing mechanisms, explaining how CADisplayLink synchronizes with the screen refresh, how NSTimer works, the role of RunLoop modes, common memory‑leak pitfalls, and practical code solutions for smooth animations and accurate frame‑rate handling across iOS versions.

CADisplayLinkNSTimerRunLoop
0 likes · 31 min read
Mastering iOS Timers: CADisplayLink, NSTimer, RunLoop and Memory‑Leak Solutions Explained
Liangxu Linux
Liangxu Linux
Jun 8, 2025 · Fundamentals

9 Essential C Code Snippets Every Embedded Engineer Should Know

This article presents a curated collection of nine high‑utility C code snippets for embedded development, covering a circular buffer, custom assertions, bit reversal, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset structure, each with concise explanations and ready‑to‑use implementations.

Binary SearchC programmingData Structures
0 likes · 6 min read
9 Essential C Code Snippets Every Embedded Engineer Should Know
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
IT Services Circle
IT Services Circle
Jan 7, 2025 · Backend Development

Replacing Thread.sleep Loops with Proper Scheduling in Java

The article explains why using Thread.sleep in a loop causes busy‑waiting and performance problems, and demonstrates several Java scheduling alternatives—including Timer/TimerTask, ScheduledExecutorService, wait/notify, and CompletableFuture—to efficiently check a flag at fixed intervals.

CompletableFutureJavaScheduledExecutorService
0 likes · 9 min read
Replacing Thread.sleep Loops with Proper Scheduling in Java
Sohu Tech Products
Sohu Tech Products
Dec 25, 2024 · Mobile Development

Why BuildContext Leaks Memory in Flutter and How to Prevent It

This article explains how BuildContext and various closure patterns in Flutter can cause memory leaks, demonstrates typical leak scenarios with code examples, and provides practical strategies such as disposing listeners, nullifying references, and using WeakReference or Finalizer to ensure proper garbage collection.

AnimationControllerBuildContextDART
0 likes · 10 min read
Why BuildContext Leaks Memory in Flutter and How to Prevent It
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 12, 2024 · Frontend Development

Understanding JavaScript setTimeout and setInterval and Implementing setInterval Using setTimeout

This article explains the fundamentals and execution order of JavaScript's setTimeout and setInterval functions, discusses their parameters and return values, demonstrates why setTimeout is asynchronous, shows how to cancel timers, and provides a custom recursive setTimeout solution that mimics setInterval behavior.

JavaScriptfrontendsetInterval
0 likes · 12 min read
Understanding JavaScript setTimeout and setInterval and Implementing setInterval Using setTimeout
Java Architect Essentials
Java Architect Essentials
Jul 30, 2024 · Backend Development

Transparent Token Refresh: Client‑Side and Server‑Side Implementations

This article explains how to implement seamless, invisible token refresh for authentication systems, covering client‑side strategies using Axios interceptors and timers, server‑side gateway filters with Spring Boot, code examples for detecting token expiration, obtaining new tokens, and choosing between client and server approaches based on security and performance considerations.

AuthenticationJWTToken
0 likes · 23 min read
Transparent Token Refresh: Client‑Side and Server‑Side Implementations
FunTester
FunTester
Jul 25, 2024 · Backend Development

Overview of Scheduled Tasks and Their Implementations in Java and Go

This article introduces the concept of scheduled tasks, outlines common use cases such as data backup, log cleanup, and performance monitoring, and provides detailed examples of implementing periodic jobs in Java using java.util.Timer, ScheduledExecutorService, Spring @Scheduled, and Quartz, as well as in Go using the time package, cron library, and gocron.

Scheduled Taskscrontimer
0 likes · 12 min read
Overview of Scheduled Tasks and Their Implementations in Java and Go
Open Source Tech Hub
Open Source Tech Hub
Feb 10, 2024 · Backend Development

How to Use Workerman Timer for Scheduled PHP Tasks

This guide explains how Workerman's Timer runs functions or class methods at set intervals within the same process, showing examples of anonymous‑function timers and configuring timers to run only on specific worker processes.

BackendScheduled Tasksconcurrency
0 likes · 3 min read
How to Use Workerman Timer for Scheduled PHP Tasks
Liangxu Linux
Liangxu Linux
Dec 14, 2023 · Fundamentals

Mastering PWM on STM32: From Simple Loops to Hardware Timer Output

This article explains PWM fundamentals, compares several output methods ranging from blocking loops to hardware timer generation, and provides complete STM32F1 example code—including macro definitions, timer configuration, output functions, and practical tips on pin mapping and precision.

HardwareMicrocontrollerPWM
0 likes · 8 min read
Mastering PWM on STM32: From Simple Loops to Hardware Timer Output
Sohu Tech Products
Sohu Tech Products
Jun 14, 2023 · Mobile Development

Understanding CADisplayLink, NSTimer, and RunLoop in iOS: Implementation, Issues, and Solutions

This article explains the principles, usage, and internal mechanisms of CADisplayLink and NSTimer in iOS, compares their advantages and drawbacks, discusses common pitfalls such as retain cycles, explores RunLoop modes and sources, and provides code examples and solutions for reliable timer handling.

CADisplayLinkMobile DevelopmentNSTimer
0 likes · 24 min read
Understanding CADisplayLink, NSTimer, and RunLoop in iOS: Implementation, Issues, and Solutions
MaGe Linux Operations
MaGe Linux Operations
Oct 2, 2022 · Fundamentals

Master Python Decorators: From Basics to Advanced Usage

This article explains Python decorators by first reviewing functions as first‑class objects, then showing how to create simple timing decorators, extend them with *args/**kwargs, and build higher‑order decorators like a repeat‑n‑times wrapper, complete with practical code examples.

Pythonargsdecorators
0 likes · 9 min read
Master Python Decorators: From Basics to Advanced Usage
Tencent Cloud Developer
Tencent Cloud Developer
Aug 9, 2022 · Backend Development

Deep Dive into Asio Scheduler, Strand, and Timer Implementation

The article thoroughly examines Asio’s core mechanisms—its scheduler’s post handling, the strand’s lock‑based ordering, and the timer subsystem’s heap‑driven queues—detailing executor operations, multi‑threaded execution paths, platform‑specific timer schedulers, and the efficient C++ techniques that enable high‑performance asynchronous programming.

AsioC++Networking
0 likes · 38 min read
Deep Dive into Asio Scheduler, Strand, and Timer Implementation
IT Architects Alliance
IT Architects Alliance
Apr 5, 2022 · Backend Development

Understanding Java Timers, DelayQueue, ScheduledThreadPoolExecutor, and Time‑Wheel Algorithms

This article explains the concepts, use cases, and internal implementations of Java's Timer, DelayQueue, and ScheduledThreadPoolExecutor, compares their performance characteristics, and introduces the time‑wheel scheduling algorithm—including hierarchical wheels—to address scalability challenges in high‑volume timed‑task systems.

DelayQueueJavaScheduledThreadPoolExecutor
0 likes · 12 min read
Understanding Java Timers, DelayQueue, ScheduledThreadPoolExecutor, and Time‑Wheel Algorithms
IT Services Circle
IT Services Circle
Mar 23, 2022 · Operations

Understanding High‑Precision Timer Scheduling in Java and Linux Kernels

The article explores why absolute‑precision periodic tasks are hard to achieve, compares Java Timer and ScheduledExecutorService with Linux kernel mechanisms such as DelayedWorkQueue, futex, pthread_cond_timedwait, and high‑resolution hrtimers, and explains the underlying data structures and timing‑wheel algorithms.

Schedulinghigh precisiontimer
0 likes · 11 min read
Understanding High‑Precision Timer Scheduling in Java and Linux Kernels
Kuaishou Tech
Kuaishou Tech
Sep 10, 2021 · Mobile Development

Analyzing and Resolving a Main Thread ↔ JavaScriptCore Heap Collector Thread Deadlock on iOS 13

This article investigates a deadlock between the Main Thread and the JavaScriptCore Heap Collector Thread on iOS 13, explains the underlying mutex and RunLoop interactions, reproduces the issue with CFTimer‑based timers, and proposes an AutoReleasePool‑wrapped solution along with best‑practice recommendations for JavaScriptCore usage.

Memory ManagementRunLoopdeadlock
0 likes · 17 min read
Analyzing and Resolving a Main Thread ↔ JavaScriptCore Heap Collector Thread Deadlock on iOS 13
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Sep 10, 2021 · Mobile Development

Main Thread vs JavaScriptCore: iOS 13 Deadlock Explained & Fixed

An in‑depth analysis reveals how a Main Thread and JavaScriptCore Heap Collector Thread can deadlock on iOS 13 due to RunLoop lock contention triggered by timer callbacks and AutoReleasePool memory reclamation, and provides a practical solution using scoped AutoReleasePool blocks to prevent the issue.

MobileRunLoopdeadlock
0 likes · 18 min read
Main Thread vs JavaScriptCore: iOS 13 Deadlock Explained & Fixed
JD Tech
JD Tech
Apr 16, 2021 · Backend Development

Using java.util.Timer for Scheduled and Delayed Tasks in Java

This article explains how to use java.util.Timer for one‑time and periodic task scheduling, covering constructors, instance methods, daemon‑thread behavior, handling past dates, negative delays, multiple tasks, and proper shutdown, with complete code examples and execution results.

BackendJavaScheduling
0 likes · 24 min read
Using java.util.Timer for Scheduled and Delayed Tasks in Java
Big Data Technology & Architecture
Big Data Technology & Architecture
Mar 29, 2021 · Big Data

Understanding Flink AggregateFunction, Session Windows, and Timer Mechanisms

This article explains how Flink's DataStream API uses AggregateFunction and session windows, details the MergingWindowAssigner and MergingWindowSet implementations, and demonstrates timer registration and processing with KeyedProcessFunction, providing full code examples and internal workflow analysis.

AggregateFunctionFlinkKeyedProcessFunction
0 likes · 25 min read
Understanding Flink AggregateFunction, Session Windows, and Timer Mechanisms
Java Architect Essentials
Java Architect Essentials
Mar 9, 2021 · Backend Development

StopCoding: Building an IntelliJ IDEA Plugin to Prevent Coding Addiction

StopCoding is an IntelliJ IDEA plugin designed to curb prolonged coding sessions by periodically displaying an unclosable reminder dialog with a countdown, and the article provides installation instructions, usage guide, and a detailed development tutorial covering plugin structure, Swing UI, timer implementation, and key Java code snippets.

IntelliJ IDEAJavaPlugin Development
0 likes · 7 min read
StopCoding: Building an IntelliJ IDEA Plugin to Prevent Coding Addiction
Java Backend Technology
Java Backend Technology
Feb 5, 2021 · Fundamentals

How to Build a Self‑Discipline IntelliJ Plugin to Stop Coding Fatigue

This article introduces the StopCoding IntelliJ plugin, detailing its purpose to prevent coding fatigue, providing step‑by‑step installation and usage instructions, and walking through its simple Java‑based development, including Swing UI creation, timer logic, and code snippets for building a self‑discipline tool.

IntelliJJavaSwing
0 likes · 7 min read
How to Build a Self‑Discipline IntelliJ Plugin to Stop Coding Fatigue
Programmer DD
Programmer DD
Jan 24, 2021 · Backend Development

How to Build a Self‑Enforcing Break Reminder Plugin for IntelliJ IDEA

This article introduces StopCoding, an IntelliJ IDEA plugin that forces developers to take regular breaks by displaying an unclosable dialog with a countdown timer, and provides step‑by‑step installation, usage instructions, and a complete walkthrough of its Java‑based Swing and Timer implementation.

IntelliJ IDEAJavaPlugin Development
0 likes · 7 min read
How to Build a Self‑Enforcing Break Reminder Plugin for IntelliJ IDEA
Java Backend Technology
Java Backend Technology
Jan 19, 2021 · Backend Development

Create a Self‑Discipline IDEA Plugin: Step‑by‑Step StopCoding Guide

This article introduces the motivation behind the StopCoding IntelliJ IDEA plugin, provides detailed installation and usage instructions, and walks through its development—including plugin structure, Swing dialog creation, timer implementation, and essential Java code—so developers can build their own productivity‑boosting tool.

IntelliJJavaSwing
0 likes · 7 min read
Create a Self‑Discipline IDEA Plugin: Step‑by‑Step StopCoding Guide
Architect's Tech Stack
Architect's Tech Stack
Jan 14, 2021 · Backend Development

StopCoding: An IntelliJ IDEA Plugin to Prevent Coding Fatigue – Installation, Usage, and Development Guide

This article introduces StopCoding, an IntelliJ IDEA plugin designed to interrupt prolonged coding sessions by showing an unclosable reminder dialog, and provides step‑by‑step installation, usage instructions, and a detailed Java‑based development tutorial including Swing UI and Timer implementation.

Coding HealthIDEA PluginIntelliJ
0 likes · 7 min read
StopCoding: An IntelliJ IDEA Plugin to Prevent Coding Fatigue – Installation, Usage, and Development Guide
Big Data Technology & Architecture
Big Data Technology & Architecture
Sep 19, 2020 · Big Data

Understanding Flink Timer Mechanism and Its Internal Implementation

This article explains how Flink's Timer mechanism works, covering its usage in KeyedProcessFunction, the underlying TimerService and InternalTimerService implementations, the role of triggers, and the detailed code paths for processing‑time and event‑time timers, while highlighting performance considerations.

FlinkInternalTimerServiceKeyedProcessFunction
0 likes · 16 min read
Understanding Flink Timer Mechanism and Its Internal Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 18, 2020 · Backend Development

Implementing Scheduled Tasks in Java: Timer, ScheduledExecutorService, Spring Task, and Distributed Approaches

This article explains several ways to implement scheduled tasks in Java, covering the simple Timer class, the more robust ScheduledExecutorService, Spring's @Scheduled annotation, and distributed solutions using Redis ZSet and key‑space notifications, with code examples and practical considerations.

Distributed SchedulingJavaScheduled Tasks
0 likes · 16 min read
Implementing Scheduled Tasks in Java: Timer, ScheduledExecutorService, Spring Task, and Distributed Approaches
Laravel Tech Community
Laravel Tech Community
May 23, 2020 · Backend Development

Mastering Swoole Timer: tick, after, clear and Advanced Methods Explained

This article provides a detailed guide to Swoole's millisecond‑precision timer API, covering the underlying epoll_wait/setitimer implementation, the static methods tick(), after(), clear() and additional utilities such as clearAll(), info(), list(), stats() and set(), with full syntax, usage examples and code snippets for both synchronous and asynchronous processes.

AsynchronousBackendPHP
0 likes · 5 min read
Mastering Swoole Timer: tick, after, clear and Advanced Methods Explained
Programmer DD
Programmer DD
May 2, 2020 · Backend Development

How to Implement Precise Delays in Java Backend Using Timer and Redis

This article explores various strategies for controlling execution timing in Java backend services, comparing Thread.sleep, Timer, and Redis-based expiration techniques, and provides practical code examples and configuration steps for integrating Redis with Spring Boot to achieve reliable delayed processing.

JavaSpring Bootdelay
0 likes · 10 min read
How to Implement Precise Delays in Java Backend Using Timer and Redis
21CTO
21CTO
Aug 12, 2015 · Backend Development

How to Build a Pure PHP Timer with PCNTL and Signals

This article explains how to implement a pure‑PHP timer using CLI mode, the PCNTL extension, and SIGALRM signals, covering basic concepts, task storage structures, the Timer class implementation, example usage, and practical considerations for long‑running services.

CLISchedulerpcntl
0 likes · 9 min read
How to Build a Pure PHP Timer with PCNTL and Signals
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