Tagged articles
Timers
17 articles · Page 1 of 1
The article outlines seven browser‑based techniques—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise + async/await, the Web Animations API, and Intersection Observer—each offering higher accuracy, better resource handling, or smoother execution than the traditional setTimeout timer.
JavaScriptTimersWeb APIs
0 likes · 4 min read

While setTimeout is a common JavaScript timer API, it suffers from precision and throttling issues; this article introduces seven more reliable alternatives—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promises with async/await, the Web Animations API, and Intersection Observer—detailing their advantages and usage examples.
JavaScriptTimersperformance
0 likes · 5 min read

This article examines the shortcomings of the traditional setTimeout API and presents seven more reliable JavaScript timing techniques—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise/async‑await, the Web Animations API, and Intersection Observer—each with code examples and key advantages.
JavaScriptTimersWeb APIs
0 likes · 5 min read

This article walks through the evolution of Linux timers—from the simple alarm() function, through setitimer() and POSIX timer APIs, to the modern timerfd interface—explaining their APIs, code examples, advantages, limitations, performance trade‑offs, and practical selection guidance for different projects.
AlarmC++Linux
0 likes · 16 min read

This article explains PyQt5's event system, covering both high‑level signal‑slot mechanisms and low‑level event handling, lists common event types, demonstrates five event‑processing techniques, and provides step‑by‑step examples of implementing custom event filters and timers using QTimer and timerEvent.
PyQt5Python GUITimers
0 likes · 10 min read

This guide explains the shift from persistent background scripts to Service Workers in Manifest V3, compares three timer implementation strategies—including chrome.alarms, content‑script intervals, and event‑driven storage checks—and provides best‑practice recommendations for idempotency, logging, deduplication, and state persistence.
Background ScriptsBest PracticesChrome extension
0 likes · 12 min read

While setTimeout is a common JavaScript timer, its limited precision and throttling in inactive tabs can cause issues; this article presents seven more reliable alternatives—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise/async‑await, Web Animations API, and Intersection Observer—each with key advantages and usage examples.
JavaScriptTimerssetTimeout
0 likes · 5 min read

This guide explains how to implement reliable scheduled tasks in Chrome extensions under Manifest V3, covering the shift from persistent background scripts to service workers, three practical approaches—including chrome.alarms, content script timers, and event‑driven simulations—plus best‑practice tips for idempotency, logging, and state persistence.
Chrome extensionIdempotencyServer Push
0 likes · 12 min read

This article explains Byteman's rule state management utilities—including LinkMaps, CountDowns, Flags, Counters, Timers, and methods to control recursive triggering—detailing their APIs, usage patterns, thread‑safety considerations, and example rule snippets for Java instrumentation.
CountDownsCountersLinkMaps
0 likes · 13 min read

This article provides a comprehensive overview of the Linux time subsystem, covering its hardware foundations, time concepts, user‑space and kernel APIs across multiple generations, timer implementations, scheduler tick interaction, and the overall design of the system clock.
APILinuxRTC
0 likes · 40 min read


58 TechMay 26, 2022 · Frontend Development
This article examines the challenges of timer precision in front‑end scenarios such as e‑commerce flash sales, explains the limitations of native setInterval and setTimeout, and introduces a frame‑based timer using requestAnimationFrame, requestIdleCallback and compensation strategies to achieve high‑accuracy scheduling.
JavaScriptTimersperformance
0 likes · 19 min read

This article provides a deep technical walkthrough of libuv’s Linux implementation, covering epoll‑based I/O handling, level‑ and edge‑triggered events, the event‑loop architecture, timer management with a min‑heap, thread‑pool integration, and the mechanisms that drive asynchronous callbacks in Node.js.
EpollLinuxSystems Programming
0 likes · 34 min read

Using setInterval for repeated tasks in JavaScript can lead to unhandled errors, ignore network latency, and provide no guarantee of execution timing, causing request overloads and missed intervals; replacing it with setTimeout and dynamic scheduling ensures more reliable, controlled, and error‑resilient timing behavior.
JavaScriptTimerssetInterval
0 likes · 5 min read

This article explains Apache Flink's ProcessFunction and CoProcessFunction, detailing their use of events, state, and timers, compares event‑time and processing‑time semantics, and provides a complete Java example illustrating timer registration, onTimer handling, and debugging observations.
CoProcessFunctionEventTimeFlink
0 likes · 11 min read

This article provides an in‑depth exploration of Linux’s timekeeping subsystem, covering how the kernel initializes and maintains system time, reads timestamps via vDSO and sequential locks, manages timers with various algorithms, and explains the underlying quartz crystal oscillator that generates the hardware clock.
LinuxTimershardware
0 likes · 22 min read

This article explains how JavaScript’s execution stack, heap, event loop, and setTimeout work together, illustrating their behavior with visual diagrams and examples that reveal common pitfalls such as blocking code and minimum timer delays.
JavaScriptTimersevent-loop
0 likes · 8 min read

Learn how JavaScript’s setTimeout and setInterval functions work, see practical code examples, understand their timing inaccuracies and common pitfalls, and discover how recursive setTimeout can provide more reliable scheduling by avoiding overlapping executions.
JavaScriptTimersasynchronous
0 likes · 4 min read
