CN106776202A - The monitoring method and system of embedded OS task - Google Patents

The monitoring method and system of embedded OS task Download PDF

Info

Publication number
CN106776202A
CN106776202A CN201611055781.XA CN201611055781A CN106776202A CN 106776202 A CN106776202 A CN 106776202A CN 201611055781 A CN201611055781 A CN 201611055781A CN 106776202 A CN106776202 A CN 106776202A
Authority
CN
China
Prior art keywords
task
monitoring
periodic duty
threshold value
monitoring variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611055781.XA
Other languages
Chinese (zh)
Other versions
CN106776202B (en
Inventor
涂海胜
李永伟
刘辉
余佳鑫
仲兆峰
郭伟文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ropente Technology Development Co Ltd
Original Assignee
Guangzhou Ropente Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Ropente Technology Development Co Ltd filed Critical Guangzhou Ropente Technology Development Co Ltd
Priority to CN201611055781.XA priority Critical patent/CN106776202B/en
Publication of CN106776202A publication Critical patent/CN106776202A/en
Application granted granted Critical
Publication of CN106776202B publication Critical patent/CN106776202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems

Abstract

The present invention provides a kind of monitoring method and system of embedded OS task, distinguish embedded OS task type, search limit priority task, difference setting cycle task, the monitoring variable of aperiodic task and limit priority task and corresponding threshold value, by the counting to monitoring variable, respectively to periodic duty, aperiodic task and limit priority task are monitored, and compare the monitoring variable of record with corresponding threshold value respectively, when the count value for monitoring variable is more than corresponding threshold value, then think that the corresponding task of monitoring variable is surprisingly hung up, abnormality processing function is called to process hanging up for task.In whole process, will be monitored during variable inserts corresponding priority tasks according to task priority and type, each task to each type task can include monitoring, simple and efficiently monitoring of the realization to embedded OS task.

Description

The monitoring method and system of embedded OS task
Technical field
The present invention relates to system monitor technique field, more particularly to the monitoring method of embedded OS task be System.
Background technology
In electronic product development field, the application of embedded OS is very universal.Embedded OS Occur, the programming in electronic product, maintenance is become relatively easy, reliable.But efficiently, the software supervision management of stabilization Method is necessary in program operation process.In the program development stage, can find in time and solve problem, can be fixed The BUG in program is simultaneously found out in position, so as to accelerate the progress of research and development of products.Within the product operation and maintenance cycle, it is possible to achieve The track problems of program, recover automatically when abnormal.
Traditional monitoring method, by when application program is run, being that run application program creates abnormal readjustment chain Table, from the corresponding relation of abnormality processing function and abnormal information, inquiry and the abnormality processing function that matches of catching the exception, After inquiring the abnormality processing function of matching, the abnormality processing function of matching is called and performed, carry out abnormality processing.
Although aforesaid way can realize the monitoring of embedded OS task, implementation process needs repeatedly to adjust With, inquiry data, implementation process is complicated, and monitoring efficiency is low.
The content of the invention
Based on this, it is necessary to realize that complicated and monitoring efficiency is low for the monitor mode for being usually embedded formula operating system task Under problem, there is provided a kind of monitoring method and system of the embedded OS task for realizing that simple and monitoring efficiency is high.
A kind of monitoring method of embedded OS task, including step:
All embedded OS tasks are analyzed, the embedded OS task type, the task class is distinguished Type includes periodic duty and aperiodic task;
Find out limit priority task in the embedded OS task;
Set respectively the monitoring variable of the periodic duty, the aperiodic task and the limit priority task with Corresponding threshold value;
By described pair monitoring variable counting, respectively to the periodic duty, the aperiodic task and it is described most High-priority task is monitored, and the count value for monitoring variable is compared with corresponding threshold value;
When the count value for monitoring variable is more than corresponding threshold value, then it is assumed that the corresponding task of monitoring variable has been anticipated Outer hang-up, calls abnormality processing function to process hanging up for task.
A kind of monitoring system of embedded OS task, including:
Analysis module, for analyzing all embedded OS tasks, distinguishes the embedded OS task class Type, the task type includes periodic duty and aperiodic task;
Limit priority task searching modul, appoints for finding out limit priority in the embedded OS task Business;
Parameter setting module, it is preferential for setting the periodic duty, the aperiodic task and the highest respectively The monitoring variable and corresponding threshold value of level task;
Comparison module, for by it is described monitoring variable counting, respectively to the periodic duty, described aperiodic Business and the limit priority task are monitored, and the count value for monitoring variable is compared with corresponding threshold value respectively;
Processing module, for when the count value for monitoring variable is more than corresponding threshold value, then it is assumed that the monitoring variable Corresponding task is surprisingly hung up, calls abnormality processing function to process hanging up for task.
The monitoring method and system of embedded OS task of the present invention, distinguish embedded OS task type, Search limit priority task, respectively the monitoring variable of setting cycle task, aperiodic task and limit priority task with Corresponding threshold value, by the counting to monitoring variable, enters to periodic duty, aperiodic task and limit priority task respectively Row monitoring, and the monitoring variable of record is compared with corresponding threshold value respectively, when the count value of monitoring variable is more than corresponding threshold During value, then it is assumed that the corresponding task of monitoring variable is surprisingly hung up, abnormality processing function is called to process hanging up for task.Entirely During, will be monitored during variable inserts corresponding priority tasks according to task priority and type, each type is appointed Each task of business can include monitoring, simple and efficiently monitoring of the realization to embedded OS task.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the one of embodiment of monitoring method of embedded OS task of the present invention;
Fig. 2 is the schematic flow sheet of the one of application example of monitoring method of embedded OS task of the present invention;
Fig. 3 is the schematic flow sheet of the one of application example of monitoring method of embedded OS task of the present invention;
Fig. 4 is the schematic flow sheet of the one of application example of monitoring method of embedded OS task of the present invention;
Fig. 5 is the structural representation of the one of embodiment of monitoring system of embedded OS task of the present invention.
Specific embodiment
As shown in figure 1, a kind of monitoring method of embedded OS task, including step:
S100:All embedded OS tasks are analyzed, embedded OS task type, task type bag is distinguished Include periodic duty and aperiodic task.
In the Embedded System Design stage, all embedded OS tasks are analyzed, distinguish embedded OS and appoint Service type, task type includes periodic duty and aperiodic task.Periodic duty can be understood as default and fix each week Phase performs once task, for example, periodically patrol and examine, periodically these tasks such as record, and aperiodic task can be understood as burst Or only perform finite number of time, the task without the fixed execution time cycle, for example receive outside input and perform certain The task dispatching of operation.
S200:Find out limit priority task in embedded OS task.
Under equal conditions, priority task high obtains resources of chip and enters running status at first.It is non-essential, can be with Prioritization is carried out to the periodic duty in embedded OS task, structure is arranged in order with priority in descending order Into data queue, the periodic duty as limit priority task of queue foremost is come, be recorded as P [1].
S300:Respectively the monitoring variable of setting cycle task, aperiodic task and limit priority task with it is corresponding Threshold value.
Set monitoring variable and corresponding threshold respectively to periodic duty, aperiodic task and limit priority task Value.Specifically, these monitoring variables and corresponding threshold value are increased in each type tasks, are increased in periodic duty Plus monitor variable and set its threshold value, monitoring variable is increased in aperiodic task and its threshold value is set, appoint in limit priority Increase monitoring variable in business and set its threshold value.Further, can be interrupted in system beat for limit priority task In increased monitoring variable, so monitor limit priority task using operating system beat, it is not necessary to independent monitor task Module, so as to reduce overhead, further improves monitoring efficiency.
S400:By the counting to monitoring variable, respectively to periodic duty, aperiodic task and limit priority task It is monitored, and the count value for monitoring variable is compared with corresponding threshold value respectively.
During operation for embedded system, by S300 to the counting of setting monitoring variable respectively to periodic duty, non- Periodic duty and limit priority task are monitored, and the count value for monitoring variable is compared with corresponding threshold value.Specifically For, the count value of periodic duty monitoring variable compares with the threshold value of periodic duty, and aperiodic task monitors the count value of variable Compare with the threshold value of aperiodic task, the count value of limit priority Mission Monitor variable and the threshold value ratio of limit priority task Compared with.
S500:When the count value for monitoring variable is more than corresponding threshold value, then it is assumed that the corresponding task of monitoring variable is It is unexpected to hang up, call abnormality processing function to process hanging up for task.
When the count value for monitoring variable is more than corresponding threshold value, illustrate that corresponding task occurs abnormal, it is necessary to call different The task that often treatment for the treatment of function is hung up.Specifically, when the threshold of the count value more than periodic duty of periodic duty monitoring variable During value, illustrate that corresponding periodic duty occurs abnormal, call abnormality processing function to process the periodic duty;When aperiodic task prison When the count value for controlling variable is more than the threshold value of aperiodic task, illustrate that corresponding aperiodic task occurs abnormal, call exception Reason function processes the aperiodic task;When the threshold of the count value more than limit priority task of limit priority Mission Monitor variable During value, illustrate that limit priority task occurs abnormal, call abnormality processing function to process the limit priority task.Need to point out Be, when judging using be more than rather than being more than or equal to, be in order to solve the problems, such as time jitter, with ensure exception-triggered when Length is unlikely to 1 chronomere fewer than expected duration.Specifically, abnormality processing function is set in advance, and it is according to biography Abnormal task is registered in exception task list by the task priority for entering, and exception task list is a hop count in memory According to:For the priority of recording exceptional task, the information such as system time during abnormal generation.In product development stage, by string The information such as the priority of mouth or other modes output abnormality task, system time, task stack usage amount.When product is issued, Significance level according to different task performs different abnormality processing modes, such as can even be resetted using wake-up, recovery whole The means of individual system, it is ensured that product can recover automatically in error.
The monitoring method of embedded OS task of the present invention, distinguishes embedded OS task type, searches most High-priority task, respectively the monitoring variable of setting cycle task, aperiodic task and limit priority task with it is corresponding Threshold value, by the counting to monitoring variable, supervises to periodic duty, aperiodic task and limit priority task respectively Control, and the monitoring variable of record is compared with corresponding threshold value respectively, when the count value for monitoring variable is more than corresponding threshold value, Then think that the corresponding task of monitoring variable is surprisingly hung up, call abnormality processing function to process hanging up for task.Whole process In, will be monitored during variable inserts corresponding priority tasks according to task priority and type, to each type task Each task can include monitoring, simple and efficiently monitoring of the realization to embedded OS task.
Wherein in one embodiment, the prison of difference setting cycle task, aperiodic task and limit priority task Also include before the step of control variable is with corresponding threshold value:
Step one:The time cycle of analytical cycle task, the time cycle is used to permit when judging that other tasks occur abnormal Perhaps feedback time most long.
Step 2:The time cycle can generate other periodic duties time cycle by count value in choosing periodic duty Periodic duty is optimal period task.
To all periodic duties, choose a time cycle optimal task and be referred to as optimal period task, selection principle is Optimal period task over a period of time can easily by count value generate the other times cycle, the time cycle specifically for The feedback time most long allowed when judging that other tasks occur abnormal.5~500 millis are typically chosen for high frequency task system The periodic duty of second, for the periodic duty that low frequency task system is typically chosen 1~10 second.It is non-essential, for the time cycle Identical task, prioritizing selection priority task high.In the present embodiment, it is excellent for periodic duty setting optimal period task Change the data processing to periodic duty monitoring, further improve efficiency.
Wherein in one embodiment, the prison of difference setting cycle task, aperiodic task and limit priority task Control variable includes with corresponding threshold step:
Step one:First monitoring variable and first threshold of setting cycle task, first threshold is when in periodic duty When non-optimal periodic duty occurs abnormal, it is allowed to feedback time most long divided by optimal period task time cycle.
Include optimal period task and non-optimal periodic duty, it is necessary to be monitored respectively for periodic duty, therefore, First monitoring variable and corresponding first threshold and the second monitoring variable and corresponding Second Threshold.During the most feedback long for allowing Between, refer to parameter values that embedded OS sets at the beginning of writing, its specifically can with the significance level of task based access control and System related request sets.Occur for non-optimal periodic duty it is abnormal, its threshold value (first threshold)=permission it is most long anti- The time cycle of feedback time/optimal period task.
Step 2:Second monitoring variable and Second Threshold of setting cycle task, Second Threshold is when optimal period is appointed When business occurs abnormal, it is allowed to feedback time most long divided by non-optimal periodic duty in periodic duty time cycle.
Occur for optimal period task abnormal, the feedback time most long of its threshold value (Second Threshold)=permission/non-is most The time cycle of excellent periodic duty.
Step 3:3rd monitoring variable and the 3rd threshold value of setting aperiodic task, the 3rd threshold value is appointed for optimal period In the time cycle of business, aperiodic task allows the maximum times that circulation is performed.
Step 4:The 4th monitoring variable and the 4th threshold value of limit priority task is searched, the 4th threshold value is to work as highest When priority tasks occur abnormal, it is allowed to feedback time most long divided by system beat function time cycle.
When occurring abnormal for limit priority task, the feedback time most long of its threshold value (the 4th threshold value)=permission/ The time cycle of abnormality processing function.
It is preferential to periodic duty, aperiodic task and highest respectively by monitoring variable wherein in a kind of embodiment Level task be monitored, and by monitor variable count value compare with corresponding threshold value respectively the step of include:
Step one:For the first monitoring variable, reset in periodic duty, the accumulated counts in optimal period task, will Count value compares with first threshold.
Step 2:For the second monitoring variable, reset in optimal period task, the accumulated counts in periodic duty, will Count value compares with Second Threshold.
Step 3:For the 3rd monitoring variable, reset in optimal period task, the accumulated counts in aperiodic task, Count value is compared with the 3rd threshold value.
Step 4:For the 4th monitoring variable, reset in limit priority task, add up meter in system beat function Number, count value is compared with the 4th threshold value.
It is described in detail below in the above two embodiments, for optimal period task, non-optimal periodic duty, highest Priority tasks and aperiodic task specifically monitor process.
1st, in addition to optimal period task, a monitoring variable is increased in other each periodic duties, and it is performed clearly Z-operation, performs the accumulation operations of the monitoring variable in optimal period task, and judge accumulated value whether exceed pre-set Threshold value, such as exceed, then it is assumed that corresponding task is unexpectedly hung up, and calls abnormality processing function.
2nd, in addition to optimal period task, a monitoring variable is increased in other each periodic duties, it is performed cumulative Operation, clear operation is performed in optimal period task.Judge whether accumulated value exceedes in other periodic duties to pre-set Threshold value, such as exceed, then it is assumed that optimal period task is unexpectedly hung up, and calls abnormality processing function.
3rd, increase a monitoring variable in all aperiodicity tasks, accumulation operations, optimal period task are performed to it Middle execution clear operation, increases a monitoring variable in all aperiodic tasks, accumulation operations is performed to it, in optimal period Clear operation is performed in task.Judge whether accumulated value exceedes the threshold value for pre-setting in aperiodic task, such as exceed, then recognize For aperiodic task occurs exception, abnormality processing function is called.
4th, increase the monitoring variable to limit priority task in system beat interruption, performed in limit priority task Clear operation, performs accumulation operations in system beat interruption, and judges whether accumulated value exceedes the threshold value for pre-setting, such as super Cross, then it is assumed that limit priority task is unexpectedly hung up, and calls abnormality processing function.
In order to further explain in detail for optimal period task, non-optimal periodic duty, limit priority task with And aperiodic task specifically monitors process, using application example, and will more be entered with reference to Fig. 2, Fig. 3, Fig. 4 and Fig. 5 below One step explanation.
For an embedded OS, it is assumed that periodic task is N, aperiodicity task is X.Week is represented with P [n] The priority of phase property task n.It is its priority to choose optimal period task y, P [y] according to general principle.Other periodically bases Prioritization, then P [1] is limit priority task.The user function of system beat interrupt call is designated as TickFun ().
Periodic duty monitors variable
As shown in Fig. 2 M1 [n]:The monitoring variable 1 of periodic task n, resets in task n, is added up simultaneously in task y Threshold value 1 is done to judge.V1[n]:The threshold value 1 of periodic task n.Fixed numbers set in advance are needed, is that task n occurs exception When, it is allowed to feedback time most long obtained divided by the time cycle of task y.In optimal period task y, when there is M1 [n]> During V1 [n], it is believed that task n is hung up or other exceptions by unexpected.
As shown in figure 3, M2 [n]:The monitoring variable 2 of periodic task n, resets in task y, is added up simultaneously in task n Threshold value 2 is done to judge.V2[n]:The threshold value 2 of periodic task n.Fixed numbers set in advance are needed, is that task y occurs exception When, it is allowed to feedback time most long obtained divided by the time cycle of task n.In task n, when there is M2 [n]>During V2 [n], Think that optimal period task y is hung up or other exceptions by unexpected.
As shown in figure 4, Mp:The monitoring variable of limit priority task, resets, TickFun () in periodic task 1 Threshold decision is added up and done in function.Special, if the priority P [1] of periodic task 1 is less than P [y], optimal period Task y is limit priority task, Mp will be reset in optimal period task y.Vp:The threshold value of N [p].Needs preset Fixed numbers, when being that high-priority task occurs abnormal, it is allowed to feedback time most long divided by TickFun () function Time cycle obtains.In TickFun () function, when there is Mp>During Vp, it is believed that limit priority task is surprisingly hung Rise or other exceptions.
Aperiodic task monitors variable
M[x]:The monitoring variable of aperiodicity task x, resets, in aperiodicity task x in optimal period task y Add up and do threshold value V [x] judgements.V[x]:The threshold value of aperiodicity task x.Fixed numbers set in advance are needed, is optimal week In the time cycle of phase task y, aperiodicity task x allows the maximum times that circulation is performed.Aperiodicity task x, when there is M [x]>During V [x], it is believed that task x occurs abnormal.
When there are above-mentioned abnormal conditions for the moment, abnormality processing function is called to carry out exception record and place to corresponding task Reason.
As shown in figure 5, a kind of monitoring system of embedded OS task, including:
Analysis module 100, for analyzing all embedded OS tasks, distinguishes embedded OS task class Type, task type includes periodic duty and aperiodic task.
Limit priority task searching modul 200, for finding out limit priority task in embedded OS task.
Parameter setting module 300, the prison for distinguishing setting cycle task, aperiodic task and limit priority task Control variable and corresponding threshold value.
Comparison module 400, it is excellent to periodic duty, aperiodic task and highest respectively for by the monitoring variable First level task is monitored, and the count value for monitoring variable is compared with corresponding threshold value respectively;
Processing module 500, for when the count value for monitoring variable is more than corresponding threshold value, then it is assumed that the monitoring variable pair Answering for task is surprisingly hung up, calls abnormality processing function to process hanging up for task.
The monitoring system of embedded OS task of the present invention, analysis module 100 distinguishes embedded OS task Type, limit priority task searching modul 200 searches limit priority task, the difference setting cycle of parameter setting module 300 The monitoring variable of task, aperiodic task and limit priority task and corresponding threshold value, comparison module 400 is by monitoring The counting of variable, is monitored to periodic duty, aperiodic task and limit priority task respectively, and the monitoring that will be recorded Variable compares with corresponding threshold value respectively, and when the count value for monitoring variable is more than corresponding threshold value, processing module 500 then thinks The corresponding task of monitoring variable is surprisingly hung up, calls abnormality processing function to process hanging up for task.In whole process, according to Task priority and type will be monitored in the variable corresponding priority tasks of insertion, to each task of each type task Monitoring can be included, simple and efficiently monitoring of the realization to embedded OS task.
Wherein in one embodiment, the monitoring system of embedded OS task also includes:
Cycle analysis module, for the time cycle of analytical cycle task, the time cycle is used to judge that other tasks occur The feedback time most long allowed when abnormal.
Optimal period task choose module, for choosing periodic duty in the time cycle other can be generated by count value The periodic duty of periodic duty time cycle is optimal period task.
Wherein in one embodiment, parameter setting module 300 includes:
First parameter setting unit, for setting cycle task first monitors variable and first threshold, first threshold Be when non-optimal periodic duty occurs abnormal in periodic duty, it is allowed to feedback time most long divided by optimal period task Time cycle.
Second parameter setting unit, for setting cycle task second monitors variable and Second Threshold, Second Threshold Be when optimal period task occurs abnormal, it is allowed to feedback time most long divided by non-optimal periodic duty in periodic duty Time cycle.
3rd parameter setting unit, the 3rd monitoring variable and the 3rd threshold value for setting aperiodic task, the 3rd threshold It is worth in the time cycle for optimal period task, aperiodic task allows the maximum times that circulation is performed.
4th parameter setting unit, the 4th monitoring variable and the 4th threshold value for searching limit priority task, the Four threshold values are when limit priority task occurs abnormal, it is allowed to feedback time most long divided by system beat function time Cycle.
Wherein in one embodiment, comparison module 400 includes:
First comparing unit, for for the first monitoring variable, being reset in periodic duty, tires out in optimal period task Plus count, count value is compared with first threshold.
Second comparing unit, for for the second monitoring variable, being reset in optimal period task, tires out in periodic duty Plus count, count value is compared with Second Threshold.
3rd comparing unit, for for the 3rd monitoring variable, being reset in optimal period task, in aperiodic task Accumulated counts, count value is compared with the 3rd threshold value.
4th comparing unit, for for the 4th monitoring variable, being reset in limit priority task, in system beat letter Accumulated counts in number, count value is compared with the 4th threshold value.
Wherein in one embodiment, the 4th comparing unit is additionally operable to when limit priority task is optimal period task When, for the 4th monitoring variable, reset in optimal period task.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of monitoring method of embedded OS task, it is characterised in that including step:
All embedded OS tasks are analyzed, the embedded OS task type, the task type bag is distinguished Include periodic duty and aperiodic task;
Find out limit priority task in the embedded OS task;
Set respectively the monitoring variable of the periodic duty, the aperiodic task and the limit priority task with it is corresponding Threshold value;
It is excellent to the periodic duty, the aperiodic task and the highest respectively by the described pair of counting of monitoring variable First level task is monitored, and the count value for monitoring variable is compared with corresponding threshold value;
When the count value for monitoring variable is more than corresponding threshold value, then it is assumed that the corresponding task of monitoring variable is surprisingly hung Rise, call abnormality processing function to process hanging up for task.
2. the monitoring method of embedded OS task according to claim 1, it is characterised in that described to set respectively The step of monitoring variable of the periodic duty, the aperiodic task and the limit priority task is with corresponding threshold value Also include before:
The time cycle of the periodic duty is analyzed, the time cycle is used for what is allowed when judging that other tasks occur abnormal Feedback time most long;
The cycle that the time cycle can generate other periodic duties time cycle by count value in the periodic duty is chosen to appoint It is optimal period task to be engaged in.
3. the monitoring method of embedded OS task according to claim 2, it is characterised in that described to set respectively The monitoring variable of the periodic duty, the aperiodic task and the limit priority task and corresponding threshold step bag Include:
The first monitoring variable and first threshold of the periodic duty is set, the first threshold is when in the periodic duty When non-optimal periodic duty occurs abnormal, it is allowed to feedback time most long divided by optimal period task time cycle;
The second monitoring variable and Second Threshold of the periodic duty is set, the Second Threshold is when the optimal period is appointed When business occurs abnormal, it is allowed to feedback time most long divided by non-optimal periodic duty in the periodic duty time cycle;
The 3rd monitoring variable and the 3rd threshold value of the aperiodic task is set, the 3rd threshold value is appointed for the optimal period In the time cycle of business, the aperiodic task allows the maximum times that circulation is performed;
The 4th monitoring variable and the 4th threshold value of the limit priority task is set, the 4th threshold value is when the highest When priority tasks occur abnormal, it is allowed to feedback time most long divided by operating system beat function time cycle.
4. the monitoring method of embedded OS task according to claim 3, it is characterised in that by the prison The counting of variable is controlled, the periodic duty, the aperiodic task and the limit priority task are monitored respectively, And by monitor variable count value compare with corresponding threshold value respectively the step of include:
For the described first monitoring variable, reset in the periodic duty, the accumulated counts in the optimal period task, will Count value compares with the first threshold;
For the described second monitoring variable, reset in the optimal period task, the accumulated counts in the periodic duty, will Count value compares with the Second Threshold;
For the described 3rd monitoring variable, reset in the optimal period task, the accumulated counts in the aperiodic task, Count value is compared with the 3rd threshold value;
For the described 4th monitoring variable, reset in the limit priority task, added up in operating system beat function Count, count value is compared with the 4th threshold value.
5. the monitoring method of embedded OS task according to claim 4, it is characterised in that described for described 4th monitoring variable, includes in the limit priority task the step of clearing:
When the limit priority task is the optimal period task, for the described 4th monitoring variable, in optimal period Reset in task.
6. a kind of monitoring system of embedded OS task, it is characterised in that including:
Analysis module, for analyzing all embedded OS tasks, distinguishes the embedded OS task type, institute Stating task type includes periodic duty and aperiodic task;
Limit priority task searching modul, for finding out limit priority task in the embedded OS task;
Parameter setting module, appoints for setting the periodic duty, the aperiodic task and the limit priority respectively The monitoring variable of business and corresponding threshold value;
Comparison module, for by it is described monitoring variable counting, respectively to the periodic duty, the aperiodic task with And the limit priority task is monitored, and the count value for monitoring variable is compared with corresponding threshold value respectively;
Processing module, for when the count value for monitoring variable is more than corresponding threshold value, then it is assumed that monitoring variable correspondence Task surprisingly hang up, call abnormality processing function process hang up task.
7. the monitoring system of embedded OS task according to claim 6, it is characterised in that also include:
Cycle analysis module, the time cycle for analyzing the periodic duty, the time cycle is used to judge other tasks The feedback time most long allowed when occurring abnormal;
Optimal period task choose module, for choosing the periodic duty in the time cycle other can be generated by count value The periodic duty of periodic duty time cycle is optimal period task.
8. the monitoring system of embedded OS task according to claim 7, it is characterised in that the parameter setting Module includes:
First parameter setting unit, the first monitoring variable and first threshold for setting the periodic duty, described first Threshold value is when non-optimal periodic duty occurs abnormal in the periodic duty, it is allowed to feedback time most long divided by optimal week The time cycle of phase task;
Second parameter setting unit, the second monitoring variable and Second Threshold for setting the periodic duty, described second Threshold value is when the optimal period task occurs abnormal, it is allowed to feedback time most long divided by the periodic duty it is non-most The time cycle of excellent periodic duty;
3rd parameter setting unit, the 3rd monitoring variable and the 3rd threshold value for setting the aperiodic task, described the Three threshold values are that in the time cycle of the optimal period task, the aperiodic task allows the maximum times that circulation is performed;
4th parameter setting unit, the 4th monitoring variable and the 4th threshold value for setting the limit priority task, institute It is when the limit priority task occurs abnormal to state the 4th threshold value, it is allowed to feedback time most long divided by system beat letter Several time cycles.
9. the monitoring system of embedded OS task according to claim 8, it is characterised in that the comparison module Including:
First comparing unit, for for the described first monitoring variable, being reset in the periodic duty, in the optimal period Accumulated counts in task, count value is compared with the first threshold;
Second comparing unit, for for the described second monitoring variable, being reset in the optimal period task, in the cycle Accumulated counts in task, count value is compared with the Second Threshold;
3rd comparing unit, for for the described 3rd monitoring variable, being reset in the optimal period task, in the non-week Accumulated counts in phase task, count value is compared with the 3rd threshold value;
4th comparing unit, for for the described 4th monitoring variable, being reset in the limit priority task, in system section Accumulated counts in function are clapped, count value is compared with the 4th threshold value.
10. the monitoring system of embedded OS task according to claim 9, it is characterised in that the 4th ratio It is additionally operable to, when the limit priority task is the optimal period task, variable be monitored for the described 4th compared with unit, Reset in optimal period task.
CN201611055781.XA 2016-11-25 2016-11-25 Method and system for monitoring tasks of embedded operating system Active CN106776202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611055781.XA CN106776202B (en) 2016-11-25 2016-11-25 Method and system for monitoring tasks of embedded operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611055781.XA CN106776202B (en) 2016-11-25 2016-11-25 Method and system for monitoring tasks of embedded operating system

Publications (2)

Publication Number Publication Date
CN106776202A true CN106776202A (en) 2017-05-31
CN106776202B CN106776202B (en) 2020-06-26

Family

ID=58912962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611055781.XA Active CN106776202B (en) 2016-11-25 2016-11-25 Method and system for monitoring tasks of embedded operating system

Country Status (1)

Country Link
CN (1) CN106776202B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216798A (en) * 2008-01-14 2008-07-09 浙江大学 Periodic task reliability control method based on watchdog and timer
CN101452420A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Embedded software abnormal monitoring and handling arrangement and method thereof
CN101937371A (en) * 2010-08-27 2011-01-05 北京星网锐捷网络技术有限公司 Method and device for monitoring task execution state in embedded system
US20110119463A1 (en) * 2009-11-13 2011-05-19 Samsung Electronics Co., Ltd. Computing system and method controlling memory of computing system
CN102231124A (en) * 2011-07-18 2011-11-02 深圳市科陆电子科技股份有限公司 Method for guarding tasks of embedded system
CN103092707A (en) * 2012-12-27 2013-05-08 宁波三星电气股份有限公司 Method of electric power terminal embedded operating system daemon
CN103853625A (en) * 2012-12-06 2014-06-11 苏州工业园区新宏博通讯科技有限公司 Realizing device and method for multi-task watchdog

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216798A (en) * 2008-01-14 2008-07-09 浙江大学 Periodic task reliability control method based on watchdog and timer
CN101452420A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Embedded software abnormal monitoring and handling arrangement and method thereof
US20110119463A1 (en) * 2009-11-13 2011-05-19 Samsung Electronics Co., Ltd. Computing system and method controlling memory of computing system
CN101937371A (en) * 2010-08-27 2011-01-05 北京星网锐捷网络技术有限公司 Method and device for monitoring task execution state in embedded system
CN102231124A (en) * 2011-07-18 2011-11-02 深圳市科陆电子科技股份有限公司 Method for guarding tasks of embedded system
CN103853625A (en) * 2012-12-06 2014-06-11 苏州工业园区新宏博通讯科技有限公司 Realizing device and method for multi-task watchdog
CN103092707A (en) * 2012-12-27 2013-05-08 宁波三星电气股份有限公司 Method of electric power terminal embedded operating system daemon

Also Published As

Publication number Publication date
CN106776202B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2020000944A1 (en) Preemptive scheduling based resource sharing use method, system and
US7958159B1 (en) Performing actions based on monitoring execution of a query
US9274842B2 (en) Flexible and safe monitoring of computers
US6430594B1 (en) Real-time operating system and a task management system therefor
Buttazzo et al. RED: Robust earliest deadline scheduling
JP6241144B2 (en) Control program, control method, and control apparatus
EP3591485B1 (en) Method and device for monitoring for equipment failure
EP3432159A1 (en) Garbage collection method and device
CN106293893A (en) job scheduling method, device and distributed system
WO2013168947A1 (en) Method for representing usage amount of monitoring resource, computing device, and recording medium having program recorded thereon for executing thereof
CN110489062A (en) A kind of disk expansion method and system based on OpenStack environment
CN109542599A (en) A kind of embedded OS thread monitoring method
CN106776202A (en) The monitoring method and system of embedded OS task
Genkin et al. Automatic, on-line tuning of YARN container memory and CPU parameters
CN113626151A (en) Container cloud log collection resource control method and system
CN106412088A (en) Data synchronization method and terminal
CN108509257B (en) Message processing method and device based on multithreading
CN104765648A (en) Problem node detection method and device based on real-time computing system
US8516466B2 (en) Optimization of automated system-managed storage operations
US10904324B2 (en) Computer system and method of controlling data processing
CN107066318A (en) A kind of data dispatching method suitable for stream calculation
US20220210132A1 (en) Communication monitoring and coping apparatus, communication monitoring and coping method, and communication monitoring and coping system
CN112445154B (en) Multi-stage processing method for heterogeneous many-core processor temperature alarm
JPH0793168A (en) Task management system
CN110990059B (en) Stream type calculation engine operation method and system for tilt data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Nanxiang three road, Science City high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 2 510660

Applicant after: Hitachi building technologies (Guangzhou) Co. Ltd.

Address before: Nanxiang Road three Guangzhou Science City 510660 high tech Industrial Development Zone, Guangdong city of Guangzhou province No. 2

Applicant before: Guangzhou Ropente Science and Technology Development Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant