CN106951061B - Electronic apparatus and control method - Google Patents

Electronic apparatus and control method Download PDF

Info

Publication number
CN106951061B
CN106951061B CN201710197908.XA CN201710197908A CN106951061B CN 106951061 B CN106951061 B CN 106951061B CN 201710197908 A CN201710197908 A CN 201710197908A CN 106951061 B CN106951061 B CN 106951061B
Authority
CN
China
Prior art keywords
message
application
attribute
unit
electronic device
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.)
Active
Application number
CN201710197908.XA
Other languages
Chinese (zh)
Other versions
CN106951061A (en
Inventor
李占胜
欧华富
石小房
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710197908.XA priority Critical patent/CN106951061B/en
Publication of CN106951061A publication Critical patent/CN106951061A/en
Application granted granted Critical
Publication of CN106951061B publication Critical patent/CN106951061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

An electronic device and a control method are disclosed. The electronic device includes: the communication agent unit is used for monitoring the application process of the electronic equipment and acquiring a first message related to a first process; the message analysis unit is used for analyzing the first message and judging whether the first message has a first attribute; and the control unit is used for processing the first message to prohibit the first message from being sent to at least a second process when the message analysis unit judges that the first message has the first attribute.

Description

Electronic apparatus and control method
Technical Field
The present invention relates to the field of electronic communications, and more particularly, to an electronic device and a control method for optimizing system performance based on interprocess communication.
Background
In the android system, applications communicate with each other. For example, applications may use the same sdk (software Development kit), and such applications may then often communicate with each other, while the mutual invocation causes the applications to automatically launch. Alternatively, the automatic launching of the application may be achieved through inter-communication between the applications in other ways. However, the overhead of management causing the automatic start of the application is large and the system consumes more power.
Disclosure of Invention
In view of the above, it is desirable to provide an electronic device and a control method capable of better managing interprocess communication and optimizing system performance.
According to an aspect of the present invention, there is provided an electronic apparatus including: the communication agent unit is used for monitoring the application process of the electronic equipment and acquiring a first message related to a first process; the message analysis unit is used for analyzing the first message and judging whether the first message has a first attribute; and the control unit is used for processing the first message to prohibit the first message from being sent to at least a second process when the message analysis unit judges that the first message has the first attribute.
Preferably, the electronic device according to an embodiment of the present invention may further include: a storage unit, configured to store a first application list, where an application in the first application list is an application that consumes more system resources, and the message analysis unit may further include: and the sender management unit is used for monitoring a first application corresponding to a first process as a sender of the first message, and if the first application is included in the first application list, determining that the first message has a first attribute, otherwise, determining that the first message does not have the first attribute.
Preferably, the electronic device according to an embodiment of the present invention may further include: the storage unit is configured to store a second application list, where an application in the second application list is an application that is not beneficial to reducing system resource consumption, and the message analysis unit may further include: a receiving side management unit, configured to monitor a second application corresponding to a second process that is a receiving side of the first message, and determine that the first message does not have a first attribute if the second application is included in the second application list; if the second application is not included in the second application list, the second application is further analyzed, and it is determined whether the first message has the first attribute based on a result of the analysis.
Preferably, in the electronic device according to an embodiment of the present invention, the message analysis unit may further include: and the message content processing unit is used for analyzing the content of the message and determining whether the first message has the first attribute based on the analysis result.
Preferably, the electronic device according to an embodiment of the present invention may further include: and the message pseudo-response unit is used for sending an instruction to the communication agent unit to indicate that a pseudo-response is sent to the first process when the first process as the sender needs a response from the second process as the receiver to ensure normal operation and the message analysis unit determines that the first message has the first attribute.
According to another aspect of the present invention, there is provided a control method applied to an electronic device, the control method including: monitoring an application process of the electronic equipment, and acquiring a first message related to a first process; analyzing the first message, and judging whether the first message has a first attribute; if so, processing the first message to inhibit sending the first message to at least a second process.
Preferably, in the control method according to the embodiment of the present invention, before monitoring the application process of the electronic device, the method further includes: storing a first application list, wherein the applications in the first application list are applications consuming more system resources, and the step of judging whether the first message has a first attribute further comprises: monitoring a first application corresponding to a first process which is a sender of the first message, if the first application is included in the application list, determining that the first message has a first attribute, otherwise, determining that the first message does not have the first attribute.
Preferably, in the control method according to the embodiment of the present invention, before monitoring the application process of the electronic device, the method further includes: storing a second application list, wherein the applications in the second application list are applications that are not beneficial to reducing system resource consumption, and the step of determining whether the first message has the first attribute further comprises: monitoring a second application corresponding to a second process as a receiver of the first message, and if the second application is included in the application list, determining that the first message has a first attribute; if the second application is not included in the application list, the second application is further analyzed, and it is determined whether the first message has the first attribute based on a result of the analysis.
Preferably, in the control method according to the embodiment of the present invention, the step of determining whether the first message has the first attribute further includes: and analyzing the content of the first message, and determining whether the first message has a first attribute based on the analysis result.
Preferably, the control method according to an embodiment of the present invention may further include: when the first process as a sender needs a response from a second process as a receiver to ensure normal operation, but determines that the first message has the first attribute, a pseudo response is sent to the first process.
In the electronic device and the control method according to the embodiments of the present invention, by managing communication between processes, that is, by analyzing the first message to determine whether the first message has the first attribute to prohibit/allow the first message to be sent to at least the second process, problems caused by communication, such as high application self-start management overhead, more system energy consumption, and the like, may be reduced.
Drawings
FIG. 1 is a functional block diagram illustrating an overview of an electronic device in accordance with the present general inventive concept;
FIG. 2 is a flow chart illustrating an overview of a control method according to the present general design concept;
fig. 3 is a functional block diagram illustrating a configuration of an electronic apparatus according to a first embodiment of the present invention;
fig. 4 is a flowchart illustrating a procedure of a control method according to the first embodiment of the invention;
fig. 5 is a functional block diagram illustrating a configuration of an electronic apparatus according to a second embodiment of the present invention;
fig. 6 is a flowchart illustrating a first example procedure of a control method according to a second embodiment of the invention;
fig. 7 is a flowchart illustrating a second exemplary process of a control method according to a second embodiment of the present invention;
fig. 8 is a functional block diagram illustrating a configuration of an electronic apparatus according to a third embodiment of the present invention;
fig. 9 is a flowchart illustrating a procedure of a control method according to a third embodiment of the invention;
fig. 10 is a functional block diagram illustrating a configuration of an electronic apparatus according to a fourth embodiment of the present invention; and
fig. 11 is a flowchart illustrating the procedure of a control method according to a fourth embodiment of the present invention.
Detailed Description
Various preferred embodiments of the present invention will be described below with reference to the accompanying drawings. The following description with reference to the accompanying drawings is provided to assist in understanding the exemplary embodiments of the invention as defined by the claims and their equivalents. It includes various specific details to assist understanding, but they are to be construed as merely illustrative. Accordingly, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Also, in order to make the description clearer and simpler, a detailed description of functions and configurations well known in the art will be omitted.
First, an overview of an electronic apparatus and a control method according to the present general inventive concept will be described with reference to fig. 1 and 2. For example, the electronic device may be a portable electronic device such as a cell phone, a tablet computer, or the like.
As shown in fig. 1, the electronic device 100 includes: a communication agent unit 101, a message analysis unit 102 and a control unit 103.
The communication agent unit 101 monitors an application process of the electronic device, and acquires a first message related to a first process.
The message analysis unit 102 parses the first message, and determines whether the first message has a first attribute. In other words, the message analysis unit 102 parses the first message to determine whether the first message belongs to the message that should be masked.
When the message analysis unit 102 determines that the first message has the first attribute, the control unit 103 processes the first message to prohibit sending the first message to at least a second process. Of course, on the other hand, when the message analysis unit determines that the first message does not have the first attribute, the control unit 103 processes the first message to allow the first message to be sent to at least a second process.
In addition, as shown in fig. 2, the control method applied to the electronic apparatus 100 includes the following steps.
First, in step S201, an application process of the electronic device is monitored, and a first message related to a first process is acquired.
Next, in step S202, the first message is parsed. And, in step S203, it is determined whether the first message has a first attribute. In other words, in step S203, it is determined whether the first message belongs to a message that should be masked.
If the judgment in step S203 is yes, that is: the first message has the first attribute, the process proceeds to step S204. In step S204, the first message is processed to prohibit sending the first message to at least a second process.
On the other hand, if the result of the determination at step S203 is no, that is: the first message does not have the first attribute, the process proceeds to step S205. In step S205, the first message is processed to allow the first message to be sent to at least a second process.
The sending of the first message by the first process to the second process may be considered as a communication between the processes in the electronic device. The mutual communication between the processes includes the calling of different processes of the same application and the calling of the process of one application to the process of another application. That is, the first process and the second process may correspond to the same application, or may correspond to different applications, respectively.
The present general inventive concept is directed to a mechanism for determining and processing messages associated with a process. In the electronic device and the control method according to the present invention, by managing communication between processes, that is, by analyzing the first message to determine whether it has the first attribute to prohibit/allow the first message to be sent to at least the second process, problems caused by communication, such as large application self-start management overhead, more system energy consumption, and the like, can be reduced.
Hereinafter, the electronic device according to the present invention will be described in detail from both the judgment mechanism and the processing mechanism of the process-related message.
(one) judgment mechanism of process-related message
First, a judgment mechanism of a message related to a process will be described. In other words, how to determine whether the first message has the first attribute. Specifically, during the inter-process communication, the sender, the receiver and the message content of the message can be managed.
1. Sender management
The principle of sender management is to determine whether the sender is an application consuming more system resources. If the sender is a process corresponding to the application consuming more system resources, the sent message needs to be intervened.
Fig. 3 shows an electronic device according to a first embodiment of the invention. As shown in fig. 3, the electronic device 300 includes: a communication agent unit 101, a message analysis unit 102, a control unit 103, and a storage unit 301.
The storage unit 301 stores a first application list, in which applications consume a large amount of system resources.
As described above, the communication agent unit 101 monitors the application process of the electronic device and retrieves the first message associated with the first process.
In the electronic device according to the first embodiment of the present invention, the message analysis unit 102 further includes: the sender managing unit 302. The sender managing unit 302 monitors a first application corresponding to a first process that is a sender of the first message. If the first application is included in the first application list, the message analysis unit 102 determines that the first message has the first attribute, otherwise the message analysis unit 102 determines that the first message does not have the first attribute.
When the message analysis unit 102 determines that the first message has the first attribute, the control unit 103 processes the first message to prohibit sending the first message to at least a second process. Of course, on the other hand, when the message analysis unit determines that the first message does not have the first attribute, the control unit 103 processes the first message to allow the first message to be sent to at least a second process.
Fig. 4 shows a control method according to a first embodiment of the present invention. As shown in fig. 4, the control method includes the following steps.
First, in step S401, a first application list is stored, where applications in the first application list are applications that consume more system resources.
Next, in step S402, an application process of the electronic device is monitored, and a first message related to a first process is acquired.
Next, in step S403, the first message is parsed. In the first embodiment, a specific implementation manner of step S403 is to monitor a first application corresponding to a first process that is a sender of the first message.
In step S404, it is determined whether the first message has a first attribute. In other words, in step S404, it is determined whether the first message belongs to a message that should be masked. In the first embodiment, a specific implementation manner of step S404 is to determine whether the first application is included in the first application list.
If the determination in step S404 is yes, that is, the first application is included in the first application list, that is, the first message has the first attribute, the process proceeds to step S405. In step S405, the first message is processed to prohibit sending the first message to at least a second process. On the other hand, if the determination result at step S404 is no, that is, the first application is not included in the first application list, that is, the first message does not have the first attribute, the process proceeds to step S406. In step S406, the first message is processed to allow the first message to be sent to at least a second process.
2. Recipient management
The principle of receiver management is to determine whether the receiver is an application consuming more system resources. If the receiving party is a process corresponding to the application consuming more system resources, the message to be sent to the receiving party needs to be subjected to intervention processing.
Fig. 5 shows an electronic device according to a second embodiment of the invention. As shown in fig. 5, the electronic device 500 includes: communication agent unit 101, message analysis unit 102, control unit 103, and storage unit 501.
The storage unit 501 stores a second application list, where the applications in the second application list are applications that are not beneficial to reducing system resource consumption. The second application list may be the same as, partially the same as, or completely different from the first application list described above.
As described above, the communication agent unit 101 monitors the application process of the electronic device and retrieves the first message associated with the first process.
In the electronic device according to the second embodiment of the present invention, the message analysis unit 102 further includes: the recipient managing unit 502. The receiver managing unit 502 monitors a second application corresponding to a second process that is a receiver of the first message. The message analysis unit 102 determines that the first message has the first attribute if the second application is included in the second application list, otherwise the message analysis unit 102 determines that the first message does not have the first attribute.
In addition, as a more preferred embodiment, the recipient screening may be further performed when the second application is not included in the second application list. Specifically, if the second application is not included in the second application list, the message analysis unit 102 needs to further analyze the second application and determine whether the first message has the first attribute based on the analysis result.
For example, the general purpose of further analysis is: whether the second application is an application that is not important to the user. Specific examples may include: whether the second application is converted from foreground running to background running, whether the second application is not run within a specific time period, and the like. When the second application is converted from foreground to background running, the message analysis unit 102 determines that the first message has the first attribute. When the second application is not running for a certain period of time, the message analysis unit 102 determines that the first message has the first attribute.
Furthermore, in the electronic device according to the second embodiment of the present invention, the message analysis unit 102 may further include: and a receiver filtering unit (not shown in the figure) configured to, when there is more than one application of the receiver of the message, filter the plurality of applications based on the analysis result of the receiver managing unit on the application as the receiver, so as to select a part of the applications as the receiver of the message.
When the message analysis unit 102 determines that the first message has the first attribute, the control unit 103 processes the first message to prohibit sending the first message to at least a second process. Of course, on the other hand, when the message analysis unit determines that the first message does not have the first attribute, the control unit 103 processes the first message to allow the first message to be sent to at least a second process.
Fig. 6 shows a control method according to a second embodiment of the present invention. As shown in fig. 6, the control method includes the following steps.
First, in step S601, a second application list is stored, where the applications in the second application list are applications that are not beneficial to reducing system resource consumption.
Next, in step S602, an application process of the electronic device is monitored, and a first message related to a first process is acquired.
Next, in step S603, the first message is parsed. In the first embodiment, a specific implementation manner of step S603 is to monitor a second application corresponding to a second process that is a recipient of the first message.
In step S604, it is determined whether the first message has a first attribute. In other words, in step S604, it is determined whether the first message belongs to a message that should be masked. In the first embodiment, a specific implementation manner of step S604 is to determine whether the second application is included in the second application list.
If the judgment in step S604 is yes, that is, the second application is included in the second application list, that is, the first message has the first attribute, the process proceeds to step S605. In step S605, the first message is processed to prohibit sending the first message to at least a second process. On the other hand, if the determination result at step S604 is no, that is, the second application is not included in the second application list, that is, the first message does not have the first attribute, the process proceeds to step S606. In step S606, the first message is processed to allow the first message to be sent to at least a second process.
In addition, as a more preferred embodiment, the recipient screening may be further performed when the second application is not included in the second application list. Specifically, as shown in fig. 7, if the determination result at step S604 is no, that is: the second application is not included in the second application list, the process proceeds to step S606'. In step S606', the second application is further analyzed. And, in step S607', it is determined whether the first message has the first attribute based on the analysis result.
The general purpose of further analysis is: whether the second application is an application that is not important to the user. Specific examples may include: whether the second application is converted from foreground running to background running, whether the first application is not run within a specific time period, and the like. When the second application is converted from the foreground to the background operation, in step S607', it is determined that the first message has the first attribute. When the second application is not running for a certain period of time, the message analysis unit 102 determines that the first message has the first attribute at step S607'.
The steps after determining whether the first message has the first attribute in step S607' are the same as those described above, and are not described herein again.
Further, in the control method according to the second embodiment of the present invention, it is more preferable that when there is more than one application of the recipient of the first message, a plurality of applications are screened based on the analysis result of the application as the recipient at step S606' to select a part thereof as the recipient of the message.
3. Message content management
The principle of message content management is to monitor the message content, analyze the message content, and if the message is successfully sent, which may cause other processes to consume more system resources, the message to be sent needs to be intervened.
Fig. 8 shows an electronic device according to a third embodiment of the invention. As shown in fig. 8, the electronic device 800 includes: communication agent unit 101, message analysis unit 102, control unit 103. Wherein the message analysis unit 102 further comprises: a message content processing unit 801, configured to parse the content of the message, and determine whether the first message has the first attribute based on a parsing result.
For example, the type of the message may be determined by parsing the content of the message, e.g. when the message is determined to be a GPS message, in which case the first message may be determined to have the first attribute, since a GPS message may result in automatic start-up of many applications, thereby consuming more resources.
However, while GPS messages may result in automatic start-up of many applications and thus consume more system resources, GPS messages are useful to users in many situations. How to distinguish between useful and useless communication of GPS messages: may be done in connection with recipient management. For example, an application that is the recipient of a message is considered to be a useless communication if it is an application that is not important to the user, and a useful communication if it is an application that is frequently used by the user.
Fig. 9 shows a control method according to a third embodiment of the present invention. As shown in fig. 9, the control method includes the following steps.
First, in step S901, an application process of the electronic device is monitored, and a first message related to a first process is acquired.
Next, in step S902, the first message is parsed. In the third embodiment, a specific implementation manner of step S902 is to parse the content of the first message.
In step S903, it is determined whether the first message has a first attribute. In other words, in step S903, it is determined whether the first message belongs to a message that should be masked. In the third embodiment, step S903 is implemented to determine whether the first message has the first attribute based on the parsing result. For example, the type of the message may be determined by parsing the content of the message, e.g. when the message is determined to be a GPS message, in which case the first message may be determined to have the first attribute, since a GPS message may result in automatic start-up of many applications, thereby consuming more resources.
If the determination result at step S903 is yes, the process proceeds to step S904. In step S904, the first message is processed to prohibit sending the first message to at least a second process. On the other hand, if the determination result at step S903 is no, the process proceeds to step S406. In step S905, the first message is processed to allow the first message to be sent to at least a second process.
In the foregoing, various embodiments of the mechanism for determining messages related to a process according to the present invention have been described in detail with reference to fig. 1 to 9. Here, it is particularly noted that although the contents of sender management, receiver management, and message content management are separately shown and described, respectively, it should be understood by those skilled in the art that this should not be construed as limiting. The various embodiments described above may be combined with each other. That is, in the present invention, the mechanism for determining the message related to the process at least includes one of sender management, receiver management, and message content management, and may include two or all of them.
(II) processing mechanism of process-related messages
In the above summary of the electronic device and the control method according to the general inventive concept, it is mentioned that, when the message analysis unit 102 determines that the first message has the first attribute, the control unit 103 processes the first message to prohibit the first message from being transmitted to at least the second process. Here, the processing of the first message includes the following ways: 1. intercepting; 2. the shielding part receives the object 3, the pseudo-reply.
The above modes will be explained one by one.
1. Interception
In this case, when the message analysis unit 102 determines that the first message has the first attribute, the control unit 103 directly intercepts the first message so that the communication agent unit does not send the first message to any process.
2. Shielded partial reception of objects
As described in the second embodiment above, the recipient management unit may further filter applications that are not in the second application list based on whether the application as the recipient is an application that is unimportant to the user. Or, when the number of recipients of the message is too large or the message content does not specify an explicit recipient but may result in too many recipients, the plurality of applications are screened based on the analysis result of the recipient management unit on the application as the recipient, so as to select a part of the applications as the recipient of the message.
In this case, in the electronic apparatus according to the present invention, the control unit 103 may be configured to control the communication agent unit 101 to transmit the message only to the process corresponding to the screened-out application.
Accordingly, in the control method according to the present invention, only the first message is sent to the process corresponding to the screened application.
3. Pseudo-response
It should be noted that some interprocess communications require a communication response to the sending of the message. For the processed message, a response from the receiver is responded to the sender, so that the normal operation of the sender can be ensured.
However, as described above, when it is determined that the first message has the first attribute, that is, the first message should be masked, the first message is not transmitted to the second process as the receiving side. Since the second process does not receive the first message, it is naturally impossible for the first process to receive a response from the second process as a receiving party. In this case, in order to ensure the normal operation of the sender, a response similar to that from the receiver may be sent to the first process as the sender.
As shown in fig. 10, an electronic apparatus according to a fourth embodiment of the present invention includes: communication agent unit 101, message analysis unit 102, control unit 103, and message pseudo-response unit 1001.
When the first process as a sender requires a response from the second process as a receiver to ensure normal operation and the message analysis unit determines that the first message has the first attribute, the message pseudo response unit 1001 sends an instruction to the communication agent unit 101 to instruct to send a pseudo response to the first process.
As shown in fig. 11, the control method according to the fourth embodiment of the present invention includes the following steps.
First, in step S1101, an application process of the electronic device is monitored, and a first message related to a first process is acquired.
Next, in step S1102, the first message is parsed. And, in step S1103, it is determined whether the first message has the first attribute. In other words, in step S1103, it is determined whether the first message belongs to a message that should be masked.
If the judgment result in the step S1103 is yes, that is: the first message has the first attribute, the process proceeds to step S1104. In step S1104, the first message is processed to prohibit sending the first message to at least a second process. Then, the process proceeds to step S1105. In step S1105, a pseudo response is sent to the first process.
On the other hand, if the determination result at step S1103 is no, that is: the first message does not have the first attribute, the process proceeds to step S1106. In step S1106, the first message is processed to allow the first message to be sent to at least a second process.
Hereinabove, the electronic apparatus and the control method according to the embodiments of the present invention have been described in detail with reference to fig. 1 to 11. In the electronic device and the control method according to the embodiments of the present invention, by managing communication between processes, that is, by analyzing the first message to determine whether the first message has the first attribute to prohibit/allow the first message to be sent to at least the second process, problems caused by communication, such as high application self-start management overhead, more system energy consumption, and the like, may be reduced.
It should be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that the series of processes described above includes not only processes performed in time series in the order described herein, but also processes performed in parallel or individually, rather than in time series.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary hardware platform, and may also be implemented by software entirely. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments of the present invention.
The present invention has been described in detail, and the principle and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An electronic device, comprising:
the communication agent unit is used for monitoring the application process of the electronic equipment and acquiring a first message related to a first process;
the message analysis unit is used for analyzing the first message and judging whether the first message has a first attribute;
the control unit is used for processing the first message to prohibit the first message from being sent to at least a second process when the message analysis unit judges that the first message has the first attribute; and
a storage unit, configured to store a first application list, where applications in the first application list are applications that consume more system resources,
the message analysis unit further includes:
and the sender management unit is used for monitoring a first application corresponding to a first process which is a sender of the first message, and if the first application is included in the first application list, determining that the first message has a first attribute.
2. The electronic device of claim 1, further comprising:
a storage unit, configured to store a second application list, where applications in the second application list are applications that are not beneficial to reducing system resource consumption,
the message analysis unit further includes:
a receiving side management unit, configured to monitor a second application corresponding to a second process that is a receiving side of the first message, and determine that the first message has a first attribute if the second application is included in the second application list; if the second application is not included in the second application list, the second application is further analyzed, and it is determined whether the first message has the first attribute based on a result of the analysis.
3. The electronic device of claim 1, wherein the message analysis unit further comprises:
and the message content processing unit is used for analyzing the content of the message and determining whether the first message has the first attribute based on the analysis result.
4. The electronic device of claim 1, further comprising:
and the message pseudo-response unit is used for sending an instruction to the communication agent unit to indicate that a pseudo-response is sent to the first process when the first process as the sender needs a response from the second process as the receiver to ensure normal operation and the message analysis unit determines that the first message has the first attribute.
5. A control method is applied to an electronic device and comprises the following steps:
monitoring an application process of the electronic equipment, and acquiring a first message related to a first process;
analyzing the first message, and judging whether the first message has a first attribute;
if so, processing the first message to inhibit sending the first message to at least a second process,
before monitoring the application process of the electronic device, further comprising:
storing a first application list, wherein the applications in the first application list are applications consuming more system resources,
the step of determining whether the first message has a first attribute further comprises:
monitoring a first application corresponding to a first process which is a sender of the first message, and if the first application is included in the application list, determining that the first message has a first attribute.
6. The control method of claim 5, wherein prior to monitoring the application process of the electronic device, further comprising:
storing a second application list, wherein the applications in the second application list are applications which are not beneficial to reducing system resource consumption,
the step of determining whether the first message has a first attribute further comprises:
monitoring a second application corresponding to a second process as a receiver of the first message, and if the second application is included in the application list, determining that the first message has a first attribute; if the second application is not included in the application list, the second application is further analyzed, and it is determined whether the first message has the first attribute based on a result of the analysis.
7. The control method of claim 5, wherein the step of determining whether the first message has a first attribute further comprises:
and analyzing the content of the first message, and determining whether the first message has a first attribute based on the analysis result.
8. The control method according to claim 5, further comprising:
when the first process as a sender needs a response from a second process as a receiver to ensure normal operation, but determines that the first message has the first attribute, a pseudo response is sent to the first process.
CN201710197908.XA 2017-03-29 2017-03-29 Electronic apparatus and control method Active CN106951061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710197908.XA CN106951061B (en) 2017-03-29 2017-03-29 Electronic apparatus and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710197908.XA CN106951061B (en) 2017-03-29 2017-03-29 Electronic apparatus and control method

Publications (2)

Publication Number Publication Date
CN106951061A CN106951061A (en) 2017-07-14
CN106951061B true CN106951061B (en) 2020-05-26

Family

ID=59475476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710197908.XA Active CN106951061B (en) 2017-03-29 2017-03-29 Electronic apparatus and control method

Country Status (1)

Country Link
CN (1) CN106951061B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719914A (en) * 2005-07-15 2006-01-11 胡波 Method and system for receiving, transmitting and processing electronic message in mobile network
CN102520944A (en) * 2011-12-06 2012-06-27 北京航空航天大学 Method for realizing virtualization of Windows application program
CN103034542A (en) * 2011-09-30 2013-04-10 联想(北京)有限公司 Message handling method and device and electronic equipment
CN103116722A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Processing method, processing device and processing system of notification board information
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN105956461A (en) * 2016-05-03 2016-09-21 北京金山安全软件有限公司 Method and terminal for intercepting driver loading

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9317702B2 (en) * 2011-11-29 2016-04-19 Sony Corporation System and method for providing secure inter-process communications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719914A (en) * 2005-07-15 2006-01-11 胡波 Method and system for receiving, transmitting and processing electronic message in mobile network
CN103034542A (en) * 2011-09-30 2013-04-10 联想(北京)有限公司 Message handling method and device and electronic equipment
CN102520944A (en) * 2011-12-06 2012-06-27 北京航空航天大学 Method for realizing virtualization of Windows application program
CN103152374A (en) * 2011-12-07 2013-06-12 华为终端有限公司 Method and device for learning terminal online state
CN103116722A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Processing method, processing device and processing system of notification board information
CN105956461A (en) * 2016-05-03 2016-09-21 北京金山安全软件有限公司 Method and terminal for intercepting driver loading

Also Published As

Publication number Publication date
CN106951061A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US20180270182A1 (en) Message notification method, system, and device for a communication account
CN110351283B (en) Data transmission method, device, equipment and storage medium
EP3396905B1 (en) Method and device for securely sending a message
CN105429813A (en) Monitoring method and client for docker
CN101854371A (en) Method and device for calling and processing JavaScript object
CN111246406A (en) Short message sending method, system, storage medium and terminal equipment
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
CN103701867A (en) Method, system and central server for processing call requests
CN112313627A (en) Mapping mechanism of events to serverless function workflow instances
CN108366098B (en) Data interaction method and device for network nodes
CN116055524A (en) Interaction method, processor and device for Internet platform and Internet of things equipment
CN106951061B (en) Electronic apparatus and control method
CN106464666A (en) Method and device for associating user with group
CN105099802A (en) Traffic identification method, terminal, and network element equipment
US20220329529A1 (en) 5g filters for virtual network functions
CN114980064B (en) Information association method, device, electronic equipment and storage medium
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN113612680B (en) Suppressing indication of incoming communications in a user interface
CN114979256A (en) Message pushing method and device, electronic equipment and computer readable medium
CN114449523A (en) Flow filtering method, device, equipment and medium for satellite measurement and control system
CN104346228A (en) Application program sharing method and terminal
CN110691002B (en) Interrupt detection method and device
CN107992363B (en) Data processing method and device
CN113760482A (en) Task processing method, device and system
CN110659139A (en) Remote procedure calling method, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant