CN102662781A - Method and device for ensuring normal operation of terminal - Google Patents

Method and device for ensuring normal operation of terminal Download PDF

Info

Publication number
CN102662781A
CN102662781A CN201210104809XA CN201210104809A CN102662781A CN 102662781 A CN102662781 A CN 102662781A CN 201210104809X A CN201210104809X A CN 201210104809XA CN 201210104809 A CN201210104809 A CN 201210104809A CN 102662781 A CN102662781 A CN 102662781A
Authority
CN
China
Prior art keywords
terminal
ratio
employed
maintenance software
system resource
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
CN201210104809XA
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210104809XA priority Critical patent/CN102662781A/en
Publication of CN102662781A publication Critical patent/CN102662781A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for ensuring normal operation of a terminal, belonging to the field of computers. The method comprises the following steps: obtaining a system resource used by a system maintaining software when the system maintaining software scans the terminal; obtaining a system resource used by the terminal from an operation system of the terminal; according to the system resource used by the system maintaining software and the system resource used by the terminal, judging whether keeping on operating the system maintaining software to scan the terminal. The device comprises a first obtaining module, a second obtaining module and a judging module. The method and the device can be used for ensuring the normal operation of the terminal.

Description

A kind of method and device that ensures the normal operation in terminal
Technical field
The present invention relates to computer realm, particularly a kind of method and device that ensures the normal operation in terminal.
Background technology
Present user usually operational system maintenance software comes computer is scanned, to realize computer health check-up, wooden horse killing, checking and killing virus, system's reparation and/or rubbish cleaning file etc.
Wherein, System maintenance software can consume bigger system resource when computer is scanned, if meanwhile also move the software that other need consume bigger system resource in the computer; Then may cause computer normally to move, for example cause computer crash or card machine etc.
Summary of the invention
In order to ensure that the terminal can normally move, the invention provides a kind of method and device that ensures the normal operation in terminal.Said technical scheme is following:
A kind of method that ensures the normal operation in terminal, said method comprises:
When system maintenance software scans terminal, obtain the employed system resource of said system maintenance software;
From the operating system at said terminal, obtain the employed system resource in said terminal;
Determine that according to the employed system resource of employed system resource of said system maintenance software and said terminal whether continuing to move said system maintenance software scans said terminal.
The said employed system resource of said system maintenance software of obtaining comprises:
Obtain the identification information of the corresponding process of said system maintenance software, obtain the employed system resource of said process according to the identification information of said process;
The employed system resource of said process is sued for peace, obtain the employed system resource of said system maintenance software.
The said identification information that obtains the corresponding process of said system maintenance software obtains the employed system resource of said process according to the identification information of said process, comprising:
Obtain the descriptor of the corresponding process of said system maintenance software, from the descriptor of said process, extract the identification information of said process;
Call the API API that is used for the calling system resource, obtain the employed system resource of said process according to the identification information of said process and through the said API that is used for the calling system resource.
Saidly judge whether to continue the said system maintenance software of operation according to the employed system resource of employed system resource of said system maintenance software and said terminal and scan said terminal, comprising:
Calculate the ratio of the employed system resource of employed system resource of said system maintenance software and said terminal;
If said ratio is less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation.
Said system resource comprises central processor CPU utilization rate and memory headroom size at least;
The ratio of said calculating employed system resource of said system maintenance software and the employed system resource in said terminal comprises:
Calculate first ratio between the CPU usage at CPU usage and said terminal of said system maintenance software;
Calculate second ratio between employed memory headroom size of said system maintenance software and the employed memory headroom size in said terminal.
Said preset ratio comprises preset first ratio and preset second ratio;
If said ratio is less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation, comprising:
If said first ratio less than preset first ratio and/or said second ratio less than preset second ratio; Decision does not continue to move said system maintenance software and scans said terminal; If more than or equal to said preset second ratio, decision continues the said system maintenance software of operation and scans said terminal said first ratio more than or equal to preset first ratio and said second ratio.
From the operating system at said terminal, obtain after the employed system resource in said terminal, also comprise:
Show the employed system resource of employed system resource of said system maintenance software and said terminal.
A kind of device that ensures the normal operation in terminal, said device comprises:
First acquisition module is used for when system maintenance software scans terminal, obtaining the employed system resource of said system maintenance software;
Second acquisition module is used for obtaining the employed system resource in said terminal from the operating system at said terminal;
Decision module is used for determining that according to the employed system resource of employed system resource of said system maintenance software and said terminal whether continuing to move said system maintenance software scans said terminal.
Said first acquisition module comprises:
Acquiring unit is used to obtain the identification information of the corresponding process of said system maintenance software, obtains the employed system resource of said process according to the identification information of said process;
Sum unit is used for the employed system resource of said process is sued for peace, and obtains the employed system resource of said system maintenance software.
Said acquiring unit comprises:
First obtains subelement, is used to obtain the descriptor of the corresponding process of said system maintenance software, from the descriptor of said process, extracts the identification information of said process;
Second obtains subelement, is used to call the API API that is used for the calling system resource, obtains the employed system resource of said process according to the identification information of said process and through the said API that is used for the calling system resource.
Said decision module comprises:
Computing unit is used to calculate the ratio of the employed system resource of employed system resource of said system maintenance software and said terminal;
The decision unit, if be used for said ratio less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation.
Said system resource comprises central processor CPU utilization rate and memory headroom size at least;
Said computing unit comprises:
First computation subunit is used to calculate first ratio between the CPU usage at CPU usage and said terminal of said system maintenance software;
Second computation subunit is used to calculate second ratio between employed memory headroom size of said system maintenance software and the employed memory headroom size in said terminal.
Said preset ratio comprises preset first ratio and preset second ratio;
Said decision unit; If specifically be used for said first ratio less than preset first ratio and/or said second ratio less than preset second ratio; Decision does not continue to move said system maintenance software and scans said terminal; If more than or equal to said preset second ratio, decision continues the said system maintenance software of operation and scans said terminal said first ratio more than or equal to preset first ratio and said second ratio.
Said device also comprises:
Display module is used to show the employed system resource of employed system resource of said system maintenance software and said terminal.
In embodiments of the present invention, when system maintenance software scans terminal, obtain the employed system resource of system maintenance software; From the operating system at terminal, obtain the employed system resource in terminal; Determine that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.Wherein, If other software that consumes big system resource is also moved at the terminal in the process of operational system maintenance software; It is less that then the employed system resource of system maintenance software accounts for the proportion of the employed system maintenance resource in terminal; And decision do not continue the operational system maintenance software, if the software that other consume big system resource is moved at the terminal in the process of operational system maintenance software, then to account for the proportion of the employed system maintenance resource in terminal bigger for the employed system resource of system maintenance software; And decision continues the operational system maintenance software, ensures that so the terminal can normally move.
Description of drawings
Fig. 1 is a kind of method flow diagram that ensures the normal operation in terminal that the embodiment of the invention 1 provides;
Fig. 2 is a kind of method flow diagram that ensures the normal operation in terminal that the embodiment of the invention 2 provides;
Fig. 3 is a kind of apparatus structure synoptic diagram that ensures the normal operation in terminal that the embodiment of the invention 3 provides.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides a kind of method that ensures the normal operation in terminal, comprising:
Step 101: when system maintenance software scans terminal, obtain the employed system resource of system maintenance software;
Step 102: from the operating system at terminal, obtain the employed system resource in terminal;
Step 103: determine that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.
In embodiments of the present invention, when system maintenance software scans terminal, obtain the employed system resource of system maintenance software; From the operating system at terminal, obtain the employed system resource in terminal; Determine that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.Wherein, If other software that consumes big system resource is also moved at the terminal in the process of operational system maintenance software; It is less that then the employed system resource of system maintenance software accounts for the proportion of the employed system maintenance resource in terminal; And decision do not continue the operational system maintenance software, if the software that other consume big system resource is moved at the terminal in the process of operational system maintenance software, then to account for the proportion of the employed system maintenance resource in terminal bigger for the employed system resource of system maintenance software; And decision continues the operational system maintenance software, ensures that so the terminal can normally move.
Embodiment 2
The embodiment of the invention provides a kind of method that ensures the normal operation in terminal.
Wherein, User usually using system maintenance software comes the terminal is scanned; And when the user in the terminal during start-up system maintenance software, the terminal is that the one or more processes of system maintenance software creation are moved this system maintenance software, so that system maintenance software scans terminal.
Wherein, When terminal operating system maintenance software; System maintenance software need consume bigger system resource, if meanwhile other software that need consume big system resource is also moved at the terminal, just possibly influence the terminal and normally move; In the present embodiment, can ensure that the terminal can normally move through the method that present embodiment provides.Referring to Fig. 2, method comprises:
Step 201: when terminal operating system maintenance software, obtain the descriptor of the corresponding one or more processes of this system maintenance software;
Wherein, comprise the identification information of this process in the descriptor of process at least, the identification information of this process can be the ID (IDentity, identify label number) of this process and/or the title of this process.
For example; The user is the start-up system maintenance software in the terminal; And the terminal for this system maintenance software creation a plurality of processes move this system maintenance software; Suppose that the terminal is respectively process A, B and C for three processes of this system maintenance software creation, and the descriptor InforA of process A comprises that at least the ID of process A is that the name of IDA and process A is called NameA; The descriptor InforB of process B comprises that at least the ID of process B is that the name of IDB and process B is called NameB, and the descriptor InforC of process C comprises that at least the ID of process C is that the name of IDC and process C is called NameC.
Correspondingly, when the terminal brings into operation this system maintenance software, obtain descriptor InforA, the descriptor InforB of process B and the descriptor InforC of process C of the corresponding process A of this system maintenance software.
Step 202: from the descriptor of each process, extract the identification information of each process, from the operating system at terminal, call the API (Application Programming Interface, API) that is used for the calling system resource;
Wherein, Comprise the API that is used for the calling system resource in the operating system at terminal; For any process of moving in the terminal; The API that is used for the calling system resource can obtain the employed system resource of any process, and the employed system resource of process comprises CPU (Central Processing Unit, the central processing unit) utilization rate and the employed memory headroom size of this process of this process at least.
For example; In the present embodiment; The identification information of suppose process is the process title, and the identification information that then from the descriptor InforA of process A, extracts process A is NameA, and the identification information that from the descriptor InforB of process B, extracts process B is NameB; And the identification information that from the descriptor InforC of process C, extracts process C is NameC, and from the api function storehouse that the operating system at terminal comprises, calls the API that is used for the calling system resource.
Step 203: according to the identification information of each process; And obtain the employed system resource of each process through the API that is used for the calling system resource, the employed system resource of process comprises the CPU usage and the employed memory headroom size of this process of this process at least;
Particularly; The identification information of each process is passed to the API that is used for the calling system resource; The API that is used in the calling system resource obtains the employed system resource of each process according to the identification information of each process; Wherein, the employed system resource of process comprises the CPU usage and the employed memory headroom size of this process of this process at least.
For example; Referring to table 1; The identification information NameA of process A is passed to the API that is used for the calling system resource; It is 6% that the API that is used in the calling system resource obtains the CPU usage that the employed system resource of process A comprises process A according to the identification information NameA of process A, and the employed memory headroom size of process A is 4.8M; The identification information NameB of process B is passed to the API that is used for the calling system resource; It is 3% that the API that is used in the calling system resource obtains the CPU usage that the employed system resource of process B comprises process B according to the identification information NameB of process B, and the employed memory headroom size of process B is 1.5M; The identification information NameC of process C is passed to the API that is used for the calling system resource; It is 2% that the API that is used in the calling system resource obtains the CPU usage that the employed system resource of process C comprises process C according to the identification information NameC of process C, and the employed memory headroom size of process C is 1.0M.
Table 1
Figure BDA0000152314480000071
Step 204: each process employed system resource corresponding according to this system maintenance software calculates the employed system resource of this system maintenance software;
Particularly, the employed system resource of each process that this system maintenance software is corresponding is sued for peace, obtain the employed system resource of this system maintenance software.
Wherein, the employed system resource of each process comprises the CPU usage and the employed memory headroom size of process of process at least; Correspondingly, the CPU usage of each corresponding process of this system maintenance software is sued for peace, obtain the CPU usage of this system maintenance software; And; The employed memory headroom size of each process to this system maintenance software is corresponding is sued for peace; Obtain the employed memory headroom size of this system maintenance software, so obtain CPU usage and the employed memory headroom size of this system maintenance software that the employed system resource of this system maintenance software comprises this system maintenance software at least.
For example, the CPU usage 6% of process A, the CPU usage 3% of process B and the CPU usage 2% of process C are sued for peace, the CPU usage that obtains this system maintenance software is 11%; And; Memory headroom size 1.0M to the employed memory headroom size of process A 4.8M, the employed memory headroom size 1.5M of process B and process C sues for peace; Obtain the employed memory headroom size of this system maintenance software and be 7.3M, so obtain CPU usage 11% and the employed memory headroom size of this system maintenance software 7.3M that the employed system resource of this system maintenance software comprises this system maintenance software at least.
Step 205: from the operating system at terminal, obtain the employed system resource in terminal, the employed system resource in terminal comprises the employed memory headroom size of CPU usage and terminal at terminal;
Wherein, the CPU usage at terminal is the CPU usage sum of all softwares that moving in the terminal, and the employed memory headroom size in terminal is the employed memory headroom size of all softwares that moving in terminal sum.
Wherein, so the employed system resource in operating system real-time statistics terminal at terminal in the present embodiment, can directly be obtained the employed system resource in terminal of the operating system real-time statistics at terminal.
Suppose that in the present embodiment, get access to the employed system resource in terminal, the CPU usage that comprises the terminal at least is 97%, and the employed memory headroom size in terminal is 300M.
Step 206: according to the employed system resource of system resource and terminal of the said use of system maintenance software, whether decision continues the operational system maintenance software is come end of scan;
Particularly; The ratio of employed system resource of computing system maintenance software and the employed system resource in terminal; If the ratio that calculates is less than preset ratio; Decision does not continue the operational system maintenance software and comes end of scan, scans said terminal if the ratio that calculates more than or equal to preset ratio, determines to continue the operational system maintenance software.
Wherein, system resource comprises CPU usage and memory headroom size at least, so the ratio that calculates comprises first ratio and second ratio, preset ratio comprises preset first ratio and preset second ratio;
Correspondingly; This step is specially: first ratio between the CPU usage of computing system maintenance software and the CPU usage at terminal; And second ratio between the employed memory headroom size of employed memory headroom size of computing system maintenance software and terminal; If first ratio that calculates less than second ratio of preset first ratio and/or calculating less than preset second ratio; Then decision does not continue the operational system maintenance software and comes end of scan, if first ratio that calculates more than or equal to second ratio of preset first ratio and calculating more than or equal to preset second ratio, then decision continuation operational system maintenance software comes end of scan.
Wherein, If first ratio that calculates less than second ratio of preset first ratio and/or calculating less than preset second ratio; Then show and exist other softwares that moving and this software need consume bigger system resource in the terminal; Promptly this software needs bigger CPU usage and/or needs bigger memory headroom, can normally move in order to guarantee the terminal, and decision does not continue the operational system maintenance software and comes end of scan.
Wherein, decision does not continue the operation that the operational system maintenance software comes end of scan, can be specially: remind the user, come end of scan so that the user stops to continue the using system maintenance software; Perhaps, directly the halt system maintenance software continues operation.
Wherein, can adopt the mode of voice to remind the user to stop to continue the using system maintenance software and come end of scan, perhaps, show that to the user a piece of news reminds the user to stop to continue the using system maintenance software and come end of scan.
For example; First ratio between the CPU usage 11% of computing system maintenance software and the CPU usage 97% at terminal is 0.1134; And second ratio between the employed memory headroom size 300 of employed memory headroom size 7.3 of computing system maintenance software and terminal is 0.024; Suppose that preset first ratio is 0.7, and preset second ratio is 0.6, wherein; First ratio 0.1134 that calculates less than preset first ratio 0.7 and second ratio 0.024 that calculates less than preset second ratio 0.6; So decision does not continue the operational system maintenance software and comes end of scan, and reminds the user through voice mode,, the user comes end of scan so that stopping to continue the using system maintenance software.
Step 207: the employed system resource of employed system resource of display system maintenance software and terminal.
Particularly, this step can specifically comprise following dual mode, is respectively:
The first, adopt patterned employed system resource of display mode display system maintenance software and the employed system resource in terminal.
Be specially: adopt the CPU usage of patterned display mode display system maintenance software and the CPU usage at terminal; And, adopt the employed memory headroom size of employed memory headroom size of patterned display mode display system maintenance software and terminal.
Wherein, adopt the operation of CPU usage at CPU usage and the terminal of patterned display mode display system maintenance software, can be specially:
CPU usage according to current time and system maintenance software is determined first coordinate points in first coordinate system; The transverse axis of first coordinate system is that the time shaft and the longitudinal axis are CPU usage; Between first coordinate points and second coordinate points, draw straight line to be connected first coordinate points and second coordinate points; Second coordinate points is first coordinate points of determining the nearest last time; CPU usage according to current time and terminal is determined the three-dimensional point in first coordinate system, between three-dimensional point and 4-coordinate point, draw straight line to be connected three-dimensional point and 4-coordinate point, and 4-coordinate point is the three-dimensional point of determining the nearest last time.
Wherein, adopt the operation of employed memory headroom size of patterned display mode display system maintenance software and the employed memory headroom size in terminal, can be specially:
In second coordinate system, determine the 5th coordinate points according to current time and the employed memory headroom size of system maintenance software; The transverse axis of second coordinate system is that the time shaft and the longitudinal axis are the memory headroom size; Between the 5th coordinate points and the 6th coordinate points, draw straight line to be connected the 5th coordinate points and the 6th coordinate points; The 6th coordinate points is the 5th coordinate points of determining the nearest last time; Employed memory headroom size according to current time and terminal is determined the 7th coordinate points in second coordinate system; Between the 7th coordinate points and the 8th coordinate points, draw straight line to be connected the 7th coordinate points and the 8th coordinate points, the 8th coordinate points is the 7th coordinate points of determining the nearest last time.
Further, before adopting patterned employed system resource of display mode display system maintenance software and the employed system resource in terminal, also create first coordinate system and second coordinate system.
The second, adopt the employed system resource of employed system resource of display mode display system maintenance software and terminal of form.
Particularly; If it is empty showing form; Then CPU usage, the CPU usage at terminal, the employed memory headroom size of employed memory headroom size of system maintenance software and terminal with system maintenance software fills in the demonstration form; And demonstration form; If it is not empty showing form; To show that then CPU usage, the CPU usage at terminal, the employed memory headroom size of employed memory headroom size of system maintenance software and terminal of the system maintenance software that has shown in the form are updated to the employed memory headroom size in CPU usage, the CPU usage at terminal, the employed memory headroom size of system maintenance software and terminal of system maintenance software respectively, and show form.
Further, before the employed system resource of employed system resource of mode display system maintenance software and terminal that adopts formization, also create the demonstration form in space.
Wherein, adopt figure or form to show the situation of the employed system resource in current terminal and the situation of the employed system resource of system maintenance software to the user directly perceived and more clearlyly, improve user experience.
Wherein, in the present embodiment, get access to the identification information of the corresponding one or more processes of system maintenance software after, can periodically carry out above-mentioned steps 202 to 207.
In embodiments of the present invention, when system maintenance software scans terminal, obtain the employed system resource of system maintenance software; From the operating system at terminal, obtain the employed system resource in terminal; Determine that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.Wherein, If other software that consumes big system resource is also moved at the terminal in the process of operational system maintenance software; It is less that then the employed system resource of system maintenance software accounts for the proportion of the employed system maintenance resource in terminal; And decision do not continue the operational system maintenance software, if the software that other consume big system resource is moved at the terminal in the process of operational system maintenance software, then to account for the proportion of the employed system maintenance resource in terminal bigger for the employed system resource of system maintenance software; And decision continues the operational system maintenance software, ensures that so the terminal can normally move.
Embodiment 3
As shown in Figure 3, the embodiment of the invention provides a kind of device that ensures the normal operation in terminal, comprising:
First acquisition module 301 is used for when system maintenance software scans terminal, obtaining the employed system resource of system maintenance software;
Second acquisition module 302 is used for obtaining the employed system resource in terminal from the operating system at terminal;
Decision module 303 is used for determining that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.
Wherein, first acquisition module 301 comprises:
Acquiring unit is used to obtain the identification information of the corresponding process of system maintenance software, obtains the corresponding employed system resource of process of system maintenance software according to the identification information of the corresponding process of system maintenance software;
Sum unit is used for the corresponding employed system resource of process of system maintenance software is sued for peace, and obtains the employed system resource of system maintenance software.
Wherein, acquiring unit comprises:
First obtains subelement, is used to obtain the descriptor of the corresponding process of system maintenance software, the identification information of the process that the extraction system maintenance software is corresponding from the descriptor of the corresponding process of system maintenance software;
Second obtains subelement, is used to call the API that is used for the calling system resource, obtains the corresponding employed system resource of process of system maintenance software according to the identification information of the corresponding process of system maintenance software and through the API that is used for the calling system resource.
Wherein, decision module 303 comprises:
Computing unit is used for the ratio of employed system resource of computing system maintenance software and the employed system resource in terminal;
The decision unit if the ratio that is used for calculating, determines that not continuing the operational system maintenance software comes end of scan less than preset ratio, comes end of scan if the ratio that calculates more than or equal to preset ratio, determines to continue the operational system maintenance software.
Wherein, system resource comprises the memory headroom size of CPU usage and use at least;
Wherein, computing unit comprises:
First computation subunit is used for first ratio between the CPU usage at CPU usage and terminal of computing system maintenance software;
Second computation subunit is used for second ratio between employed memory headroom size of computing system maintenance software and the employed memory headroom size in terminal.
Wherein, preset ratio comprises preset first ratio and preset second ratio;
Wherein, The decision unit; If first ratio that specifically is used for calculating less than second ratio of preset first ratio and/or calculating less than preset second ratio; Decision does not continue the operational system maintenance software and comes end of scan, if first ratio that calculates more than or equal to second ratio of preset first ratio and calculating more than or equal to preset second ratio, decision continuation operational system maintenance software comes end of scan.
Further, this device also comprises:
Display module is used for the employed system resource of employed system resource of display system maintenance software and terminal.
In embodiments of the present invention, when system maintenance software scans terminal, obtain the employed system resource of system maintenance software; From the operating system at terminal, obtain the employed system resource in terminal; Determine that according to the employed system resource of employed system resource of system maintenance software and terminal whether continuing the operational system maintenance software comes end of scan.Wherein, If other software that consumes big system resource is also moved at the terminal in the process of operational system maintenance software; It is less that then the employed system resource of system maintenance software accounts for the proportion of the employed system maintenance resource in terminal; And decision do not continue the operational system maintenance software, if the software that other consume big system resource is moved at the terminal in the process of operational system maintenance software, then to account for the proportion of the employed system maintenance resource in terminal bigger for the employed system resource of system maintenance software; And decision continues the operational system maintenance software, ensures that so the terminal can normally move.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be accomplished through hardware; Also can instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. one kind ensures the normal method of moving in terminal, it is characterized in that said method comprises:
When system maintenance software scans terminal, obtain the employed system resource of said system maintenance software;
From the operating system at said terminal, obtain the employed system resource in said terminal;
Determine that according to the employed system resource of employed system resource of said system maintenance software and said terminal whether continuing to move said system maintenance software scans said terminal.
2. the method for claim 1 is characterized in that, the said employed system resource of said system maintenance software of obtaining comprises:
Obtain the identification information of the corresponding process of said system maintenance software, obtain the employed system resource of said process according to the identification information of said process;
The employed system resource of said process is sued for peace, obtain the employed system resource of said system maintenance software.
3. the method for claim 1 is characterized in that, the said identification information that obtains the corresponding process of said system maintenance software obtains the employed system resource of said process according to the identification information of said process, comprising:
Obtain the descriptor of the corresponding process of said system maintenance software, from the descriptor of said process, extract the identification information of said process;
Call the API API that is used for the calling system resource, obtain the employed system resource of said process according to the identification information of said process and through the said API that is used for the calling system resource.
4. the method for claim 1 is characterized in that, saidly judges whether to continue the said system maintenance software of operation according to the employed system resource of employed system resource of said system maintenance software and said terminal and scans said terminal, comprising:
Calculate the ratio of the employed system resource of employed system resource of said system maintenance software and said terminal;
If said ratio is less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation.
5. method as claimed in claim 4 is characterized in that, said system resource comprises central processor CPU utilization rate and memory headroom size at least;
The ratio of said calculating employed system resource of said system maintenance software and the employed system resource in said terminal comprises:
Calculate first ratio between the CPU usage at CPU usage and said terminal of said system maintenance software;
Calculate second ratio between employed memory headroom size of said system maintenance software and the employed memory headroom size in said terminal.
6. method as claimed in claim 5 is characterized in that, said preset ratio comprises preset first ratio and preset second ratio;
If said ratio is less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation, comprising:
If said first ratio less than preset first ratio and/or said second ratio less than preset second ratio; Decision does not continue to move said system maintenance software and scans said terminal; If more than or equal to said preset second ratio, decision continues the said system maintenance software of operation and scans said terminal said first ratio more than or equal to preset first ratio and said second ratio.
7. like the described method of each claim of claim 1 to 6, it is characterized in that, from the operating system at said terminal, obtain after the employed system resource in said terminal, also comprise:
Show the employed system resource of employed system resource of said system maintenance software and said terminal.
8. one kind ensures the normal device that moves in terminal, it is characterized in that said device comprises:
First acquisition module is used for when system maintenance software scans terminal, obtaining the employed system resource of said system maintenance software;
Second acquisition module is used for obtaining the employed system resource in said terminal from the operating system at said terminal;
Decision module is used for determining that according to the employed system resource of employed system resource of said system maintenance software and said terminal whether continuing to move said system maintenance software scans said terminal.
9. device as claimed in claim 8 is characterized in that, said first acquisition module comprises:
Acquiring unit is used to obtain the identification information of the corresponding process of said system maintenance software, obtains the employed system resource of said process according to the identification information of said process;
Sum unit is used for the employed system resource of said process is sued for peace, and obtains the employed system resource of said system maintenance software.
10. device as claimed in claim 8 is characterized in that, said acquiring unit comprises:
First obtains subelement, is used to obtain the descriptor of the corresponding process of said system maintenance software, from the descriptor of said process, extracts the identification information of said process;
Second obtains subelement, is used to call the API API that is used for the calling system resource, obtains the employed system resource of said process according to the identification information of said process and through the said API that is used for the calling system resource.
11. device as claimed in claim 8 is characterized in that, said decision module comprises:
Computing unit is used to calculate the ratio of the employed system resource of employed system resource of said system maintenance software and said terminal;
The decision unit, if be used for said ratio less than preset ratio, decision does not continue to move said system maintenance software and scans said terminal, scans said terminal if said ratio more than or equal to preset ratio, determines to continue the said system maintenance software of operation.
12. device as claimed in claim 11 is characterized in that, said system resource comprises central processor CPU utilization rate and memory headroom size at least;
Said computing unit comprises:
First computation subunit is used to calculate first ratio between the CPU usage at CPU usage and said terminal of said system maintenance software;
Second computation subunit is used to calculate second ratio between employed memory headroom size of said system maintenance software and the employed memory headroom size in said terminal.
13. device as claimed in claim 12 is characterized in that, said preset ratio comprises preset first ratio and preset second ratio;
Said decision unit; If specifically be used for said first ratio less than preset first ratio and/or said second ratio less than preset second ratio; Decision does not continue to move said system maintenance software and scans said terminal; If more than or equal to said preset second ratio, decision continues the said system maintenance software of operation and scans said terminal said first ratio more than or equal to preset first ratio and said second ratio.
14., it is characterized in that said device also comprises like the described device of each claim of claim 8 to 13:
Display module is used to show the employed system resource of employed system resource of said system maintenance software and said terminal.
CN201210104809XA 2012-04-11 2012-04-11 Method and device for ensuring normal operation of terminal Pending CN102662781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210104809XA CN102662781A (en) 2012-04-11 2012-04-11 Method and device for ensuring normal operation of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210104809XA CN102662781A (en) 2012-04-11 2012-04-11 Method and device for ensuring normal operation of terminal

Publications (1)

Publication Number Publication Date
CN102662781A true CN102662781A (en) 2012-09-12

Family

ID=46772280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210104809XA Pending CN102662781A (en) 2012-04-11 2012-04-11 Method and device for ensuring normal operation of terminal

Country Status (1)

Country Link
CN (1) CN102662781A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166815A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Electronic device managing system and method
CN105468397A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Software running data processing method and software running data processing apparatus
WO2016101686A1 (en) * 2014-12-24 2016-06-30 深圳Tcl数字技术有限公司 File scanning method and terminal
CN106293582A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 Message checks device, method and peripheral apparatus
CN107491372A (en) * 2017-08-03 2017-12-19 郑州云海信息技术有限公司 A kind of method and system for linux system RPM bags statistics CPU usage
CN110780996A (en) * 2019-09-27 2020-02-11 广州视源电子科技股份有限公司 Process optimization method and device, storage medium and computer equipment
CN111931099A (en) * 2020-06-17 2020-11-13 安徽三实信息技术服务有限公司 Webpage vulnerability scanning system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001256111A (en) * 2000-03-14 2001-09-21 Toshiba Corp System monitoring device
CN102063363A (en) * 2010-01-26 2011-05-18 深圳市同洲电子股份有限公司 Memory footprint statistical device and method
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001256111A (en) * 2000-03-14 2001-09-21 Toshiba Corp System monitoring device
CN102063363A (en) * 2010-01-26 2011-05-18 深圳市同洲电子股份有限公司 Memory footprint statistical device and method
CN102306095A (en) * 2011-07-21 2012-01-04 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166815A (en) * 2014-07-24 2014-11-26 深圳天珑无线科技有限公司 Electronic device managing system and method
CN104166815B (en) * 2014-07-24 2018-02-23 深圳天珑无线科技有限公司 A kind of electronic equipment management system and its method
CN105468397A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Software running data processing method and software running data processing apparatus
WO2016101686A1 (en) * 2014-12-24 2016-06-30 深圳Tcl数字技术有限公司 File scanning method and terminal
CN105791614A (en) * 2014-12-24 2016-07-20 深圳Tcl数字技术有限公司 File scanning method and terminal
CN105791614B (en) * 2014-12-24 2019-05-10 深圳Tcl数字技术有限公司 File scanning method and terminal
CN106293582A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 Message checks device, method and peripheral apparatus
CN107491372A (en) * 2017-08-03 2017-12-19 郑州云海信息技术有限公司 A kind of method and system for linux system RPM bags statistics CPU usage
CN110780996A (en) * 2019-09-27 2020-02-11 广州视源电子科技股份有限公司 Process optimization method and device, storage medium and computer equipment
CN111931099A (en) * 2020-06-17 2020-11-13 安徽三实信息技术服务有限公司 Webpage vulnerability scanning system

Similar Documents

Publication Publication Date Title
CN102662781A (en) Method and device for ensuring normal operation of terminal
US9877283B2 (en) Method and terminal for reporting sensor data and terminal
US8407306B1 (en) Systems and methods for managing message delivery based on message priority
KR101999196B1 (en) Electronic apparatus and detection method
CN106569585B (en) A kind of method and terminal managing program process
CN109376053B (en) Data processing method and device and mobile terminal
CN107967347B (en) Batch data processing method, server, system and storage medium
CN106453832B (en) A kind of report method falling data, device and mobile terminal
CN101833546A (en) Method and device for extracting form from portable electronic document
CN105303174A (en) Fingerprint input method and device
CN113765714A (en) Equipment network distribution method and device, storage medium and electronic equipment
US10728297B2 (en) Streaming media play mode determination method and apparatus
CN106933673B (en) Method and device for adjusting number of logical threads of component
CN102629231A (en) Method for detecting task stack
CN112530074A (en) Queuing and calling reminding method, device, equipment and storage medium
CN110569238B (en) Data management method, system, storage medium and server based on big data
CN102843369B (en) The Network Access Method at UI interface and system
CN111376255B (en) Robot data acquisition method and device and terminal equipment
EP4167545A1 (en) Real time method and system for analyzing data streams
CN110705420A (en) Elevator car advertisement accurate pushing method and device and storage medium
CN109657889B (en) Attendance checking method and device
CN102841812A (en) Electronic equipment and task control method thereof
CN106657316B (en) Message withdrawing method and device
EP4099140A1 (en) Method for detecting touch-control position of active pen, and electronic terminal
CN103902388A (en) Method for achieving communication between applications and electronic device

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

Application publication date: 20120912