CN1862506A - Apparatus and method for real-time indicating running state of computer system - Google Patents

Apparatus and method for real-time indicating running state of computer system Download PDF

Info

Publication number
CN1862506A
CN1862506A CN 200510099303 CN200510099303A CN1862506A CN 1862506 A CN1862506 A CN 1862506A CN 200510099303 CN200510099303 CN 200510099303 CN 200510099303 A CN200510099303 A CN 200510099303A CN 1862506 A CN1862506 A CN 1862506A
Authority
CN
China
Prior art keywords
task
indicating device
flicker frequency
cpu load
state
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.)
Pending
Application number
CN 200510099303
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200510099303 priority Critical patent/CN1862506A/en
Publication of CN1862506A publication Critical patent/CN1862506A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a device for real-time indicating running state of computer system in the field of computer technology and its method. Said invention utilizes the scintillation state of indication device to promptly indicate running state of computer system and running load of CPU, so that it can provide beneficial help for effectively locating system fault.

Description

A kind of device and method of real-time indicating running state of computer system
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of device and method of real-time indicating running state of computer system.
Background technology
In the computer system operational process, usually need to understand the load condition of central processing unit (CPU), grasp the computer system running status, by checking and write down the cpu load state, whether it is busy can understanding system running state, still idle, perhaps unusual, be used for improving and the design of optimizing computer system hardware and software, and the positioning system problem.
On physical significance, after computer system powered on, CPU was in idle condition as long as just be in running status at operating instruction without operating instruction.But application system in reality, it still is in wait task that needs differentiation CPU is carrying out our desired task, if CPU is carrying out our desired task, just thinks that CPU is in running status, if CPU just thinks that just in the execution of wait task CPU is in idle condition.
In the computer system of having moved multiple task operating system, when data need be handled, multiple task operating system will make CPU be in running status, when not having data processing, multiple task operating system will make CPU be in idle condition, and the running status of CPU is just in frequent fast switching between running status and idle condition under the control of multiple task operating system.The data volume that computer system need be handled is big more, in the unit interval CPU be in time of running status will be long more, the time that is in idle condition will be short more.Usually CPU is in the duration of running status and the percent value of measurement period is called cpu load or is called CPU usage in measurement period.
Cpu load is a statistical value, the calculating of cpu load is generally realized by operating system, also can realize by application program, calculating cpu load a kind of method relatively more commonly used is: start the idle task that priority is minimum in multiple task operating system, when system did not have data processing, operating system will make CPU carry out idle task; When system had data to handle, operating system will make CPU carry out other task, and the duration of carrying out idle task or the duration of carrying out other task are added up, and just can calculate the cpu load in the measurement period.The measurement period of cpu load can be provided with, and is set to usually between 1 second to 5 seconds concerning general application.
In multiple task operating system, can switch the hook handling procedure by registered task usually, multiple task operating system is that unit is dispatched CPU usually with the task, task can be thread or process in specific operating system.When operating system is being carried out the task switching, promptly interrupt current moving of task then when going to carry out the another one task, the task that will automatically perform is switched the hook handling procedure, and can pass to the information of switching former and later two tasks in the task switching hook handling procedure as parameter.The form of the task switching hook that different operating system provides may be different with usage.
Prior art one about the scheme of indicating running state of computer system is:
In multiple task operating system, after cpu load calculated, application program read cpu load, indicated by the mode of display device with text or figure;
Display device generally includes devices such as display card, display interface, monitor; In the server application system, display card is installed usually or is embedded in the computer system, and monitor links to each other with display card in the computer system by general physics display interface, perhaps links to each other with long-range display device by modes such as network interface, serial ports; In the embedded system application system, display device all is installed in the computer system outside usually, needs to link to each other with outside or long-range displaying device by modes such as network interface, serial ports.
The shortcoming of the prior art one is:
1) need some complicated display device can obtain and indicate cpu load information and system status information, operation and use are inconvenient;
2) if unusual or fault appear in system, perhaps communication interface can not proper communication, does not perhaps have under the situation of suitable exterior display device, and the user can't obtain the running status of system, be unfavorable for location and the solution of user to the system failure;
3) because the calculating of cpu load based on Statistics, is obtained a result all is last one to add up the cpu load in cycle, real-time is not strong.
Prior art two about the scheme of indicating running state of computer system is:
In computer system,, come the indication mechanism running status as LED (light emitting diode) with an easy indicating device.The indication mode as: LED periodic bright goes out when system normally moves, perhaps periodically the flicker.Lighting and extinguishing operation of LED is to control by the interruption that timing device produces, when situations such as program fleet, deadlock or hardware break down appear in system, and during the hard interruption that causes that CPU can not respond correctly that timing device produces, LED Chang Liang will be occurred because of correctly not controlling, often go out or other abnormality, and the user just can judge roughly whether system breaks down or abnormal conditions by the state of observing the LED indication.Indicating mode also can be normal by the normal bright expression of LED system, and LED extinguishes the expression system exception.Perhaps adopt a plurality of LED to come the multiple abnormal conditions of indication mechanism.
The shortcoming of the prior art two is: because LED light is usually only with periodically lighting and extinguishing or whether Chang Liangchang goes out indication mechanism in normal operation, whether the user can only come the understanding system to break down by it, and can't obtain the operating load information of CPU by it.
Summary of the invention
The object of the present invention is to provide a kind of device and method of real-time indicating running state of computer system, the flicker frequency by indicating device is the running status of instruct computer system and the operating load of CPU in real time, and effective positioning system fault is brought convenience.
The objective of the invention is to be achieved through the following technical solutions:
A kind of device of real-time indicating running state of computer system comprises indicating device, also comprises:
Time cycle controller links to each other with indicating device, is used for the flicker of the flicker frequency control indicating device of the indicating device sent according to cpu load state information acquisition device;
Cpu load state information acquisition device links to each other with described time cycle controller, is used to obtain the cpu load status information, determines system state, and determines the flicker frequency of indicating device to send time cycle controller to according to described system state.
Described indicating device is used to indicate system running state, can dynamically show two states, and can switch realization flicker demonstration between two states fast, and the demonstration of two states is controlled by cpu load state information acquisition device.
Described time cycle controller comprises interruption processing module, is used for regularly producing interrupting, by the flicker frequency of interruption processing module control indicating device.
Described time cycle controller also comprises:
Interrupt counter, the interruption times that is used for adding up described time cycle controller.
A kind of method of real-time indicating running state of computer system comprises:
A, cpu load state information acquisition device obtain the cpu load status information, and determine system state according to described cpu load status information;
B, determine the indicating device flicker frequency, send time cycle controller to according to described system state;
Interruption processing module in C, the time cycle controller is controlled the flicker of indicating device according to described definite indicating device flicker frequency.
The method that described steps A is obtained the cpu load status information comprises:
A1, cpu load state information acquisition device move an idle task, and register task switching hook handling procedure and obtain the cpu load status information.
Described steps A 1 comprises:
When A11, system switch to another task from current task, execute the task and switch the hook handling procedure;
A12, task are switched the hook handling procedure and are obtained the information of switching former and later two tasks, judge system state;
A13, task switching hook handling procedure are determined the indicating device flicker frequency according to system status information, send time cycle controller to.
Described steps A 12 comprises:
A121, task are switched the hook handling procedure switches former and later two tasks according to task priority judgement system state; And/or the task names or the task identification that switch former and later two tasks according to task are judged system state.
Described steps A 121 specifically comprises:
When A1211, system switched to busy task from idle task, decision-making system switched to run mode from Idle state; Or,
When A1212, system switched to idle task from busy task, decision-making system switched to Idle state from run mode; Or,
It all is busy task that former and later two tasks are switched in A1213, system, and decision-making system still is in run mode.
Described steps A comprises:
A2, cpu load state information acquisition device directly regularly obtain the cpu load statistical value that system-computed is come out.
Described step B comprises:
B1, the corresponding relation of cpu load status information and indicating device flicker frequency is set;
B2, determine the flicker frequency of indicating device according to described cpu load status information and described corresponding relation.
When selection task switching hook handling procedure obtained the cpu load status information, described step B1 comprised:
B11, when the CPU Idle state is set, the flicker frequency of indicating device is a minimum value;
B12, when the CPU run mode is set, the flicker frequency of indicating device is a maximal value;
B13, when CPU being set between described Idle state and run mode, switching, the indicating device flicker frequency is the intermediate value between described maximal value and the minimum value.
When selecting directly to obtain the cpu load statistical value that system-computed comes out, described step B1 comprises:
B14, with the segmentation of cpu load scope, indicating device flicker frequency of each section correspondence;
B15, when cpu load being set between two sections, switching, the indicating device flicker frequency is the intermediate value of the flicker frequency of two sections correspondences.
Described step B2 comprises:
Regularly obtain the cpu load statistical value that system-computed is come out, determine the indicating device flicker frequency according to described corresponding relation.
Described step B1 also comprises:
B16, when CPU being set between described Idle state and run mode, switching, the indicating device flicker frequency from intermediate value to peaked incremental steps;
B17, when CPU being set between described Idle state and run mode, switching, the decrement step size of indicating device flicker frequency from the intermediate value to the minimum value.
Described step C comprises:
C1, calculate the interval duration of twice flicker, the interruption times of the interruption processing module that needs at interval by twice flicker of interval duration calculation by the flicker frequency of described definite indicating device;
C2, with the interruption times of described interruption processing module interruption times and actual interrupt counters count relatively when described interruption processing module interruption times during less than the interruption times of actual interrupt counters count, lights the current indicating device that extinguishes;
C3, when being judged to be need light indicating device the time zero clearing of interrupt counter value;
C4, upgrade flicker frequency according to the incremented/decremented step-length.
Described step C2 comprises:
In the interruption processing module Interrupt Process process indicating device is being extinguished after lighting indicating device next time, realizing the flicker of indicating device.
Described method also comprises:
D, judge system running state according to the flicker frequency of indicating device.
As seen from the above technical solution provided by the invention, the running status that the present invention comes the instruct computer system by the flicker frequency of control indicating device, the user just can know whether fault of system by observing indicating device, and can understand the cpu load state, and do not need common display device, the positioning system fault is brought great convenience.
Description of drawings
Fig. 1 is an apparatus structure synoptic diagram of the present invention;
Fig. 2 is the method for the invention operational flowchart.
Embodiment
Core concept of the present invention provides a kind of device and method of real-time indicating running state of computer system, flicker frequency by indicating device is the running status of instruct computer system and the operating load of CPU in real time, and the busy more cpu load of the high more expression of indicating device flicker frequency system is heavy more; The idle more cpu load of the low more expression of indicating device flicker frequency system is light more; When indicating device normal bright or represent that fault has appearred in system when often going out; When indicating device for a long time incessantly during fast blink, illustrative system overload operation, perhaps system breaks down.
The invention provides a kind of device of real-time indicating running state of computer system, as shown in Figure 1, described device comprises indicating device, time cycle controller, cpu load state information acquisition device.Described indicating device is embedded in the computer hardware system, can the dynamic display system two states, and can switch fast between two states and realize flicker, the demonstration of two states can be by the control of cpu load state information acquisition device, and this indicating device can be LED; Described time cycle controller links to each other with cpu load state information acquisition device with indicating device, it comprises that terminal processing module can regularly produce interruption, control the scitillation process of indicating device according to the flicker frequency of the definite indicating device of cpu load state information acquisition device, the frequency that described timing is interrupted can be provided with as required, as per second 100 times, this time cycle controller also comprises interrupt counter, is used for the accumulative total interruption times; Described cpu load state information acquisition device links to each other with described time cycle controller, being used for carrying out task in operating system switches, promptly interrupt current task when carrying out another task, the task of obtaining is switched the information of former and later two tasks, by the information such as priority, task names or task identification of switching former and later two tasks, judge the CPU running status, and determine the flicker frequency of indicating device to send time cycle controller to according to described CPU running status; The finishing of this process can be switched the hook handling procedure by registered task and finished, or finishes by directly obtaining the cpu load statistical value that system-computed comes out.
The present invention also provides a kind of method of real-time indicating running state of computer system, embodiment one as shown in Figure 2, this method specifically comprises the steps, is that LED is that example describes below with the indicating device:
Idle task of step 10:CPU load condition information acquisition device operation, and register a task switching hook handling procedure;
Start the idle task that priority is minimum in multiple task operating system, when system was in idle condition, operating system can make CPU move this idle task; If moved a task that priority is minimum in the system, then this task is exactly an idle task, does not need to restart an idle task;
Register a task and switch the hook handling procedure, be used to obtain the cpu load status information; When operating system is carried out the task switching, can automatically perform this task and switch the hook handling procedure, and task switched the relevant information of former and later two tasks, comprise that information such as task priority, task names and task identification are notified to task and switch the hook handling procedure.
Step 11: task is switched the hook handling procedure and is obtained the cpu load status information, determines that the LED flicker frequency sends time cycle controller to;
Task is switched the hook handling procedure and is obtained the information of switching former and later two tasks, by comparing the information such as priority, task names or task identification of two tasks, just can the judgement system switch to idle task, still switch to other task from idle task from other task; If system switches to idle task from other task, then decision-making system switches to Idle state from run mode; If system switches to other task from idle task, then decision-making system switches to run mode from Idle state; If two tasks when task is switched are not idle task, then system still is in run mode, and the CPU running status need not be upgraded;
When the CPU running status need be upgraded, will calculate the collaborative incremented/decremented step-length that sets in advance of LED flicker frequency according to the said system running state information and send time cycle controller to;
Process according to said system running state information calculating LED flicker frequency in task switching hook handling procedure specifically comprises:
When definition CPU was in Idle state, the LED flicker frequency was the slowest, and minimum flicker frequency can be provided with as required, as per second flicker 1 time is set; When CPU was in run mode, the LED flicker frequency was the fastest, and maximum flicker frequency can be provided with as required, as per second flicker 20 times are set.Because switching the hook handling procedure, task can only judge that the CPU operation is in idle and the operation two states, the CPU running status is dynamically switched under this two states in the computer system operational process continually, and the LED flicker frequency is also switched between the two in minimum value and maximal value; In order to make variation look like level and smooth by the LED flicker frequency of state switching controls, and more can reflect the dynamic change of actual cpu load state, when in task switching hook handling procedure, judging that CPU enters run mode, not that directly the LED flicker frequency is set to maximal value, but be set to certain intermediate value between minimum value and the maximal value as the LED flicker frequency, be incremented to maximal value gradually according to predefined incremental steps again; Equally, when judging that CPU enters idle condition in the task switching hook handling procedure, directly the LED flicker frequency is set to minimum value, but certain intermediate value between minimum value and the maximal value is set as the LED flicker frequency, be decremented to minimum value gradually according to predefined decrement step size again; The incremented/decremented step-length of flicker frequency can set in advance according to actual conditions;
Step 12: after time cycle controller is known above-mentioned LED flicker frequency, by the flicker of interruption processing module control LED;
When LED is in illuminating state, LED is extinguished, to realize the effect of LED flicker;
The process that interruption processing module control LED lights specifically comprises:
Switch LED flicker frequency or the LED flicker frequency after incremented/decremented is upgraded that the hook handling procedure is determined by above-mentioned task, can calculate the interval duration of twice flicker, timing interruption frequency by flicker interval duration and interruption processing module can calculate the interruption processing module interruption times that twice flicker needs at interval, this interruption times and interrupt counter value are compared, when interrupt Counter Value greater than/when equaling interruption times value that aforementioned calculation goes out, LED is lighted, and the zero clearing of interrupt counter value;
Described interrupt counter adds 1 in each interruption processing module interrupt handling routine;
When the LED flicker frequency neither maximal value neither minimum value the time, upgrade flicker frequency according to the incremented/decremented step-length, when the flicker frequency of calculating during less than minimum value, putting flicker frequency is minimum value, when the flicker frequency of calculating during greater than maximal value, putting flicker frequency is maximal value; LED flicker frequency after the renewal will be used for the control of next interrupt handling routine to the LED flicker frequency;
In the Interrupt Process of the interruption processing module several times flow process after LED lights LED is extinguished, if regularly interruption frequency is 100 times/second usually, in the Interrupt Process of the interruption processing module next time process after lighting LED LED extinguished and get final product, after lighting, extinguishes at short notice LED, we seem to be exactly that LED is glimmering, and LED can according to circumstances determine from being illuminated to the duration that extinguishes;
Step 13:, judge the CPU running status according to LED flicker situation;
Can judge according to the LED blink states whether system abnormal conditions occur, when the normal bright or LED of LED often goes out, illustrate that CPU can not normally control the state of LED, fault has appearred in the decidable system; Illustrate then that with the fastest speed flicker CPU is in higher load condition for a long time when LED is long-time continual, decidable is system's overload operation, is necessary system is optimized or handles; This situation occurs and also may the illustrative system program enter certain endless loop, perhaps operating system can't normally be carried out task scheduling, decidable is that system breaks down, and in conjunction with other locating information, can provide useful help for the positioning system fault again; When the flicker frequency of indicating device was in a kind of state for a long time always, also illustrative system may break down.
Can also roughly understand the cpu load state according to the LED flicker frequency, the fast more expression cpu load of flicker frequency is heavy more, and system is busy more; Flicker frequency represents that more slowly cpu load is light more, and system is idle more, and the flicker frequency indication is real-time cpu load state.
Above-mentionedly switch the hook handling procedure for the employing task and realize obtaining system running state, the present invention another
Embodiment is:
Employing is directly obtained the cpu load statistical value that system-computed comes out by cpu load state information acquisition device and is calculated the flicker frequency of LED, and no longer needs registered task to switch the hook handling procedure.For the flicker frequency that makes LED can be more real-time the load of reflection CPU, what the measurement period that calculates cpu load need be provided with is shorter, as being set to 1 second; The cpu load that system-computed is come out represents with number percent that usually scope is 0 to 100;
At first the scope with cpu load is divided into several sections, LED flicker frequency of each section correspondence, the flicker frequency of LED just can have been indicated the load condition of CPU like this, if cpu load is divided into 6 sections, the minimum flicker frequency of LED is set to per second 1 time, maximum flicker frequency is set to per second 20 times, and the corresponding tables that can make a cpu load and flicker frequency is as follows, and concrete value can be revised and adjust according to actual effect:
Cpu load range L ED flicker frequency
[0,10] 1
[11,25] 4
[26,40] 7
[41,60] 10
[61,80] 13
[81,100] 20
The cpu load statistical value that cpu load state information acquisition device comes out by periodically obtaining system-computed, in corresponding tables, find the LED flicker frequency of cpu load correspondence, and, control the flicker of LED according to flicker frequency by time cycle controller with LED flicker frequency notice time cycle controller.In order to make the LED flicker frequency certain effect that seamlessly transits be arranged, can introduce an intermediate value simultaneously with embodiment one at handoff procedure; The mean value of the LED flicker frequency of two sections cpu load correspondences before and after this intermediate value can be arranged to switch usually; Gradually change up to reaching predetermined flicker frequency by certain incremented/decremented step-length then, algorithm flow is similar to embodiment one scheme.
Described embodiment two, realized function equally with LED flicker frequency indication mechanism running status and cpu load state, can access effect preferably at the cpu load measurement period under less than 1 second situation, measurement period is provided with a less value can make real-time stronger as 0.5 second.
In sum, the running status that the present invention comes the instruct computer system by the flicker frequency of control indicating device, the user just can know whether fault of system by the state of observing indicating device, and can understand the cpu load state, and do not need the display device of common complexity, the positioning system fault is brought great convenience.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (18)

1, a kind of device of real-time indicating running state of computer system comprises indicating device, it is characterized in that, also comprises:
Time cycle controller links to each other with indicating device, is used for the flicker of the flicker frequency control indicating device of the indicating device sent according to cpu load state information acquisition device;
Cpu load state information acquisition device links to each other with described time cycle controller, is used to obtain the cpu load status information, determines system state, and determines the flicker frequency of indicating device to send time cycle controller to according to described system state.
2, the device of a kind of real-time indicating running state of computer system as claimed in claim 1, it is characterized in that, described indicating device is used to indicate system running state, can dynamically show two states, and can between two states, switch fast and realize that flicker shows that the demonstration of two states is controlled by cpu load state information acquisition device.
3, the device of a kind of real-time indicating running state of computer system as claimed in claim 1 is characterized in that, described time cycle controller comprises interruption processing module, is used for regularly producing interrupting, by the flicker frequency of interruption processing module control indicating device.
4, the device of a kind of real-time indicating running state of computer system as claimed in claim 3 is characterized in that, described time cycle controller also comprises:
Interrupt counter, the interruption times that is used for adding up described time cycle controller.
5, a kind of method of real-time indicating running state of computer system is characterized in that, comprising:
A, cpu load state information acquisition device obtain the cpu load status information, and determine system state according to described cpu load status information;
B, determine the indicating device flicker frequency, send time cycle controller to according to described system state;
Interruption processing module in C, the time cycle controller is controlled the flicker of indicating device according to described definite indicating device flicker frequency.
6, the method for a kind of real-time indicating running state of computer system as claimed in claim 5 is characterized in that, the method that described steps A is obtained the cpu load status information comprises:
A1, cpu load state information acquisition device move an idle task, and register task switching hook handling procedure and obtain the cpu load status information.
7, the method for a kind of real-time indicating running state of computer system as claimed in claim 6 is characterized in that, described steps A 1 comprises:
When A11, system switch to another task from current task, execute the task and switch the hook handling procedure;
A12, task are switched the hook handling procedure and are obtained the information of switching former and later two tasks, judge system state;
A13, task switching hook handling procedure are determined the indicating device flicker frequency according to system status information, send time cycle controller to.
8, the method for a kind of real-time indicating running state of computer system as claimed in claim 7 is characterized in that, described steps A 12 comprises:
A121, task are switched the hook handling procedure switches former and later two tasks according to task priority judgement system state; And/or the task names or the task identification that switch former and later two tasks according to task are judged system state.
9, the method for a kind of real-time indicating running state of computer system as claimed in claim 8 is characterized in that, described steps A 121 specifically comprises:
When A1211, system switched to busy task from idle task, decision-making system switched to run mode from Idle state; Or,
When A1212, system switched to idle task from busy task, decision-making system switched to Idle state from run mode; Or,
It all is busy task that former and later two tasks are switched in A1213, system, and decision-making system still is in run mode.
10, the method for a kind of real-time indicating running state of computer system as claimed in claim 5 is characterized in that, described steps A comprises:
A2, cpu load state information acquisition device directly regularly obtain the cpu load statistical value that system-computed is come out.
11, the method for a kind of real-time indicating running state of computer system as claimed in claim 5 is characterized in that, described step B comprises:
B1, the corresponding relation of cpu load status information and indicating device flicker frequency is set;
B2, determine the flicker frequency of indicating device according to described cpu load status information and described corresponding relation.
12, the method for a kind of real-time indicating running state of computer system as claimed in claim 11 is characterized in that, when selection task switching hook handling procedure obtained the cpu load status information, described step B1 comprised:
B11, when the CPU Idle state is set, the flicker frequency of indicating device is a minimum value;
B12, when the CPU run mode is set, the flicker frequency of indicating device is a maximal value;
B13, when CPU being set between described Idle state and run mode, switching, the indicating device flicker frequency is the intermediate value between described maximal value and the minimum value.
13, the method for a kind of real-time indicating running state of computer system as claimed in claim 11 is characterized in that, when selecting directly to obtain the cpu load statistical value that system-computed comes out, described step B1 comprises:
B14, with the segmentation of cpu load scope, indicating device flicker frequency of each section correspondence;
B15, when cpu load being set between two sections, switching, the indicating device flicker frequency is the intermediate value of the flicker frequency of two sections correspondences.
14, the method for a kind of real-time indicating running state of computer system as claimed in claim 13 is characterized in that, described step B2 comprises:
Regularly obtain the cpu load statistical value that system-computed is come out, determine the indicating device flicker frequency according to described corresponding relation.
As the method for claim 12 or 13 described a kind of real-time indicating running state of computer system, it is characterized in that 15, described step B1 also comprises:
B16, when CPU being set between described Idle state and run mode, switching, the indicating device flicker frequency from intermediate value to peaked incremental steps;
B17, when CPU being set between described Idle state and run mode, switching, the decrement step size of indicating device flicker frequency from the intermediate value to the minimum value.
16, the method for a kind of real-time indicating running state of computer system as claimed in claim 5 is characterized in that, described step C comprises:
C1, calculate the interval duration of twice flicker, the interruption times of the interruption processing module that needs at interval by twice flicker of interval duration calculation by the flicker frequency of described definite indicating device;
C2, with the interruption times of described interruption processing module interruption times and actual interrupt counters count relatively when described interruption processing module interruption times during less than the interruption times of actual interrupt counters count, lights the current indicating device that extinguishes;
C3, when being judged to be need light indicating device the time zero clearing of interrupt counter value;
C4, upgrade flicker frequency according to the incremented/decremented step-length.
17, the method for a kind of real-time indicating running state of computer system as claimed in claim 16 is characterized in that, described step C2 comprises:
In the interruption processing module Interrupt Process process indicating device is being extinguished after lighting indicating device next time, realizing the flicker of indicating device.
18, the method for a kind of real-time indicating running state of computer system as claimed in claim 5 is characterized in that, described method also comprises:
D, judge system running state according to the flicker frequency of indicating device.
CN 200510099303 2005-09-09 2005-09-09 Apparatus and method for real-time indicating running state of computer system Pending CN1862506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510099303 CN1862506A (en) 2005-09-09 2005-09-09 Apparatus and method for real-time indicating running state of computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510099303 CN1862506A (en) 2005-09-09 2005-09-09 Apparatus and method for real-time indicating running state of computer system

Publications (1)

Publication Number Publication Date
CN1862506A true CN1862506A (en) 2006-11-15

Family

ID=37389940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510099303 Pending CN1862506A (en) 2005-09-09 2005-09-09 Apparatus and method for real-time indicating running state of computer system

Country Status (1)

Country Link
CN (1) CN1862506A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680011A (en) * 2012-05-15 2012-09-19 董右云 Single-lamp multi-information indication method
CN103488556A (en) * 2013-09-24 2014-01-01 浪潮电子信息产业股份有限公司 Method for achieving different light-emitting diode (LED) flickering modes according to different power states
CN103516552A (en) * 2013-10-16 2014-01-15 中科恒源科技股份有限公司 State indication method and state indication device of electronic device
CN104991852A (en) * 2015-06-29 2015-10-21 浪潮(北京)电子信息产业有限公司 System operating state indication method and host system
CN106326049A (en) * 2016-08-16 2017-01-11 广东欧珀移动通信有限公司 Fault locating method and terminal
CN108446008A (en) * 2018-02-27 2018-08-24 晶晨半导体(上海)股份有限公司 A kind of dynamic response adjusting method of classification frequency modulation and voltage modulation
CN110502284A (en) * 2019-08-20 2019-11-26 深圳市丰润达科技有限公司 LED light flickering method, device and the readable storage medium storing program for executing of single-chip microcontroller

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102680011A (en) * 2012-05-15 2012-09-19 董右云 Single-lamp multi-information indication method
CN102680011B (en) * 2012-05-15 2015-02-04 深圳市未来智能电气有限公司 Single-lamp multi-information indication method
CN103488556A (en) * 2013-09-24 2014-01-01 浪潮电子信息产业股份有限公司 Method for achieving different light-emitting diode (LED) flickering modes according to different power states
CN103516552A (en) * 2013-10-16 2014-01-15 中科恒源科技股份有限公司 State indication method and state indication device of electronic device
CN103516552B (en) * 2013-10-16 2018-03-06 中科恒源科技股份有限公司 The state indication method and state indicating device of a kind of electronic equipment
CN104991852A (en) * 2015-06-29 2015-10-21 浪潮(北京)电子信息产业有限公司 System operating state indication method and host system
CN106326049A (en) * 2016-08-16 2017-01-11 广东欧珀移动通信有限公司 Fault locating method and terminal
CN106326049B (en) * 2016-08-16 2019-07-19 Oppo广东移动通信有限公司 A kind of Fault Locating Method and terminal
CN108446008A (en) * 2018-02-27 2018-08-24 晶晨半导体(上海)股份有限公司 A kind of dynamic response adjusting method of classification frequency modulation and voltage modulation
CN110502284A (en) * 2019-08-20 2019-11-26 深圳市丰润达科技有限公司 LED light flickering method, device and the readable storage medium storing program for executing of single-chip microcontroller

Similar Documents

Publication Publication Date Title
CN1862506A (en) Apparatus and method for real-time indicating running state of computer system
CN1828481A (en) Energy-saving switching method for waiting overtime judge of flush type system outer apparatus
JP2004164642A (en) Peak level selection in data processing system
US20060038506A1 (en) Systems and methods to control light-emitting diodes
JP2004164643A (en) Execution level setting in data processing system
CN1643900A (en) Electronic device and power source control method
CN101030095A (en) Heat quantity control method and computer
JP2004533674A5 (en)
CN1862515A (en) Data trnasfer apparatus, data transfer method, and program
CN1901569A (en) Remote regulating method and system
JP2008508555A5 (en)
CN112074039A (en) System, method, terminal and medium for monitoring health state of lighting equipment
CN1906975A (en) Apparatus and method for producing variable intensity of light
CN1794183A (en) Method of real time task regulation in Java operation system
CN1842238A (en) Signal lamp flashing controlling method
CN101980147B (en) Multithreaded processor and instruction execution and synchronization method thereof
CN1855067A (en) Task hung-state monitoring method in realtime operation system
JP6719078B2 (en) Lighting control device, lighting system, and control method
CN101364369A (en) Portable display device and energy saving method
US8996897B2 (en) Automatic backlight intensity adjustment in an embedded operating system environment
CN1842997A (en) Terminal apparatus, terminal apparatus control method, network system, network system control method, program and recording medium
CN1445668A (en) Method and device for getting information monitored by main board
CN1286235C (en) Power distribution equipment monitoring control system
CN1690977A (en) Device and method for monitoring and indicating health state of a computer
CN1601488A (en) Information processing control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication