CN115599545A - Application program running device and method - Google Patents

Application program running device and method Download PDF

Info

Publication number
CN115599545A
CN115599545A CN202211260907.2A CN202211260907A CN115599545A CN 115599545 A CN115599545 A CN 115599545A CN 202211260907 A CN202211260907 A CN 202211260907A CN 115599545 A CN115599545 A CN 115599545A
Authority
CN
China
Prior art keywords
application program
target application
processor
level
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211260907.2A
Other languages
Chinese (zh)
Inventor
杨孙运
余在润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd, Haining Eswin IC Design Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202211260907.2A priority Critical patent/CN115599545A/en
Publication of CN115599545A publication Critical patent/CN115599545A/en
Pending legal-status Critical Current

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
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an application program running device and method. The method comprises the following steps: determining the current mode of the intelligent terminal, wherein different modes are used for distinguishing the operation level of the same application program; determining the operation level corresponding to each target application program in the mode, wherein the target application program is an opened application program; and adjusting the operation attribute of the target application program according to the operation level, and controlling the operation of the target application program according to the adjusted operation attribute. The application program used by the user can be responded in time, the waiting time of the user is shortened, and the operation experience of the user in the current mode is improved.

Description

Application program running device and method
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an application running apparatus and method.
Background
With the development of science and technology, more and more applications can be installed in the intelligent terminal, and based on different application services provided by a large number of applications, a user can use the intelligent terminal to perform various activities. For example, using smart tv to watch movies, news, or karaoke etc. activities.
Currently, in practical use, based on the diversity requirement of users, the operations of users on the intelligent terminal are very frequent, and many application programs are opened as time goes by, wherein due to the use habits of users, the users are not closed although the operations are finished. These applications that are not closed can still run according to their task needs, e.g., the instant messaging application runs in the background to receive instant messaging messages.
However, in the face of a large number of started applications existing on the smart terminal, the processing resources of the processor are occupied, and since the System On Chip (SOC) performance of the smart terminal is limited, if a user wants to use one application at present, a situation that the response is not timely is likely to occur, and if similar situations are met, the user can only wait, which greatly reduces the operation experience of the user.
Disclosure of Invention
In view of this, the application running apparatus and method provided by the present application can enable an application being used by a user to be responded in time, shorten the waiting time of the user, and improve the operation experience of the user in the current mode.
In order to achieve the above purpose, the present application mainly provides the following technical solutions:
a first aspect of the present application provides an application running apparatus, including:
the intelligent terminal comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining the current mode of the intelligent terminal, and different modes are used for distinguishing the operation level of the same application program;
a second determining unit, configured to determine an operation level corresponding to each target application in the mode, where the target application is an opened application;
and the adjusting unit is used for adjusting the running attribute of the target application program according to the running level and controlling the running of the target application program according to the adjusted running attribute.
In some modified embodiments of the first aspect of the present application, the second determining unit includes:
the acquisition module is used for acquiring a plurality of lists corresponding to the modes, wherein different lists correspond to different operation levels;
and the detection module is used for detecting the target application program according to the plurality of the nametags to obtain the running level corresponding to the target application program.
In some modified embodiments of the first aspect of the present application, the plurality of lists include a first list, a second list, and a third list, and the corresponding operation levels in turn are a first level, a second level, and a third level, where the detection module is specifically configured to:
detecting the target application program according to the third list, the first list and the second list in sequence;
when the target application program is in a third list, determining the running level of the target application program to be a third level;
when the target application program is in the first list, determining the operation level of the target application program as a first level;
when the target application program is in the second list, determining the operation level of the target application program to be a second level;
wherein the operation priority levels of the first level, the second level and the third level are sequentially reduced.
In some modified embodiments of the first aspect of the present application, the adjusting unit includes:
the first running module is used for selecting a first processor from a plurality of processors with different performances and controlling the first processor to run the target application program when the running level is a first level, wherein the performance of the first processor is higher than that of the processor running the target application program before adjustment;
a second operation module, configured to select a second processor from the multiple processors with different performances and control the second processor to operate the target application program when the operation level is a second level, where the performance of the second processor is lower than that of the processor that operates the target application program before the adjustment;
and the termination module is used for terminating the running of the target application program when the running level is the third level.
In some variations of the first aspect of the present application,
the first running module, when controlling the first processor to run the target application program, is specifically configured to obtain a high-speed frequency of the first processor, adjust a current frequency of the first processor to the high-speed frequency, and run the target application program through the first processor adjusted to the high-speed frequency, where the high-speed frequency is a maximum running frequency of the first processor;
the second running module, when controlling the second processor to run the target application program, is specifically configured to obtain a low-speed frequency of the second processor, adjust a current frequency of the second processor to the low-speed frequency, and run the target application program through the second processor adjusted to the low-speed frequency, where the low-speed frequency is a minimum running frequency of the second processor.
In some variations of the first aspect of the present application, the apparatus further comprises:
the adding unit is used for acquiring initial configuration information of the target application program before adjustment and adding the initial configuration information into a configuration recovery list;
the processing unit is used for judging whether the configuration recovery list is empty or not when receiving an exit instruction or a switching instruction of the mode; if not, recovering the initial processor and the running frequency of each application program according to the initial configuration information of each application program in the configuration recovery list; and if so, deleting the configuration recovery list.
A second aspect of the present application provides an application program running method, including:
determining the current mode of the intelligent terminal, wherein different modes are used for distinguishing the operation level of the same application program;
determining the operation level corresponding to each target application program in the mode, wherein the target application program is an opened application program;
and adjusting the operation attribute of the target application program according to the operation level, and controlling the operation of the target application program according to the adjusted operation attribute.
In some modified embodiments of the second aspect of the present application, the determining the operation level corresponding to each target application in the mode includes:
acquiring a plurality of lists corresponding to the modes, wherein different lists correspond to different operation levels;
and detecting the target application program according to the plurality of nametags to obtain the operation level corresponding to the target application program.
In some modified embodiments of the second aspect of the present application, the detecting the target application program according to the multiple namelists to obtain the operation level corresponding to the target application program includes:
detecting the target application program according to the third list, the first list and the second list in sequence;
when the target application program is in a third list, determining the running level of the target application program as a third level;
when the target application program is in the first list, determining the operation level of the target application program as a first level;
when the target application program is in the second list, determining the operation level of the target application program to be a second level;
wherein the operation priority levels of the first level, the second level and the third level are sequentially reduced.
In some modified embodiments of the second aspect of the present application, the adjusting the operation attribute of the target application according to the operation level, and controlling the operation of the target application according to the adjusted operation attribute includes:
when the operation level is a first level, selecting a first processor from a plurality of processors with different performances, and controlling the first processor to operate the target application program, wherein the performance of the first processor is higher than that of the processor which operates the target application program before adjustment;
when the operation level is a second level, selecting a second processor from a plurality of processors with different performances, and controlling the second processor to operate the target application program, wherein the performance of the second processor is lower than that of the processor which operates the target application program before adjustment;
and when the running level is the third level, terminating the running of the target application program.
In some variations of the second aspect of the present application,
the controlling the first processor to run the target application program comprises: acquiring a high-speed frequency of the first processor, adjusting the current frequency of the first processor to the high-speed frequency, and running the target application program through the first processor adjusted to the high-speed frequency, wherein the high-speed frequency is the maximum running frequency of the first processor;
the controlling the second processor to run the target application includes: and acquiring a low-speed frequency of the second processor, adjusting the current frequency of the second processor to the low-speed frequency, and running the target application program through the second processor adjusted to the low-speed frequency, wherein the low-speed frequency is the minimum running frequency of the second processor.
In some variations of the second aspect of the present application, the method further comprises:
acquiring initial configuration information of the target application program before adjustment, and adding the initial configuration information into a configuration recovery list;
when an exit instruction or a switching instruction of the mode is received, judging whether the configuration recovery list is empty or not; if not, recovering the initial processor and the running frequency of each application program according to the initial configuration information of each application program in the configuration recovery list; and if so, deleting the configuration recovery list.
A third aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the application running method according to the second aspect.
A fourth aspect of the present application provides an electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the application execution method according to the second aspect when executing the computer program.
By means of the technical scheme, the application program running device and method are provided, the current mode of the intelligent terminal is determined after the intelligent terminal enters the mode, the running level corresponding to each target application program is further determined, the running attribute of the target application program is adjusted according to the running level, and the target application program is controlled to run according to the adjusted running attribute, so that the target application program is run based on the adjusted running attribute, the performance of an intelligent terminal product is exerted to the maximum extent on the whole, and the application program which is being used by a user is responded timely. Compared with the prior art, the method solves the technical problem that the requirement that a user uses the application program is difficult to respond in time due to the fact that too many application programs are started to occupy too much processing resources of a processor. The application program used by the user can be responded in time, the waiting time of the user is shortened, and the operation experience of the user is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a block diagram illustrating an application running apparatus according to an embodiment of the present application;
fig. 2 is a block diagram of another application running apparatus according to an embodiment of the present application;
fig. 3 is a flowchart of an application running method according to an embodiment of the present application;
fig. 4 is a flowchart of another application running method according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to enable the application program used by the user to respond timely, a plurality of modes are set, and then the intelligent terminal adjusts the running attribute of the started application program in a certain mode to vacate more better processing resources, so that the intelligent terminal can respond timely to the application program which needs to respond timely in the mode. Therefore, the user can select the corresponding mode according to the application program required to be used by the user, and the intelligent terminal can respond to the application program used by the user in the mode in time.
Based on the above technical concept, an embodiment of the present application provides an application running apparatus, as shown in fig. 1, the apparatus includes: a first determining unit 11, a second determining unit 12 and an adjusting unit 13, wherein the first determining unit 11 is connected with the second determining unit 12, and the second determining unit 12 is connected with the adjusting unit 13.
The first determining unit 11 determines a current mode of the intelligent terminal.
Wherein different modes are used to differentiate the level of operation of the same application. In different modes, the operation level of the same application program may be the same or different. For example, since the user needs to use the instant messaging application in both the viewing mode and the game mode, the instant messaging application operates at the same level in both modes. Since the video application is mainly used and the game application is not used in the viewing mode, and the game application is mainly used and the video application is not used in the game mode, the video application and the game application are different in operation level in the two modes.
In implementation, when the intelligent terminal is detected to enter a certain mode, the current mode is acquired. Or, when the intelligent terminal enters a certain mode, the current mode can be periodically acquired.
And a second determining unit 12, configured to determine an operation level corresponding to each target application in the mode.
Wherein, the target application program is an opened application program. The operation level is the operation priority corresponding to the representation target application program. For example, the higher the operation level, the higher the operation priority. The lower the run level, the lower the run priority. Therefore, the target application program corresponding to the running level can be processed in time, and then response is made in time.
In implementation, after determining the current mode of the intelligent terminal, the operation level of each target application program can be determined according to the importance degree of each target application program in the mode.
For example, in a gaming mode, users often use gaming applications. Therefore, in the game mode, the game application is required to respond in time, the game application can be set as an important target application in the mode, and the running level of the game application is set to be the highest. However, in the game mode, the user may also use other target applications, for example, to view messages on the instant messaging application, and therefore, these target applications are more important applications in this mode, and the running level of these target applications may be set to medium. For target applications that are not used by the user in the game mode, which are unimportant in the game mode, the execution level of the target applications may be set to the lowest level.
In the foregoing process, the present application may determine the importance degree of each target application in the mode through the list corresponding to the mode, or may determine the importance degree of each target application in the mode according to information such as frequency and duration used in the mode.
And the adjusting unit 13 is configured to adjust the operation attribute of the target application according to the operation level, and control the operation of the target application according to the adjusted operation attribute.
Wherein the operational attribute comprises an operational parameter. The operation parameters are used for indicating whether the intelligent terminal operates the corresponding application program. Running the property may also include running a processor of the application. For example, when the operation parameter in the operation attribute indicates that the intelligent terminal is terminated, the corresponding target application program is controlled to be terminated according to the operation parameter. And when the operation parameters in the operation attributes indicate that the intelligent terminal operates, operating the corresponding target application program according to the processor included in the operation attributes.
In implementation, the operation parameters and the processor in the operation attribute are adjusted according to the operation level of the target application program, and the target application program is operated based on the operation parameters and the processor.
In the embodiment of the application, after the mode is entered, the current mode of the intelligent terminal is determined, the running level corresponding to each target application program is further determined, then the running attribute of the target application program is adjusted according to the running level, and the target application program is controlled to run according to the adjusted running attribute, so that the target application program is run based on the adjusted running attribute, the performance of an intelligent terminal product is exerted to the maximum on the whole, and the application program used by a user is responded. Compared with the prior art, the method solves the technical problem that the requirement that a user uses the application program is difficult to respond in time due to the fact that too many application programs are started to occupy too much processing resources of a processor. The application program used by the user can be responded in time, the waiting time of the user is shortened, and the operation experience of the user is improved.
In some modified embodiments, the present application further provides another application running device, as shown in fig. 2, the device provided in the foregoing embodiments is further refined to supplement more functional applications.
As shown in fig. 2, the second determining unit 12 is configured to determine an operation level corresponding to each target application in the mode, where the second determining unit 12 is further divided into:
the searching module 121 is configured to obtain a plurality of lists corresponding to the pattern.
Wherein different lists correspond to different operating levels.
In implementation, after the mode of the intelligent terminal is determined, according to the corresponding relation between the pre-stored mode and the lists, a plurality of lists corresponding to the mode are found in the hard disk in the intelligent terminal and are read into the running memory.
In the above process, the correspondence between the mode and the list may be set by a technician, or may be set by a user based on the requirement of the mode in use. If the corresponding relation between the mode and the list is set by the technician, the specific setting method is as follows: the method comprises the steps of establishing an application program set comprising application programs frequently used by a user and a preset blank list, in the application program set, dividing important application programs in the mode, more important application programs in the mode and unimportant application programs in the mode by technicians according to experience, and writing the divided application programs into the corresponding blank list in sequence to obtain a plurality of lists. And correspondingly storing the lists and the corresponding modes to a hard disk of the intelligent terminal. In the above process, whether the application program is the application program frequently used by the user can be determined by whether the download frequency of the application program exceeds a threshold value.
Certainly, the user modifies the mode set by the technician based on the self-requirement, so that the setting of the list is more in line with the requirement of the user.
The detection module 122 is configured to detect the target application according to the plurality of lists, and obtain an operation level corresponding to the target application.
In implementation, the intelligent terminal may store the use order of the list, or may not store the use order of the list. If the use sequence of the list is stored in the intelligent terminal, the list can be used in sequence to detect the target application program according to the use sequence, and the operation level corresponding to the target application program is obtained. If the intelligent terminal does not store the using sequence of the lists, the target application programs corresponding to the multiple lists can be used for detection at the same time.
In this step, the list may be a blank list or a non-blank list, that is, an application program may or may not exist in the list. In order to save the storage space of the intelligent terminal, whether the application program exists in the list or not can be detected firstly, and the list without the application program can be deleted. The specific method comprises the following steps: when the list is stored or modified, it may be determined whether the list includes an application. If not, the list is determined to be a blank list, which may be deleted. If so, it is determined that the list is not a blank list and cannot be deleted.
As shown in fig. 2, when the lists include a first list, a second list and a third list, the applications in the first list are the applications important in the current mode, the first level corresponding to the first list has the highest operation priority level, the applications in the second list are the applications important in the current mode, the applications in the third list are the applications unimportant in the current mode, and the third level corresponding to the third list has the lowest operation priority level. When a large number of applications are started in the current mode, most applications are applications that do not need to be run in the current mode, and such applications are mostly unrelated to the current mode and are generally in the third list. In order to reduce the number of detection times of using other lists for detection and reduce the data processing amount of the intelligent terminal, the detection can be performed based on the third list and then based on other lists. In this step, for example, the detection of the target application program is performed sequentially according to the third list, the first list and the second list, and the detection module 122 is specifically configured to:
detecting the target application program according to the third list, the first list and the second list in sequence; when the target application program is in the third list, determining the running level of the target application program as a third level; when the target application program is in the first list, determining the operation level of the target application program as a first level; when the target application program is in the second list, determining the operation level of the target application program as a second level; wherein the operation priority levels of the first level, the second level and the third level are sequentially reduced.
In implementation, detecting whether the target application program is in a third list; when the target application program is in the third list, setting the running level of the target application program to be a third level; when the target application program is not in the third list, detecting whether the target application program is in the first list or not; when the target application program is in the first list, setting the running level of the target application program to be a first level; when the target application program is not in the first list, detecting whether the target application program is in a second list; and when the target application program is in the second list, setting the running level of the target application program to be a second level.
After the running level of the target application program is determined to be the third level, the running of the target application program is terminated, and further the processor is enabled to free up more processing resources for subsequent detection.
It should be noted that there may be some target applications that are not in the first list, the second list, or the third list. For these target applications, the corresponding operation levels are not set, and the operation attributes of these target applications are not adjusted.
As shown in fig. 2, the adjusting unit 13 is configured to adjust the operation attribute of the target application according to the operation level, and control the operation of the target application according to the adjusted operation attribute. The adjusting unit 13 is further divided into:
and a first running module 131, configured to select a first processor from the multiple processors with different performances and control the first processor to run the target application program when the running level is the first level, where the performance of the first processor is higher than that of the processor running the target application program before the adjustment.
The intelligent terminal is provided with a plurality of processors with different performances, and the data processing speeds of the processors with different performances are different. Specifically, the higher the data processing speed of the higher-performance processor, the lower the data processing speed of the lower-performance processor.
Under normal conditions, each processor operates at its respective reference frequency, with higher reference frequencies providing better performance and lower reference frequencies providing poorer performance. Due to the operation mechanism of the processor, when the operation level is the first level, the processor where the corresponding target application program is located is determined, and the processor is determined as the processor before adjustment, so that the performance of the processor before adjustment is obtained. And then, in the plurality of processors, determining a first processor with performance higher than that of the processor before adjustment, and migrating the target application program to the first processor, so that the first processor runs the target application program. Because the performance of the first processor is higher than that of the processor before adjustment, the first processor can process the target application program at a higher processing speed, and the target application program can respond in time.
Specifically, the specific method for determining the first processor with performance higher than that of the pre-adjustment processor is as follows: and determining the performance parameter value of the processor before adjustment and the performance parameter values of other processors, selecting the processors with the performance parameter values larger than the performance parameter value of the processor before adjustment from the other processors, and further randomly selecting one processor from the processors to determine the processor as the first processor. The performance parameters include main frequency, maximum acceleration frequency, reference frequency and other parameters.
In order to make the target application respond quickly, the processor with the highest performance can be determined as the first processor, so that the first processor can process the target application quickly. The specific method comprises the following steps: and directly determining the processor with the largest performance parameter value in the other processors as the first processor.
Furthermore, in the process of running the target application program by using the first processor, in order to accelerate the data processing speed of the first processor, the running frequency of the first processor can be increased to the maximum running frequency of the first processor, so that the first processor can quickly process the target application program. The method comprises the following specific steps: the first running module 131 is specifically configured to, when controlling the first processor to run the target application, obtain a high-speed frequency of the first processor, adjust a current frequency of the first processor to the high-speed frequency, and run the target application through the first processor adjusted to the high-speed frequency, where the high-speed frequency is a maximum running frequency of the first processor.
In implementation, the high-speed frequency of the first processor is determined according to the first processor and a preset corresponding relation between the processor and the high-speed frequency, the current frequency of the first processor is adjusted to the high-speed frequency, and then the target application program is operated through the first processor adjusted to the high-speed frequency.
And a second running module 132, configured to select a second processor from the multiple processors with different performances and control the second processor to run the target application program when the running level is a second level, where the performance of the second processor is lower than that of the processor running the target application program before the adjustment.
Because the target application program corresponding to the second level is the more important application program in the current mode, in order to save the electric quantity of the intelligent terminal, the target application program corresponding to the second level can be operated at a lower operation frequency. When the operation level is the second level, the processor where the corresponding target application program is located is determined, and the processor is determined to be the processor before adjustment, so that the performance of the processor before adjustment is obtained. And then, in the plurality of processors, determining a second processor with performance lower than that of the processor before adjustment, and migrating the target application program to the second processor, so that the second processor runs the target application program. Because the performance of the second processor is lower than that of the processor before adjustment, the second processor can process the target application program at a lower processing speed, and the electric quantity of the intelligent terminal is saved.
It should be noted that the method for determining the second processor is similar to the method for determining the first processor, and is not described in detail here.
In addition, in order to save the electric quantity of the intelligent terminal, the operating frequency of the second processor can be further reduced, so that the electric quantity of the intelligent terminal is further saved, and the method specifically comprises the following steps: the second running module 132, when controlling the second processor to run the target application program, is specifically configured to obtain a low-speed frequency of the second processor, adjust the current frequency of the second processor to the low-speed frequency, and run the target application program through the second processor adjusted to the low-speed frequency, where the low-speed frequency is a minimum running frequency of the second processor.
The low-speed frequency is the minimum operating frequency of the second processor, and may be an operating frequency set by a technician as needed.
A termination module 133, configured to terminate the running of the target application when the running level is the third level.
Since the target application of the third level is often an application that is not related to the current mode, the target application of the third level may be terminated first, so that the intelligent terminal is freed up more processing resources to process the target applications of other levels.
As shown in fig. 2, in addition to the first determining unit 11, the second determining unit 12, and the adjusting unit 13, the apparatus in the embodiment of the present application further includes:
and the adding unit 14 is configured to obtain initial configuration information of the target application program before adjustment, and add the initial configuration information to the configuration recovery list.
The initial configuration information at least includes the application program to be migrated, the processor to which the application program was migrated, and the corresponding operating frequency.
In implementation, since only the target application program with the running level of the first level or the second level is adjusted, the target application program with the running level of the first level or the second level is the target application program to be adjusted. And acquiring initial configuration information of the target application programs before adjustment, and adding the initial configuration information into a configuration recovery list.
A processing unit 15, configured to determine whether the configuration restoration list is empty when receiving an exit instruction or a switching instruction of the mode; if not, recovering the initial processor and the running frequency of each application program according to the initial configuration information of each application program in the configuration recovery list; if so, the configuration restoration list is deleted.
In implementation, when an exit instruction or a switching instruction of the mode is received, it is determined whether the configuration restoration list includes initial configuration information, and if the configuration restoration list includes the initial configuration information, it indicates that data restoration needs to be performed based on the initial configuration information, and the configuration restoration list is deleted after restoration. In the process of recovery, the target application programs migrated to the first processor and the second processor may be determined according to the initial configuration information in the recovery list, and the target application programs are migrated back to the original processor, and the processor frequencies of the first processor and the second processor are recovered to the reference frequency.
In addition, when an exit instruction or a switching instruction of the mode is received, in order to further save the space of the operating memory, the list used by the mode in the operating memory may also be deleted. For example, when an exit instruction or a switch instruction of the mode is received, whether a list corresponding to the mode exists in the running memory is detected, and if yes, the list is deleted.
In addition, in addition to the adding unit 14 and the processing unit 15, the processing of the embodiment of the present application further includes a blocking unit 16, configured to add a target application to a blocking list to terminate the target application when it is detected that the running level of the target application is the third level. When an exit instruction or a switching instruction of the mode is received, judging whether a blocking list is empty; if not, triggering the application programs in the blocking list one by one, and deleting the blocking list after triggering all the application programs in the blocking list; if so, the block list is directly deleted.
In implementation, when the target application runs in the processor, if it is terminated directly, the code of the target application may be abnormal. Thus, to avoid such an exception, the terminating target application may be added to the blocklist before terminating the target application. Meanwhile, after the target application is added into the blocking list, if the target application in the blocking list is triggered later, the target application starts to run from the blocked position without starting to run from the beginning. Thus, when an exit instruction or a switching instruction of the mode is received, whether the block list is empty is judged; if not, the application programs which are already terminated need to be triggered again, so that the application programs in the blocking list are triggered one by one, and the blocking list is deleted after all the application programs in the blocking list are triggered; if so, the block list is directly deleted.
Further, as an application to the apparatus shown in fig. 1, an application running method is provided in the embodiment of the present application. The embodiment of the method corresponds to the embodiment of the apparatus, and for convenience of reading, details in the embodiment of the method are not repeated one by one, but it should be clear that the method in the embodiment can correspondingly implement all the contents in the embodiment of the apparatus, and as shown in fig. 3, the following specific steps are provided for the embodiment of the present application:
step 301, determining the current mode of the intelligent terminal.
Wherein different modes are used to differentiate the level of operation of the same application.
Step 302, determining the corresponding operation level of each target application program in the mode.
The target application program is an opened application program.
And 303, adjusting the operation attribute of the target application program according to the operation level, and controlling the operation of the target application program according to the adjusted operation attribute.
Further, as an application to the apparatus shown in fig. 2, another application running method is provided in the embodiment of the present application. The embodiment of the method corresponds to the embodiment of the apparatus, and for convenience of reading, details in the embodiment of the method are not repeated one by one, but it should be clear that the method in the embodiment can correspondingly implement all the contents in the embodiment of the apparatus, and as shown in fig. 4, the following specific steps are provided for the embodiment of the present application:
step 401, determining a current mode of the intelligent terminal.
Wherein different modes are used to differentiate the level of operation of the same application.
Step 402, obtaining a plurality of lists corresponding to the mode
Wherein different lists correspond to different operating levels. The target application is an opened application.
And 403, detecting the target application program according to the lists to obtain the operation level corresponding to the target application program.
In this step, a method for specifically detecting the operation level is provided as follows: detecting the target application program according to the third list, the first list and the second list in sequence; when the target application program is in the third list, determining the running level of the target application program as a third level; when the target application program is in the first list, determining the operation level of the target application program as a first level; when the target application program is in the second list, determining the operation level of the target application program as a second level; wherein the operation priority levels of the first level, the second level and the third level are sequentially reduced.
In the present application, when it is detected that the operation level of a target application is the third level, the target application may be added to the blocking list to terminate the target application. When an exit instruction or a switching instruction of the mode is received, judging whether a blocking list is empty or not; if not, triggering the application programs in the blocking list one by one, and deleting the blocking list after triggering all the application programs in the blocking list; if yes, directly deleting the block list
When the operation level of a certain target application program is a first level and a second level, the initial operation attributes of the target application program before adjustment can be obtained, and when an exit instruction or a switching instruction of the mode is received, recovery is carried out based on the initial operation attributes. The method specifically comprises the following steps: acquiring the initial operation attribute of the target application program before adjustment, and adding the initial operation attribute into a configuration recovery list; when an exit instruction or a switching instruction of the mode is received, judging whether a configuration recovery list is empty; if not, recovering the initial processor and the operation frequency of each application program according to the initial operation attribute of each application program in the configuration recovery list; if so, the configuration restoration list is deleted.
And 404, adjusting the operation attribute of the target application program according to the operation level, and controlling the operation of the target application program according to the adjusted operation attribute.
In this step, a specific adjustment method is provided, and specifically, when the operation level is a first level, a first processor is selected from a plurality of processors with different performances, and the first processor is controlled to run a target application program, where performance of the first processor is higher than performance of a processor running the target application program before adjustment; when the operation level is a second level, selecting a second processor from the processors with different performances, and controlling the second processor to operate the target application program, wherein the performance of the second processor is lower than that of the processor which operates the target application program before adjustment; and when the running level is the third level, terminating the running of the target application program.
In the above process, controlling the first processor to run the target application includes: acquiring a high-speed frequency of a first processor, adjusting the current frequency of the first processor to the high-speed frequency, and running a target application program through the first processor adjusted to the high-speed frequency, wherein the high-speed frequency is the maximum running frequency of the first processor; controlling a second processor to run a target application, comprising: and acquiring the low-speed frequency of the second processor, adjusting the current frequency of the second processor to the low-speed frequency, and running the target application program through the second processor adjusted to the low-speed frequency, wherein the low-speed frequency is the minimum running frequency of the second processor.
To sum up, with the application program running apparatus and method provided in the embodiment of the present application, by using the apparatus provided in the embodiment of the present application, after entering the mode, the present application determines at least one target application program that has been started, further determines a running level corresponding to each target application program, then adjusts a running attribute of the target application program according to the running level, and controls the target application program to run according to the adjusted running attribute, so that the target application program is run based on the adjusted running attribute, the performance of the intelligent terminal product is brought into full play on the whole, and the application program used by the user at present is responded. Compared with the prior art, the method solves the technical problem that the requirement of the user for using the application program at present is difficult to respond in time due to the fact that too many application programs are started and the processor occupies too much processing resources. The application program can enable the user to respond in time when using the application program, the waiting time of the user is shortened, and the operation experience of the user in the current mode is improved.
The application program running device provided by the embodiment of the application program comprises a processor and a memory, wherein the first determining unit, the second determining unit, the adjusting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the application program can be responded by the user in time by adjusting the processor distributed to the target program, so that the waiting time of the user is shortened, and the operation experience of the user in the current mode is improved.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the application program running method as described above.
An embodiment of the present application provides an electronic device, including: the application program comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the application program running method when executing the computer program.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (processors), memories, and buses. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), including at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (10)

1. An application execution apparatus, comprising:
the intelligent terminal comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining the current mode of the intelligent terminal, and different modes are used for distinguishing the operation level of the same application program;
a second determining unit, configured to determine an operation level corresponding to each target application in the mode, where the target application is an opened application;
and the adjusting unit is used for adjusting the operation attribute of the target application program according to the operation level and controlling the operation of the target application program according to the adjusted operation attribute.
2. The apparatus of claim 1, wherein the second determining unit comprises:
the acquisition module is used for acquiring a plurality of lists corresponding to the modes, wherein different lists correspond to different operation levels;
and the detection module is used for detecting the target application program according to the plurality of the nametags to obtain the running level corresponding to the target application program.
3. The apparatus according to claim 2, wherein the plurality of lists include a first list, a second list, and a third list, and the operation levels sequentially correspond to a first level, a second level, and a third level, and the detection module is specifically configured to:
detecting the target application program according to the third list, the first list and the second list in sequence;
when the target application program is in a third list, determining the running level of the target application program to be a third level;
when the target application program is in the first list, determining the operation level of the target application program as a first level;
when the target application program is in the second list, determining the operation level of the target application program as a second level;
wherein the operation priority levels of the first level, the second level and the third level are sequentially reduced.
4. The apparatus of claim 1, wherein the adjusting unit comprises:
the first running module is used for selecting a first processor from a plurality of processors with different performances and controlling the first processor to run the target application program when the running level is a first level, wherein the performance of the first processor is higher than that of the processor running the target application program before adjustment;
a second operation module, configured to select a second processor from the multiple processors with different performances and control the second processor to operate the target application program when the operation level is a second level, where the performance of the second processor is lower than that of the processor that operates the target application program before the adjustment;
and the termination module is used for terminating the running of the target application program when the running level is the third level.
5. The apparatus of claim 4,
the first running module, when controlling the first processor to run the target application program, is specifically configured to obtain a high-speed frequency of the first processor, adjust a current frequency of the first processor to the high-speed frequency, and run the target application program through the first processor adjusted to the high-speed frequency, where the high-speed frequency is a maximum running frequency of the first processor;
the second running module, when controlling the second processor to run the target application program, is specifically configured to obtain a low-speed frequency of the second processor, adjust a current frequency of the second processor to the low-speed frequency, and run the target application program through the second processor adjusted to the low-speed frequency, where the low-speed frequency is a minimum running frequency of the second processor.
6. The apparatus of claim 4, further comprising:
the adding unit is used for acquiring initial configuration information of the target application program before adjustment and adding the initial configuration information into a configuration recovery list;
the processing unit is used for judging whether the configuration recovery list is empty or not when receiving an exit instruction or a switching instruction of the mode; if not, recovering the initial processor and the running frequency of each application program according to the initial configuration information of each application program in the configuration recovery list; and if so, deleting the configuration recovery list.
7. An application program running method, characterized in that the method comprises:
determining the current mode of the intelligent terminal, wherein different modes are used for distinguishing the operation level of the same application program;
determining the operation level corresponding to each target application program in the mode, wherein the target application program is an opened application program;
and adjusting the operation attribute of the target application program according to the operation level, and controlling the operation of the target application program according to the adjusted operation attribute.
8. The method of claim 7, wherein the determining the operation level corresponding to each target application in the mode comprises:
acquiring a plurality of lists corresponding to the modes, wherein different lists correspond to different operation levels;
and detecting the target application program according to the plurality of business tickets to obtain the operation level corresponding to the target application program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method for running an application according to any one of claims 7 to 8.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the application execution method according to any one of claims 7-8 when executing the computer program.
CN202211260907.2A 2022-10-14 2022-10-14 Application program running device and method Pending CN115599545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211260907.2A CN115599545A (en) 2022-10-14 2022-10-14 Application program running device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211260907.2A CN115599545A (en) 2022-10-14 2022-10-14 Application program running device and method

Publications (1)

Publication Number Publication Date
CN115599545A true CN115599545A (en) 2023-01-13

Family

ID=84845969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211260907.2A Pending CN115599545A (en) 2022-10-14 2022-10-14 Application program running device and method

Country Status (1)

Country Link
CN (1) CN115599545A (en)

Similar Documents

Publication Publication Date Title
EP3575962B1 (en) Method and device for preloading application, storage medium and intelligent terminal
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
US11467855B2 (en) Application preloading method and device, storage medium and terminal
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN109064538B (en) View rendering method and device, storage medium and intelligent terminal
CN114096953A (en) Memory management method and device, electronic equipment and computer readable medium
JP2006351004A (en) Memory management method of mobile terminal
CN111131352A (en) Theme switching method and device
CN116167463B (en) Distributed model training container scheduling method and device for intelligent computing
CN116089096B (en) Load resource scheduling method and electronic equipment
CN112306411A (en) Data storage method and device, nonvolatile storage medium and processor
CN107368235B (en) Multi-task switching method of function machine and function machine
CN110727385B (en) Desktop icon sorting method and device, electronic equipment and storage medium
US20130293590A1 (en) Mobile terminal comprising a graphical user interface
CN109002348B (en) Load balancing method and device in virtualization system
CN111381953B (en) Process management method and device, storage medium and electronic equipment
CN106201714A (en) A kind of ODEX optimization method and system
CN115599545A (en) Application program running device and method
WO2023179183A1 (en) Subprogram synchronization processing
CN115543168A (en) Method, device, equipment and medium for switching application
CN113986558A (en) Application processing method and device
CN112579938A (en) Page loading method and device, storage medium and electronic equipment
CN112291799A (en) Download network speed determining method and device, user equipment and storage medium
CN112260865A (en) Processing method and device for quickly switching topic homepage to enter into circle chat
CN106954205B (en) Mobile data switch control method and device and mobile terminal

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

Country or region after: China

Address after: 314400 Building 1, Juanhu Science and Technology Innovation Park, No. 500 Shuiyueting East Road, Xiashi Street, Haining City, Jiaxing City, Zhejiang Province (self declared)

Applicant after: Haining Yisiwei Computing Technology Co.,Ltd.

Applicant after: Beijing ESWIN Computing Technology Co.,Ltd.

Address before: Room 263, block B, science and technology innovation center, 128 Shuanglian Road, Haining Economic Development Zone, Haining City, Jiaxing City, Zhejiang Province, 314400

Applicant before: Haining yisiwei IC Design Co.,Ltd.

Country or region before: China

Applicant before: Beijing ESWIN Computing Technology Co.,Ltd.