Real-Time Task Load Measurement Using Free-Running Counter
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing real-time computing systems lack the capability to measure task loads in real-time, making it impossible to use this information as an input for other applications, such as adjusting MIDI voice processing, due to non-real-time data capture methods.
Innovation Solution
The method involves determining task execution cycles by reading count values from a free-running counter before and after a task executes, calculating the difference, and accumulating these differences over a configurable reference interval to compute task load, which is then used to schedule future tasks effectively.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If task execution data is captured using a logic analyzer, then task load information can be obtained, but the measurement is not real-time and cannot be used as input for other applications
Solution Approach 1:
The patent introduces a counter as an intermediary device that continuously tracks task execution cycles. The counter serves as a mediator between the task execution process and the measurement system, providing real-time cycle count data without requiring external logic analyzers. This intermediary mechanism enables both precise measurement and real-time availability of task load information.
Solution Approach 2:
The system performs self-measurement by having the task itself update a counter during execution. The task increments the counter for each cycle it executes, making the measurement process self-contained and eliminating the need for external observation tools. This self-service approach ensures both accuracy and real-time availability of task load data.
2Manufacturing precision
If the number of MIDI voices processed is increased to improve audio quality, then audio processing quality improves, but system task load increases and may cause timing violations
Solution Approach 1:
The patent implements a feedback mechanism where the measured task load from the counter is used to dynamically adjust the number of MIDI voices processed in the next audio frame. The system continuously monitors current task load, compares it against thresholds, and adjusts processing parameters accordingly. This closed-loop feedback enables the system to maintain high audio quality when resources are available while preventing timing violations when task load is high.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
A method for determining the task load in real-time. The method takes a difference in real-time between a first count value from a free running counter prior to a task executing, and a second count value after the task stops running. The task load may then be determined by using an accumulator to accumulate the difference between the first count value and the second count value over a reference interval and dividing the sum by a configurable reference interval. The individual task load computed in realtime may be used in scheduling an audio task.