SShortSingh.
Back to feed

Diagnosing Rare Missed Timing Windows: Late Start Versus Long Run Time

0
·1 views

A device that runs smoothly for months may suddenly miss its communication window once in thousands of cycles, with no clear error in the logs. Logs record discrete events rather than task durations, so they cannot easily reveal whether the work started late or simply ran long. Such rare faults tend to surface only after long uptimes, when independent activities happen to align, such as an interrupt burst coinciding with a held lock. The proposed technique records worst-case start lag and run time separately, along with a debug GPIO pulse and a small ring-buffer trace, to show whether delays happen before or during task execution. Interpreting the results is straightforward: a large run time points to a slow task or mid-run preemption, while a large start lag with a normal pulse points to preemption or blocking before the task begins.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Guide Shows How to Pull SEC EDGAR Filings as JSON Without a Custom Scraper

A developer tutorial explains how to retrieve SEC EDGAR filing data in structured JSON form for alerts, compliance checks, and equity research. It notes that EDGAR's endpoints are anonymous and require no API key, but that requests must include a declared User-Agent and stay under 10 requests per second. The article presents steadfetch/sec-edgar-monitor, an Apify Actor that wraps these endpoints and accepts filters by company CIK, form type, date range, or full-text query. Sample code in curl, Node.js, and Python is provided, along with an example filing record showing fields such as accession number, form type, and filing date. Pricing for the Actor is listed at 5.00 USD per 1,000 filings.

0
ProgrammingDEV Community ·

Developer Builds AI Chat Assistant Using Agentic LLMs and Multi-Tool Integration

A developer shared how they built an AI chat assistant that goes beyond a standard chatbot by connecting a large language model to external tools. The project was motivated by the limits of standalone LLMs, which may lack current information and cannot independently access external services. The article explains agentic AI, where the model interprets a request, selects and executes a tool, and then folds the returned results into its reply. Using a weather query as an example, it describes how the assistant would call a weather service rather than rely on the model's training data. The author also links the live demo and the frontend and backend source repositories for readers to explore.

0
ProgrammingDEV Community ·

Kruskal–Wallis Test: A Nonparametric Method for Comparing Three or More Groups

The Kruskal–Wallis test is a nonparametric statistical technique for comparing three or more independent groups. It serves as an alternative when data fails to meet the assumptions required for a one-way ANOVA, and it is applicable in fields such as education, business, psychology, and healthcare. The test checks whether group distributions differ, and it requires independent groups, ranked outcomes, and independence of observations. Its output is an H statistic and a p-value; a p-value below a threshold like 0.05 suggests at least one group differs, but does not identify which ones, so follow-up tests may be necessary.

0
ProgrammingDEV Community ·

Web HIG advises 24px minimum tap targets and 44px for primary touch actions

The Web HIG guidance states that interactive targets must be at least 24 by 24 CSS pixels, matching WCAG 2.2 Level AA, while primary touch actions should ideally measure 44 by 44 pixels. The clickable area, not the visible icon, is what counts, so small icons can be made easier to hit by adding padding. Tightly packed controls such as close buttons, table row actions, and pagination links are common problem areas, since a miss can trigger the wrong action. The guidance notes that people with tremors or limited dexterity, not just touch users, benefit from larger targets. Developers are advised to measure the clickable element's box in browser developer tools and test primary actions by hand on a phone.