CN112035249A - Application program network proportion adjusting method and device and storage medium - Google Patents

Application program network proportion adjusting method and device and storage medium Download PDF

Info

Publication number
CN112035249A
CN112035249A CN202010861426.1A CN202010861426A CN112035249A CN 112035249 A CN112035249 A CN 112035249A CN 202010861426 A CN202010861426 A CN 202010861426A CN 112035249 A CN112035249 A CN 112035249A
Authority
CN
China
Prior art keywords
application program
network
target application
adjusting
occupancy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010861426.1A
Other languages
Chinese (zh)
Other versions
CN112035249B (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.)
TCL Overseas Electronics Huizhou Ltd
Original Assignee
TCL Overseas Electronics Huizhou 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 TCL Overseas Electronics Huizhou Ltd filed Critical TCL Overseas Electronics Huizhou Ltd
Priority to CN202010861426.1A priority Critical patent/CN112035249B/en
Publication of CN112035249A publication Critical patent/CN112035249A/en
Application granted granted Critical
Publication of CN112035249B publication Critical patent/CN112035249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an application program network proportion adjusting method, which detects the currently running application program; acquiring the activity state of each running application program, and determining a corresponding target application program according to the activity state; and adjusting the network proportion of the target application program according to a preset strategy. The invention also discloses an application program network proportion adjusting device and a storage medium. The invention aims to improve the running fluency of the application program running in the foreground by adjusting the network occupation ratio of the target application program.

Description

Application program network proportion adjusting method and device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting an application program network occupation ratio, and a storage medium.
Background
With the rapid development of communication technology, users develop various applications when pursuing the demand of convenient service, so that multiple applications can be installed in common televisions and mobile phones, and the applications running at the front end are blocked due to the fact that the multiple applications can run in the background while the mobile phones or televisions run in the background and the network resources occupied by the running of the background applications are continuously increased.
Disclosure of Invention
The invention mainly aims to provide an application program network occupation ratio adjusting method, device and storage medium, and aims to solve the problem that a front-end application program runs unsmoothly.
In order to achieve the above object, the present invention provides a method for adjusting an application program network occupation ratio, wherein the method comprises:
detecting a currently running application program;
acquiring the activity state of each running application program, and determining a corresponding target application program according to the activity state;
and adjusting the network proportion of the target application program according to a preset strategy.
Optionally, the preset policy includes a first adjustment policy, and the step of adjusting the network proportion of the target application according to the preset policy includes:
and when the active state of the target application program is foreground operation, adjusting the network occupation ratio of the target application program according to the first adjusting strategy.
Optionally, the preset policy further includes a second adjustment policy, and after the step of adjusting the network proportion of the target application according to the first adjustment policy, the method further includes:
acquiring a network flow occupation value of the target application program;
judging whether the fluctuation of the network traffic occupancy value of the target application program conforms to a preset fluctuation rule or not according to the fluctuation condition of the acquired network traffic occupancy value of the target application program;
and if the fluctuation of the network traffic occupancy value of the target application program does not accord with a preset fluctuation rule, adjusting the network occupancy of the target application program according to the second adjusting strategy.
Optionally, after the step of determining whether the fluctuation of the network traffic occupancy value of the target application program conforms to a preset fluctuation rule, the method further includes:
if the fluctuation of the network flow occupation value of the target application program accords with a preset fluctuation rule, returning to the step: and adjusting the network proportion of the target application program according to the first adjusting strategy.
Optionally, the step of adjusting the network proportion of the target application according to the first adjustment policy includes:
and reducing the network occupation ratio of the application program running in the background to a preset percentage, wherein the application program running in the background is an application program except the target application program running in the foreground.
Optionally, the step of adjusting the network proportion of the target application according to the second adjustment policy includes:
and setting the network occupation ratio of other application programs to be 0 or closing the other application programs, wherein the other application programs are the application programs which are currently operated except the target application program.
Optionally, before the step of detecting the currently running application, the method includes:
and after the application program is started, allocating a temporary port number to the application program according to a network communication protocol TCP/IP to use the temporary port number so as to enable the target application program to perform network access according to the temporary port number.
Optionally, after the step of adjusting the network proportion of the target application according to the preset policy, the method further includes:
and when the target application program is detected to exit, clearing the temporary port number allocated to the target application program according to the TCP/IP network communication protocol for using, and storing and recording the information of the preset strategy executed by the target application program.
Optionally, after the step of adjusting the network proportion of the target application according to the preset policy, the method further includes:
when the target application program is operated in the foreground again, the stored filing information of the target application program is extracted, the stored preset strategy for executing the application program is obtained, and the network occupation ratio of the target application program is adjusted according to the stored preset strategy.
In addition, to achieve the above object, the present invention further provides an apparatus for adjusting network occupation ratio of an application, the apparatus comprising: a memory, a processor and an application network proportion adjusting program stored on the memory and operable on the processor, the application network proportion adjusting program when executed by the processor implementing the steps of the application network proportion adjusting program method as described above.
In order to achieve the above object, the present invention further provides a storage medium, wherein an application network ratio adjusting program is stored in the storage medium, and the application network ratio adjusting program implements the steps of the application network ratio adjusting method when executed by a processor.
The embodiment of the invention provides an application program network occupation ratio adjusting method, which comprises the steps of detecting a currently running application program, further obtaining an active state of the running application program, determining a corresponding target application program according to the active state, and further realizing a corresponding preset strategy according to the active state of the target application program to adjust the network occupation ratio of the target application program; the network occupation ratio of the target application program is adjusted, the network occupation ratio of the application program running in the foreground is improved, the running smoothness of the foreground application program is improved, and therefore the condition that the user experience is poor due to the fact that the foreground application program runs in a stuck mode is avoided.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for adjusting the network occupation ratio of an application according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart illustrating the step of adjusting the network proportion of the target application according to a predetermined policy in FIG. 2;
fig. 4 is a detailed flowchart of the step of adjusting the network proportion of the target application according to the first adjustment policy/the second adjustment policy in fig. 3.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
in the prior art, under the condition that the network speed received by the mobile terminal is constant, the network resources occupied by the running of the application program in the background are continuously increased, so that the running of the application program in the front end is blocked.
The invention provides a solution, which comprises the steps of detecting a currently running application program, further acquiring the activity state of the running application program, determining a corresponding target application program according to the activity state, and further realizing the corresponding adjustment of the network occupation ratio of the target application program according to a preset strategy according to the activity state of the target application program; the network occupation ratio of the target application program is adjusted, the network occupation ratio of the application program running in the foreground is improved, the running smoothness of the foreground application program is improved, and therefore the condition that the user experience is poor due to the fact that the foreground application program runs in a stuck mode is avoided.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the application network proportion adjusting device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include an infrared receiving module for receiving a control command triggered by a user through a remote controller, and the optional user interface 1003 may further include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the application network proportion adjustment means shown in fig. 1 does not constitute a limitation of the application network proportion adjustment means, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an application network proportion adjustment program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the application network proportion adjustment program stored in the memory 1005 and perform the following operations:
detecting a currently running application program;
acquiring the activity state of each running application program, and determining a corresponding target application program according to the activity state;
and adjusting the network proportion of the target application program according to a preset strategy.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
and when the active state of the target application program is foreground operation, adjusting the network occupation ratio of the target application program according to the first adjusting strategy.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
acquiring a network flow occupation value of the target application program;
judging whether the change value of the network flow occupancy value of the target application program is larger than a preset value or not according to the fluctuation condition of the acquired network flow occupancy value of the target application program;
and if the change value of the network traffic occupancy value of the target application program is larger than a preset value, adjusting the network occupancy of the target application program according to the second adjusting strategy.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
if the change value of the network flow occupancy value of the target application program is smaller than or equal to the preset value, returning to the step: and adjusting the network proportion of the target application program according to the first adjusting strategy.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
and reducing the network occupation ratio of the application program running in the background to a preset percentage, wherein the application program running in the background is an application program except the target application program running in the foreground.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
and setting the network occupation ratio of other application programs to be 0 or closing the other application programs, wherein the other application programs are the application programs which are currently operated except the target application program.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
and after the application program is started, allocating a temporary port number to the application program according to a network communication protocol TCP/IP to use the temporary port number so as to enable the target application program to perform network access according to the temporary port number.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
and when the target application program is detected to exit, clearing the temporary port number allocated to the target application program according to the TCP/IP network communication protocol for using, and storing and recording the information of the preset strategy executed by the target application program.
Further, the processor 1001 may call the application network proportion adjustment program stored in the memory 1005, and also perform the following operations:
when the target application program is operated in the foreground again, the recorded information stored in the target application program is extracted, the stored preset strategy for executing the application program is obtained, and the network occupation ratio of the target application program is adjusted according to the stored preset strategy.
The specific embodiment of the device for adjusting the network occupation ratio of the application program of the present invention is basically the same as the following embodiments of the method for adjusting the network occupation ratio of the application program, and will not be described herein again.
Referring to fig. 2, a first embodiment of the method for adjusting the network occupation ratio of an application program according to the present invention provides a schematic diagram of a method for adjusting the network occupation ratio of an application program, where the method includes:
step S100, detecting a currently running application program;
in this embodiment, after the device for adjusting the network occupancy of the application program is turned on, the device establishes an effective network connection, and when an operating system in the device receives a network resource application request sent by the application program, the operating system allocates a temporary port number to the application program according to a network communication protocol TCP/IP, and the application program realizes connection with the server through the allocated temporary port number, thereby realizing network access by the application program according to the temporary port number. The same application program can have more than two temporary port numbers which are not repeated, so that one application program is connected with a plurality of temporary port numbers, and the network access rate of the application program is enhanced.
Step S200, obtaining the activity state of each running application program, and determining the corresponding target application program according to the activity state.
In this embodiment, the active state of the application program is obtained by obtaining the active state of the application program, that is, by monitoring the active state of the application program, where the active state includes foreground operation and background operation, and the corresponding target application program is determined according to the active state.
And step S300, adjusting the network occupation ratio of the target application program according to a preset strategy.
In this embodiment, according to the activity state of the running target application program obtained in step S200, the network occupation ratio of the target application program is adjusted by respectively using corresponding preset policies according to the activity state to which the target application program belongs.
The embodiment provides an application program network occupation ratio adjusting method, which includes the steps of monitoring a currently running application program, further obtaining an active state of the currently running application program, determining a corresponding target application program according to the active state, and further adjusting the network occupation ratio of the target application program according to a preset strategy corresponding to the active state to which the target application program belongs; the network occupation ratio of the target application program is adjusted, the network occupation ratio of the application program running in the foreground is improved, the running smoothness of the foreground application program is improved, and therefore the condition that the user experience is poor due to the fact that the foreground application program runs in a stuck mode is avoided.
Further, referring to fig. 3, the present invention provides a schematic diagram of a detailed flow of the step of adjusting the network proportion of the target application according to a preset policy, and based on the embodiment shown in fig. 2, the step of adjusting the network proportion of the target application according to the preset policy includes:
and step S310, when the active state of the target application program is foreground operation, adjusting the network occupation ratio of the target application program according to the first adjusting strategy.
In this embodiment, according to the target application obtained in step S200, if the active state of the target application is foreground operation, the network occupancy of the target application is adjusted according to the first adjustment policy, specifically, the network occupancy of the target application is increased according to the first adjustment policy, in other words, the network occupancy of the application running in the background is decreased according to the preset first adjustment policy, so that the network occupancy required for reserving sufficient network access for the application running in the foreground is timely achieved, and the running efficiency of the foreground application is further enhanced.
In this embodiment, a method for adjusting a network occupancy of an application program is provided, where when an active state of a target application program is foreground operation, that is, when the application program is foreground application, the network occupancy of the target application program may be adjusted according to a first adjustment policy at this time; the network occupation ratio of the target application program running in the foreground is adjusted, the network occupation ratio of the application program running in the foreground is improved, the running smoothness of the foreground application program is improved, and therefore the condition that the user experience is poor due to the fact that the foreground application program runs in a stuck mode is avoided.
Further, referring to fig. 4, a schematic diagram of a detailed flow of the step of adjusting the network proportion of the target application according to a first adjustment policy is provided, and based on the embodiment shown in fig. 3, the step of adjusting the network proportion of the target application according to the first adjustment policy includes:
step S311, reducing the network duty of the application program running in the background to a preset percentage, wherein the application program running in the background is an application program other than the target application program running in the foreground.
In this embodiment, when the target application is a foreground application, in order to ensure smooth operation of the foreground application, specifically, by reducing the network occupation ratio of the application running in the background to a preset percentage, the application running in the background is an application other than the target application running in the foreground, and thus the network occupation ratio of the target application running in the foreground is improved. The specifically adjusted reduced application network occupancy value satisfies the following calculation formula:
BWreduce=(BW1+BW2+BW3+...BWm)/(nGeneral assembly-nTarget)*(1-P1);
BW1, BW2, BW 3.. BWm, network occupancy values representing m background-running applications running in the system;
BWreduceIs the background application program to make preset adjustmentsA later reduced network occupancy value;
ngeneral assemblyIs the sum of the number of port numbers occupied by the currently running application in the system;
ntargetThe number of temporary port numbers (n ≧ 2) allocated by the system to the target application running in the foreground according to TCP/IP;
the P1 preset percentage is the percentage preset for executing the first adjustment strategy (0< P1< 1).
This embodiment has proposed and has adjusted according to first regulation strategy the refinement scheme of the network occupation ratio of target application, through the number of the occupied temporary port according to the application of proscenium operation, the total port number of the application of current operation combines preset percentage in the system, thereby calculate specific reduced network occupation value, realized reducing the network traffic occupation value of other applications except the application of proscenium operation, the network occupation ratio of the application of having promoted the proscenium operation, the operation smoothness of proscenium application has been improved, and then the not good condition of user experience of user that has avoided proscenium application operation card to pause and bring.
Further, referring to fig. 3, after the step of adjusting the network proportion of the target application according to the first adjustment policy, the method includes:
step S320, acquiring a network flow occupation value of the target application program;
step S330, determining that the change value of the network traffic occupancy value of the target application program is greater than a preset value according to the fluctuation condition of the acquired network traffic occupancy value of the target application program.
In this embodiment, after the target application is adjusted by the first adjustment policy, the network traffic occupancy of the target application may fluctuate in the operation process, and therefore, in order to achieve the purpose of smooth operation of the adjustment target application, it is further necessary to obtain the fluctuation of the network traffic occupancy of the target application, the fluctuation of the average value of the network traffic of the target application in the threshold time may be compared between two adjacent threshold times by setting the average value of the network traffic of the target application in the threshold time, and further by determining the change between the average value of the network traffic obtained in the later threshold time and the average value of the network traffic obtained in the later threshold time, and further by setting a preset value as a determination for performing subsequent operations, for example, the average value of the traffic obtained in the later threshold time is greater than the average value of the traffic obtained in the earlier threshold time, if the preset value is set to exceed 50%, the change value of the target application program under the condition is larger than the preset value, and the situation can be regarded as the situation that the network fluctuation is large at the moment, and the network occupation ratio of the running application programs except the target application program is reduced according to the second regulation strategy; on the contrary, the average value of the traffic obtained at the later threshold time is larger than the average value of the traffic obtained at the previous threshold time and does not exceed 50% upwards, and then the network occupancy fluctuation of the application program is considered not to be very large, namely the network access of the target application program is not influenced; or the average value of the flow acquired in the later threshold time is less than or equal to the average value of the flow acquired in the previous threshold time, the network flow of the target application program does not need too much network occupation ratio, and the preset strategy is not changed at the moment. In addition, the comparison of the average value of the network traffic of the target application within the threshold time excludes the case where the initial connection of the target application is unstable, for example, in a certain time period when the application applies for a resource and obtains a temporary port number, no consideration is taken into consideration, and no consideration is taken into consideration in a 3-second time period when the port application is generally set.
Step S340, adjusting the network duty of the target application according to the second adjustment policy.
In this embodiment, according to the comparison result obtained in step S330, if the change value of the network traffic occupancy of the target application is greater than the preset value, that is, the network traffic average obtained at the later threshold time is greater than the network traffic average obtained at the previous threshold time and exceeds a certain preset value, the network occupancy of the running application other than the target application is reduced according to the second adjustment policy. For example, setting the network traffic average detection period of the target application to 3 seconds, that is, detecting the average value of the network traffic required by the running application within 3 seconds, and further calculating to compare the average value of the network traffic within the following 3 seconds with the previous network traffic average value, wherein the traffic average value obtained at the following threshold time is greater than the traffic average value obtained at the preceding threshold time and exceeds 50% upwards, when the network occupancy of the running applications other than the target application is reduced according to the second adjustment strategy.
After the target application program is adjusted through the first adjustment strategy, aiming at the situation that the network traffic occupancy of the target application program is large in fluctuation and tends to increase gradually, and the change value of the network traffic occupancy of the target application program is larger than the preset value, the network traffic occupancy of the target application program is adjusted according to the second adjustment strategy, so that the network traffic occupancy of the application program running in the foreground is improved, the running smoothness of the application program in the foreground is improved, and the situation that the user experience is poor due to the fact that the application program in the foreground is running in a stuck state is avoided.
Further, according to the ratio result obtained in step S330, if the network fluctuation condition of the target application is smaller than or equal to the preset value, that is, the network traffic average value obtained at the later threshold time is smaller than or equal to the network traffic average value obtained at the previous threshold time or the network traffic average value obtained at the later threshold time is greater than the network traffic average value obtained at the previous threshold time but does not exceed the preset value, it indicates that the network occupancy fluctuation of the target application is not large, and at this time, the network occupancy of the target application may be continuously adjusted according to the first adjustment policy without changing the adjustment policy adopted by the target application.
Further, referring to fig. 4, a schematic diagram of a detailed flow of the step of adjusting the network proportion of the target application according to a second adjustment policy is provided, where the step of adjusting the network proportion of the target application according to the second adjustment policy includes:
step S341, setting the network occupation ratio of other applications to 0 or closing the other applications, where the other applications are currently running applications other than the target application.
In this embodiment, the network occupation ratio of other applications is set to 0, that is, all currently running applications except the target application stop using the network, that is, no network resource is allocated; and closing other application programs, namely directly performing exit processing on the other application programs, wherein the other application programs are the currently running application programs except the target application program, so that the network resources exclusively connected with the target application program are realized.
The embodiment provides a refinement scheme for adjusting the network occupation ratio of the target application program according to a second adjustment strategy, and after the target application program is adjusted by the first adjustment strategy, when the network traffic occupation ratio of the target application program fluctuates greatly, the network occupation ratio of the currently running application program except the target application program can be set to 0 or other application programs can be closed, so that the target application program monopolizes network resources, the running smoothness of the target application program is improved, and the condition of poor user experience caused by the fact that the foreground application program runs in a stuck state is avoided.
Further, for the target application program running in the foreground, if the network occupancy fluctuation of the application program is large, that is, the network traffic average value obtained at the later threshold time is larger than the network traffic average value obtained at the earlier threshold time and exceeds a certain preset value, at this time, the network occupancy of the application program running in the background may be preferentially set to 0 or the application program running in the background may be closed according to the second adjustment policy.
Further, when the target application program is monitored to exit, the system timely clears the temporary port number allocated to the target application program according to the TCP/IP network communication protocol, and records and stores the target application program.
Further, when the target application program is operated in the foreground again, the recorded information stored by the target application program is extracted, the stored preset strategy for executing the application program is obtained, and the network occupation ratio of the target application program is adjusted according to the stored preset strategy.
The specific embodiment of the storage medium of the present invention is basically the same as the embodiments of the method for adjusting the network occupation ratio of the application program, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a tablet computer, a television, or an application network duty ratio adjusting device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. An application program network occupation ratio adjusting method is characterized by comprising the following steps:
detecting a currently running application program;
acquiring the activity state of each running application program, and determining a corresponding target application program according to the activity state;
and adjusting the network proportion of the target application program according to a preset strategy.
2. The method for adjusting network occupancy of an application according to claim 1, wherein the preset policy includes a first adjustment policy, and the step of adjusting the network occupancy of the target application according to the preset policy includes:
and when the active state of the target application program is foreground operation, adjusting the network occupation ratio of the target application program according to the first adjusting strategy.
3. The method for adjusting network occupancy of an application as claimed in claim 2, wherein the preset policy further comprises a second adjustment policy, and wherein the step of adjusting the network occupancy of the target application according to the first adjustment policy further comprises, after the step of adjusting the network occupancy of the target application:
acquiring a network flow occupation value of the target application program;
judging whether the change value of the network flow occupancy value of the target application program is larger than a preset value or not according to the fluctuation condition of the acquired network flow occupancy value of the target application program;
and if the change value of the network traffic occupancy value of the target application program is larger than a preset value, adjusting the network occupancy of the target application program according to the second adjusting strategy.
4. The method for adjusting network occupancy of an application program according to claim 3, wherein after the step of determining whether the change value of the network traffic occupancy of the target application program is greater than a preset value, the method further comprises:
if the change value of the network flow occupancy value of the target application program is smaller than or equal to the preset value, returning to the step: and adjusting the network proportion of the target application program according to the first adjusting strategy.
5. The application network proportion adjustment method of claim 2, wherein the step of adjusting the network proportion of the target application according to the first adjustment policy comprises:
and reducing the network occupation ratio of the application program running in the background to a preset percentage, wherein the application program running in the background is an application program except the target application program running in the foreground.
6. The application network proportion adjustment method of claim 3, the step of adjusting the network proportion of the target application according to the second adjustment policy comprising:
and setting the network occupation ratio of other application programs to be 0 or closing the other application programs, wherein the other application programs are the application programs which are currently operated except the target application program.
7. The application network proportion adjustment method of claim 1, wherein the step of detecting the currently running application is preceded by:
and after the application program is started, allocating a temporary port number to the application program according to a network communication protocol TCP/IP to use the temporary port number so as to enable the target application program to perform network access according to the temporary port number.
8. The method for adjusting network occupancy of an application program according to claims 1 to 7, wherein after the step of adjusting the network occupancy of the target application program according to a preset policy, the method further comprises:
and when the target application program is detected to exit, clearing the temporary port number allocated to the target application program according to the TCP/IP network communication protocol for using, and storing and recording the information of the preset strategy executed by the target application program.
9. The method for adjusting network occupancy of an application program according to claim 8, wherein after the step of adjusting the network occupancy of the target application program according to a preset policy, the method further comprises:
when the target application program is operated in the foreground again, the recorded information stored in the target application program is extracted, the stored preset strategy for executing the application program is obtained, and the network occupation ratio of the target application program is adjusted according to the stored preset strategy.
10. An application network share adjusting apparatus, comprising:
memory, processor and an application network proportion adjusting program stored on the memory and operable on the processor, which when executed by the processor implements the steps of the application network proportion adjusting program method according to any one of claims 1 to 9.
11. A storage medium having stored thereon an application network proportion adjustment program, the application network proportion adjustment program when executed by a processor implementing the steps of the application network proportion adjustment method according to any one of claims 1 to 9.
CN202010861426.1A 2020-08-24 2020-08-24 Application program network duty ratio adjusting method, device and storage medium Active CN112035249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010861426.1A CN112035249B (en) 2020-08-24 2020-08-24 Application program network duty ratio adjusting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010861426.1A CN112035249B (en) 2020-08-24 2020-08-24 Application program network duty ratio adjusting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112035249A true CN112035249A (en) 2020-12-04
CN112035249B CN112035249B (en) 2023-06-13

Family

ID=73580823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010861426.1A Active CN112035249B (en) 2020-08-24 2020-08-24 Application program network duty ratio adjusting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112035249B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671672A (en) * 2020-12-16 2021-04-16 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN112905269A (en) * 2021-02-09 2021-06-04 Oppo广东移动通信有限公司 Network access method, device, terminal and storage medium of application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270696A (en) * 2018-03-23 2018-07-10 努比亚技术有限公司 Internet wide band distribution, mobile terminal and computer storage media
CN108334345A (en) * 2017-08-14 2018-07-27 广东欧珀移动通信有限公司 Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN110187753A (en) * 2019-05-27 2019-08-30 Oppo广东移动通信有限公司 Application control method, device, terminal and computer readable storage medium
CN110493828A (en) * 2019-08-05 2019-11-22 深圳传音控股股份有限公司 A kind of internet wide band distribution, terminal and computer storage medium
CN111400037A (en) * 2020-03-09 2020-07-10 Oppo广东移动通信有限公司 Memory management method and device, computer storage medium and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334345A (en) * 2017-08-14 2018-07-27 广东欧珀移动通信有限公司 Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN108270696A (en) * 2018-03-23 2018-07-10 努比亚技术有限公司 Internet wide band distribution, mobile terminal and computer storage media
CN110187753A (en) * 2019-05-27 2019-08-30 Oppo广东移动通信有限公司 Application control method, device, terminal and computer readable storage medium
CN110493828A (en) * 2019-08-05 2019-11-22 深圳传音控股股份有限公司 A kind of internet wide band distribution, terminal and computer storage medium
CN111400037A (en) * 2020-03-09 2020-07-10 Oppo广东移动通信有限公司 Memory management method and device, computer storage medium and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671672A (en) * 2020-12-16 2021-04-16 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN112671672B (en) * 2020-12-16 2023-12-08 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN112905269A (en) * 2021-02-09 2021-06-04 Oppo广东移动通信有限公司 Network access method, device, terminal and storage medium of application program

Also Published As

Publication number Publication date
CN112035249B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
JP6457447B2 (en) Data center network traffic scheduling method and apparatus
US8949846B2 (en) Time-value curves to provide dynamic QoS for time sensitive file transfers
JP4174052B2 (en) Flow control in network devices
CN110187753B (en) Application program control method, device, terminal and computer readable storage medium
US7929436B2 (en) Network communication control methods and systems
CN112422441B (en) Congestion control method and system based on QUIC transmission protocol
CN112035249A (en) Application program network proportion adjusting method and device and storage medium
US20030084144A1 (en) Network bandwidth optimization method and system
CN113364697A (en) Flow control method, device, equipment and computer readable storage medium
EP3688938B1 (en) Predictive scheduler
CN111291252B (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
WO2017008576A1 (en) Method and apparatus for adjusting quality of service policy of network
CN105763476A (en) Method and apparatus for customizing data business service strategies
CN111078386A (en) Control method and control device of distributed scheduling system
CN115268616A (en) Frequency control method and device for memory, electronic device and storage medium
CN112491566B (en) Resource management method, resource management system, and computer-readable storage medium
EP2385726B1 (en) Apparatus and method for controlling amount of concurrent calls
CN107786371A (en) A kind of accelerated method of data, device and storage medium
US8495216B2 (en) Communication control system, communication control method and computer-readable storage medium
CN115175245A (en) Method, device and equipment for adjusting data throughput and storage medium
CN114518932A (en) Method, system, computing device and storage medium for scheduling function service
CN115118782A (en) Data control method and device, electronic equipment and computer readable storage medium
CN107105015A (en) The shunt method and device of a kind of data flow
CN103458471A (en) Service quality control method and network device
CN107291530B (en) Data processing method and device

Legal Events

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

Address after: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. 19 district

Applicant after: Maojia Technology (Guangdong) Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. 19 district

Applicant before: TCL OVERSEAS ELECTRONICS (HUIZHOU) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant