CN110008027B - Process running method and device, terminal and storage medium - Google Patents

Process running method and device, terminal and storage medium Download PDF

Info

Publication number
CN110008027B
CN110008027B CN201910279697.3A CN201910279697A CN110008027B CN 110008027 B CN110008027 B CN 110008027B CN 201910279697 A CN201910279697 A CN 201910279697A CN 110008027 B CN110008027 B CN 110008027B
Authority
CN
China
Prior art keywords
processor core
terminal
touch event
target process
user interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910279697.3A
Other languages
Chinese (zh)
Other versions
CN110008027A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910279697.3A priority Critical patent/CN110008027B/en
Publication of CN110008027A publication Critical patent/CN110008027A/en
Application granted granted Critical
Publication of CN110008027B publication Critical patent/CN110008027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a process running method, a process running device, a terminal and a storage medium, and belongs to the technical field of computers. According to the method and the terminal, the corresponding core binding operation can be executed along with the occurrence of the trigger event on the user interface, so that when the software object corresponding to the appointed user interface runs, the terminal does not need to bind the target process to the high-performance processor core, high power consumption caused by the fact that the software object occupies the high-performance processor when no touch event occurs is avoided, the terminal can reduce the overall power consumption of the terminal when the high-performance running of the target process is ensured, and the running efficiency of the terminal is improved.

Description

Process running method and device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a process running method, a process running device, a terminal and a storage medium.
Background
With the increasing technology of processor manufacturing, many manufacturers manufacture multi-core processors to increase the computing power of the terminal.
For the aspects of performance, power consumption and the like, the Big-Little architecture is commonly adopted in the current multi-core processor. The processor adopting the Big-Little architecture comprises a plurality of high-performance cores and a plurality of low-performance cores, wherein the high-performance cores are used for processing complex operations, and the low-performance cores are used for processing simple operations.
Disclosure of Invention
The embodiment of the application provides a process running method, a process running device, a terminal and a storage medium. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method for executing a process, the method being applied to a terminal, the terminal including at least one first processor core and at least one second processor core, the performance of the first processor core being higher than that of the second processor core, the method including:
displaying a user interface, wherein the user interface is a graphical display interface corresponding to a software object of the terminal;
when a touch event is received, acquiring a target process corresponding to the user interface, wherein the touch event is triggered on the user interface, and the target process is a process performed by the software object when the touch event is received;
binding the target process and the first processor core;
running the target process on the first processor core.
According to another aspect of the present application, there is provided a device for executing a process, the device being applied to a terminal, the terminal including at least one first processor core and at least one second processor core, the performance of the first processor core being higher than the performance of the second processor core, the device including:
the interface display module is used for displaying a user interface, and the user interface is a graphical display interface corresponding to the software object of the terminal;
a process obtaining module, configured to obtain, when a touch event is received, a target process corresponding to the user interface, where the touch event is triggered on the user interface, and the target process is a process performed by the software object when the touch event is received;
a core binding module, configured to bind the target process and the first processor core;
a process running module to run the target process on the first processor core.
According to another aspect of the present application, there is provided a terminal comprising a processor and a memory, wherein at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the method for executing the process provided in the embodiments of the present application.
According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to implement a method of execution of a process as provided in the implementations of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application can include:
according to the method and the device, after the user interface is displayed, when the touch event is received, the target process corresponding to the user interface is obtained, the target process is bound with the processor core with higher performance in the terminal, and the process is operated in the processor core with higher performance. According to the method and the terminal, the corresponding core binding operation can be executed along with the occurrence of the trigger event on the user interface, so that when the software object corresponding to the appointed user interface runs, the terminal does not need to bind the target process to the high-performance processor core, high power consumption caused by the fact that the software object occupies the high-performance processor when no touch event occurs is avoided, the terminal can reduce the overall power consumption of the terminal when the high-performance running of the target process is ensured, and the running efficiency of the terminal is improved.
Drawings
In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method for executing a process provided by an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for operating a process provided by another exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a trigger position corresponding to a touch type program provided based on the embodiment shown in FIG. 3;
fig. 5 is a block diagram of an apparatus for executing a process according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
For example, the method for running the process shown in the embodiment of the present application may be applied to a terminal, where the terminal has a display screen and a function of running the process. The terminal can comprise a mobile phone, a tablet computer, a television, intelligent glasses, an intelligent watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-to-read machine, an electronic book, an electronic dictionary, a vehicle-mounted terminal and the like.
Referring to fig. 1, fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application, and as shown in fig. 1, the terminal includes a processor 120, a memory 140, and a display component 160, where the memory 140 stores at least one instruction, and the instruction is loaded and executed by the processor 120 to implement a method for executing a process according to various method embodiments of the present application. The display component 160 is used for displaying the user interface in the embodiment of the present application.
In the present application, the terminal 100 is an electronic device having an operation process. When the terminal 100 includes at least one first processor core and at least one second processor core, where the performance of the first processor core is higher than that of the second processor core, the terminal 100 can display a user interface corresponding to a software object, and when a touch event triggered on the user interface is received, obtain a target process corresponding to the user interface, where the target process is a process performed by the software object when the touch event is received, and then, the terminal 100 binds the target process and the first processor core, and runs the target process on the first processor core.
Processor 120 may include one or more processing cores. The processor 120 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Alternatively, the processor 120 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 120 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 120, but may be implemented by a single chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
The display assembly 160 includes a display screen. In the scenario of this embodiment, the display component 160 may further include a touch sensor, which may be pasted in the display screen and integrated with the display screen into the display component 160.
Referring to fig. 2, fig. 2 is a flowchart of a method for running a process according to an exemplary embodiment of the present application. The method for operating the process can be applied to the terminal shown in fig. 1, and the terminal comprises at least one first processor core and at least one second processor core, wherein the performance of the first processor core is higher than that of the second processor core. In fig. 2, the running method of the process includes:
and step 210, displaying a user interface, wherein the user interface is a graphical display interface corresponding to the software object of the terminal.
In the embodiment of the application, the terminal can display the user interface in the display screen. It should be noted that the user interface is a graphical display interface corresponding to the software object of the terminal.
In the embodiment of the present application, the software object is a software unit capable of independently providing a function or a software service in the operating system of the terminal. As one possible implementation, the software object may be at least one of a system service, a system application, a third party application, a process, or a thread.
Optionally, when the software object is a system service, the user interface may be at least one of a system desktop, a lock screen interface of the system, a notification bar expansion interface of the system, a negative one-screen display interface of the system, a navigation interface of the system, and a navigation ball expansion interface of the system.
Optionally, a touchable control can be included in the user interface, the touchable control including at least one of a button, a slider, and a check box. When the terminal displays the user interface, the touch control can be displayed at the same time.
Step 220, when a touch event is received, a target process corresponding to the user interface is obtained, wherein the touch event is triggered on the user interface, and the target process is a process performed by the software object when the touch event is received.
In the embodiment of the application, when the terminal receives touch operation on the user interface, a touch event is triggered. And after receiving the touch event, acquiring a target process corresponding to the user interface.
In one possible implementation, the number of target processes corresponding to the user interface may be one. Or the number of the target processes corresponding to the user interface is at least two. Optionally, when the number of the target processes is at least two, the terminal acquires the identifier of each target process.
In one possible implementation, the target process is the process that the software object performs when the touch event is received.
Step 230, binding the target process with the first processor core.
In the embodiment of the application, the terminal can bind the target process and the first processor core. When the target process is bound with the first processor core, the target process runs on the first processor core directly.
At step 240, a target process is run on the first processor core.
In one possible implementation, the target process will run directly on the first processor core at runtime.
In summary, the process running method provided in this embodiment can obtain the target process corresponding to the user interface when the touch event is received, bind the target process with the processor core with higher performance in the terminal, and run the process in the processor core with higher performance. According to the method and the terminal, the corresponding core binding operation can be executed along with the occurrence of the trigger event on the user interface, so that when the software object corresponding to the appointed user interface runs, the terminal does not need to bind the target process to the high-performance processor core, high power consumption caused by the fact that the software object occupies the high-performance processor when no touch event occurs is avoided, the terminal can reduce the overall power consumption of the terminal when the high-performance running of the target process is ensured, and the running efficiency of the terminal is improved.
Based on the scheme disclosed in the previous embodiment, the terminal can also obtain the target process corresponding to the user interface when the touch screen receives the touch event for the first time, please refer to the following embodiments.
Referring to fig. 3, fig. 3 is a flowchart of a method for operating a process according to another exemplary embodiment of the present application. The running method of the process can be applied to the terminal shown in fig. 1. In fig. 3, the method for running the process includes:
step 310, displaying a user interface.
In the embodiment of the present application, the execution process of step 310 is the same as the execution process of step 210, and is not described herein again.
And 320, when the touch event is received and is the first touch event in the touch screen of the terminal, acquiring a target process corresponding to the user interface.
In the embodiment of the application, when the terminal receives a touch event, and the touch event is a first touch event in a touch screen of the terminal, the terminal acquires a target process corresponding to a user interface. It should be noted that the first touch event refers to an event that the touch screen of the terminal is triggered by the first touch point in the idle state.
In other words, two states of the touch screen may be designed in the terminal, including an idle state and a busy state. The idle state is used for indicating that the touch screen does not receive the touch event after the time-out duration. The timeout period may be a predetermined length of time. When the terminal receives the touch event, the terminal determines the state of the touch screen as a busy state and resets the timer according to the overtime duration. And when the timer is over, the terminal confirms the state of the touch screen as an idle state. In this idle state, the terminal will monitor whether there is a touch point in the touch screen. When a first touch point appears on the touch screen, a first touch event is triggered in the terminal.
In one possible implementation, the target process includes at least one of an input task process and a foreground task process.
Optionally, when the target process includes an input task process, the terminal determines a process for processing a touch signal generated on the user interface as the input task process. In one scenario, the input task related process can be an input task process.
Optionally, when the target process includes a foreground task process, the terminal determines a process for supporting display of the user interface as the target process.
In another possible implementation manner, the terminal can also determine whether to acquire the target process according to the trigger position corresponding to the touch program. In this scenario, the terminal can achieve the effect of acquiring the target process by performing step (1) and step (2).
Step (1), when the touch event is received and the touch event is a first touch event in a touch screen of the terminal, acquiring a trigger position corresponding to the first touch event.
In the embodiment of the application, when the terminal receives a touch event, and the touch event is a first touch event in a touch screen of the terminal, the terminal acquires a trigger position corresponding to the first touch event. In one embodiment, the trigger position corresponding to the first touch event is an action position of a touch operation of a user. The terminal can acquire the action position. In one possible implementation, the action location may be coordinates or other data capable of representing a location.
And (2) when the trigger position is in a target area, acquiring the target process corresponding to the user interface.
In the embodiment of the application, when the trigger position is in the target area, the target process corresponding to the user interface is obtained. In one possible implementation, when the trigger position is in the target area, it is interpreted that the user may have triggered the specified button. Alternatively, when the target area is a display area of the designated button, when the trigger position is in the target area, it indicates that the user has triggered the designated button. In this scenario, the terminal acquires a target process of the user interface to complete the process running method provided by the embodiment of the present application.
Referring to fig. 4, fig. 4 is a schematic diagram of a trigger position corresponding to a touch type program provided based on the embodiment shown in fig. 3. In fig. 4, the trigger position 410 is the trigger position corresponding to the touch-like program, where the user's finger touches the screen. The target area 420 is a sub-area in the terminal 400, in which terminal 400 the trigger position 410 is in the target area 420.
Therefore, in the terminal 400 shown in fig. 4, the terminal will acquire the target process corresponding to the user interface.
Step 331, obtain the operating state of the first processor core.
In the embodiment of the application, the terminal can acquire the working state of the first processor core. The working state of the first processor core comprises an online state or an offline state.
In step 332, if the operating state of the first processor core is the offline state, the operating state of the first processor core is reset to the online state.
In this embodiment of the application, if the operating state of the first processor core is the offline state, the terminal resets the operating state of the first processor core to the online state.
Step 333, binding the target process and the first processor core when the working state of the first processor core is the online state.
In the embodiment of the application, when the working state of the first processor core is an online state, the terminal binds the target process and the first processor core.
In one possible embodiment, the terminal can be provided with a checkbinding function switch that includes an on state and an off state.
Alternatively, in one scenario, the tie function switch may be one. When the core binding function switch is one, the core binding function switch may be a global switch of the terminal, or may be a local switch that is effective for a specific application or a specific scene.
Alternatively, in another scenario, the core binding function switch may be at least two. And when the at least two core binding function switches are in an on state, the terminal binds the target process and the first processor core.
At step 340, a target process is run on the first processor core.
In the embodiment of the present application, the execution process of step 340 is the same as the execution process of step 240, and is not described herein again.
Step 351, from the time when the target process and the first processor core are bound, setting a timer according to the target duration.
In the embodiment of the application, the terminal can set the timer according to the target duration from the time when the target process is bound with the first processor core. It should be noted that the target duration is a duration that the terminal is used to control the target process to occupy the first processor core.
In one possible approach, the target duration may be a constant value set in the terminal. For example, one of 50ms, 100ms or 200 ms. The above numerical values are merely exemplary, and do not limit the embodiments of the present application.
In the embodiment of the present application, after the terminal performs the completion step 351, the terminal can perform both the step 352 and the steps 353 and 354.
In step 352, if the timer times out, the target process and the first processor core are unbound.
In the embodiment of the application, the terminal can process the relationship between the target process and the first processor core according to whether the timer is overtime or not.
In one scenario, when the timer times out, the terminal will release the binding of the target process and the first processor core. When the binding relationship between the target process and the first processor core is released, the target process may run on the first processor core or may run on the second processor core when running, which is not limited in the embodiment of the present application.
In another scenario, the terminal will maintain the binding relationship between the target process and the first processor core when the timer has not timed out.
And 353, monitoring a second touch event in a time period when the timer is not overtime.
In the embodiment of the present application, the second touch event is triggered in the target area and is a subsequent touch event of the first touch event.
It should be noted that, in the period when the timer does not time out, the touch-type program is continuously bound to the execution core. At this time, the terminal monitors a touch event triggered in the target area, the touch event being a subsequent touch event to the first touch event.
Alternatively, in one possible embodiment, the target area is a display area of a designated button in the terminal. In this scenario, the first touch event is used to indicate that the designated button is triggered, and when the designated button is triggered, the function corresponding to the designated button is turned on. And the second touch event is used for indicating that the specified button is triggered for the second time, and when the specified button is triggered for the second time, the function corresponding to the specified button is closed. Therefore, when the second touch event occurs, the function corresponding to the designated button in the terminal is closed, and the terminal can not bind the touch program on the execution core any more, so that the power consumption of the terminal is reduced.
In step 354, when the second touch event is monitored, the touch class program and the execution core are unbound.
In the embodiment of the application, when the terminal monitors the second touch event, the terminal binds the touch program with the virtual execution core contact, so that the energy consumption of the terminal is saved, and the working time of the terminal is prolonged.
In summary, in this embodiment, when the touch event is first touched on the touch screen, the target process corresponding to the user interface can be acquired, so that the terminal can immediately enter the process running method provided by the present application when the touch screen is triggered, and the processor core can be always in an online state, thereby ensuring that the target process is bound on the first processor core and stably executed, and improving the execution effect of the target process.
The process running method provided by this embodiment can also set the timer at the time when the target process and the first processor core are bound, and when the timer is overtime, the target process and the first processor core are unbound, so that the target process is bound to the first processor core only when needed, and is automatically unbound with the high-performance first processor core when idle, thereby improving the scheduling effect of the overall performance of the terminal, and achieving the balance between performance and power consumption.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 5, fig. 5 is a block diagram of an apparatus for executing a process according to an exemplary embodiment of the present application. The running means of the process can be implemented by software, hardware or a combination of both as all or part of a terminal to which the apparatus is applied, the terminal comprising at least one first processor core and at least one second processor core, the performance of the first processor core being higher than the performance of the second processor core. The device includes: an interface display module 510, a process acquisition module 520, a core binding module 530, and a process execution module 540.
An interface display module 510, configured to display a user interface, where the user interface is a graphical display interface corresponding to a software object of the terminal;
a process obtaining module 520, configured to obtain, when a touch event is received, a target process corresponding to the user interface, where the touch event is triggered on the user interface, and the target process is a process performed by the software object when the touch event is received;
a core binding module 530, configured to bind the target process and the first processor core;
a process running module 540, configured to run the target process on the first processor core.
In an optional embodiment, the process obtaining module 520 is configured to, when the touch event is received and the touch event is a first touch event in a touch screen of the terminal, obtain the target process corresponding to the user interface; wherein the first touch event is an event that a touch screen of the terminal is triggered by a first contact point in an idle state.
In an optional embodiment, the process obtaining module 520 is configured to, when the touch event is received and the touch event is a first touch event in a touch screen of the terminal, obtain a trigger position corresponding to the first touch event; and when the trigger position is in a target area, acquiring the target process corresponding to the user interface.
In an optional embodiment, the apparatus further includes a timer setting module and a first unbinding module, where the timer setting module is configured to set a timer according to a target duration from a time when the target process and the first processor core are bound; the first unbinding module is configured to unbind the target process and the first processor core if the timer is overtime.
In an optional embodiment, the apparatus further includes the monitoring module and a second unbinding module, where the monitoring module is configured to monitor a second touch event in a time period when the timer is not expired, where the second touch event is triggered in the target area and is a subsequent touch event to the first touch event; and the second unbinding module is used for unbinding the touch type program and the execution core when the second touch event is monitored.
In an optional embodiment, the target process involved in the apparatus includes at least one of an input task process for processing a touch signal generated on the user interface and a foreground task process for supporting display of the user interface.
In an optional embodiment, the apparatus further includes a state obtaining module and a resetting module, where the state obtaining module is configured to obtain an operating state of the first processor core, and the operating state is an online state or an offline state; the reset module is configured to reset the operating state of the first processor core to the online state if the operating state of the first processor core is the offline state.
In an optional embodiment, the core binding module 530 is configured to bind the target process and the first processor core when the operating state of the first processor core is the online state.
In an optional embodiment, the core binding module 530 is configured to obtain a state of a core binding function switch, where the state includes an on state and an off state; and when the state of the core binding function switch is the on state, binding the target process and the first processor core.
The embodiment of the present application further provides a computer-readable medium, which stores at least one instruction, where the at least one instruction is loaded and executed by the processor to implement the method for executing the process according to the above embodiments.
It should be noted that: in the above embodiment, when the process running apparatus executes the process running method, only the division of the functional modules is taken as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiment of the process running device and the embodiment of the process running method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the implementation of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for executing a process, the method being applied to a terminal including at least one first processor core and at least one second processor core, the performance of the first processor core being higher than the performance of the second processor core, the method comprising:
displaying a user interface, wherein the user interface is a graphical display interface corresponding to a software object of the terminal;
when a touch event is received, acquiring a target process corresponding to the user interface, wherein the touch event is triggered on the user interface, and the target process is at least one process performed by the software object when the touch event is received;
binding the target process and the first processor core;
running the target process on the first processor core.
2. The method of claim 1, wherein obtaining the target process corresponding to the user interface when the touch event is received comprises:
when the touch event is received and is the first touch event in a touch screen of the terminal, acquiring the target process corresponding to the user interface;
wherein the first touch event is an event that a touch screen of the terminal is triggered by a first contact point in an idle state.
3. The method according to claim 2, wherein when the touch event is received and is a first touch event in a touch screen of the terminal, acquiring the target process corresponding to the user interface comprises:
when the touch event is received and is a first touch event in a touch screen of the terminal, acquiring a trigger position corresponding to the first touch event;
and when the trigger position is in a target area, acquiring the target process corresponding to the user interface.
4. The method of claim 3, further comprising:
setting a timer according to a target duration from the time when the target process and the first processor core are bound;
and if the timer is overtime, the target process and the first processor core are unbound.
5. The method of claim 4, further comprising:
monitoring a second touch event in a time period when the timer is not overtime, wherein the second touch event is triggered in the target area and is a subsequent touch event of the first touch event;
and when the second touch event is monitored, unbinding the target process and the first processor core.
6. The method of claim 2, wherein the target process comprises at least one of an input task process for processing touch signals generated on the user interface and a foreground task process for supporting display of the user interface.
7. The method of claim 2, wherein prior to said binding the target process and the first processor core, the method further comprises:
acquiring the working state of the first processor core, wherein the working state is an online state or an offline state;
and if the working state of the first processor core is the offline state, resetting the working state of the first processor core to the online state.
8. The method of claim 7, wherein binding the target process to the first processor core comprises:
and when the working state of the first processor core is the online state, binding the target process and the first processor core.
9. The method of any of claims 1 to 7, wherein binding the target process to the first processor core comprises:
acquiring states of a core binding function switch, wherein the states comprise an on state and an off state;
and when the state of the core binding function switch is the on state, binding the target process and the first processor core.
10. An apparatus for executing a process, the apparatus being applied to a terminal including at least one first processor core and at least one second processor core, the first processor core having a higher performance than the second processor core, the apparatus comprising:
the interface display module is used for displaying a user interface, and the user interface is a graphical display interface corresponding to the software object of the terminal;
a process obtaining module, configured to obtain, when a touch event is received, a target process corresponding to the user interface, where the touch event is triggered on the user interface, and the target process is at least one process performed by the software object when the touch event is received;
a core binding module, configured to bind the target process and the first processor core;
a process running module to run the target process on the first processor core.
11. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement a method of execution of a process according to any one of claims 1 to 9.
12. A computer-readable storage medium having stored thereon at least one instruction which is loaded and executed by a processor to implement a method of operating a process as claimed in any one of claims 1 to 9.
CN201910279697.3A 2019-04-09 2019-04-09 Process running method and device, terminal and storage medium Active CN110008027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910279697.3A CN110008027B (en) 2019-04-09 2019-04-09 Process running method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910279697.3A CN110008027B (en) 2019-04-09 2019-04-09 Process running method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110008027A CN110008027A (en) 2019-07-12
CN110008027B true CN110008027B (en) 2021-08-20

Family

ID=67170521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910279697.3A Active CN110008027B (en) 2019-04-09 2019-04-09 Process running method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110008027B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737358A (en) * 2019-09-02 2020-01-31 Oppo(重庆)智能科技有限公司 thread binding method, terminal and storage medium
CN111400002B (en) * 2020-03-09 2022-09-27 聚好看科技股份有限公司 Application process and processor core binding method and terminal
CN111831414A (en) * 2020-07-01 2020-10-27 Oppo广东移动通信有限公司 Thread migration method and device, storage medium and electronic equipment
CN112039963B (en) * 2020-08-21 2023-04-07 广州虎牙科技有限公司 Processor binding method and device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201316240A (en) * 2011-10-06 2013-04-16 Rich Ip Technology Inc Touch processing method and system using graphic user interface image
CN103596252B (en) * 2013-11-28 2017-05-24 贝壳网际(北京)安全技术有限公司 Method and device for controlling mobile terminal and mobile terminal
CN104536822B (en) * 2014-12-31 2018-03-23 中科创达软件股份有限公司 A kind of process scheduling optimization method, process perform method and relevant apparatus
CN107357479B (en) * 2016-05-10 2022-05-06 中兴通讯股份有限公司 Application program management method and device
CN106066769B (en) * 2016-05-31 2019-05-21 Oppo广东移动通信有限公司 A kind of processing method and mobile terminal of mobile terminal
CN107273130B (en) * 2017-06-20 2020-08-04 深圳市万普拉斯科技有限公司 Method, device and terminal for accelerating interface drawing
CN108733427B (en) * 2018-03-13 2020-04-21 Oppo广东移动通信有限公司 Configuration method and device of input assembly, terminal and storage medium
CN109522131A (en) * 2018-11-26 2019-03-26 Oppo广东移动通信有限公司 Resource allocation method, device and equipment

Also Published As

Publication number Publication date
CN110008027A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110008027B (en) Process running method and device, terminal and storage medium
US10445132B2 (en) Method and apparatus for switching applications
JP2022527502A (en) Virtual object control methods and devices, mobile terminals and computer programs
CN110300328B (en) Video playing control method and device and readable storage medium
CN109064538B (en) View rendering method and device, storage medium and intelligent terminal
US20140351729A1 (en) Method of operating application and electronic device implementing the same
CN114779987B (en) Method, device, terminal and storage medium for displaying content
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
CN108595224A (en) Application prompts method, apparatus, storage medium and terminal
CN109726539B (en) Application starting method, device, terminal and storage medium
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN110968415B (en) Scheduling method and device of multi-core processor and terminal
CN109032732B (en) Notification display method and device, storage medium and electronic equipment
US20240160474A1 (en) Multi-core processor task scheduling method, and device and storage medium
EP3584710A1 (en) Method and apparatus for controlling display of mobile terminal, storage medium, and electronic device
CN115269196A (en) Thread pool dynamic creation method, device, equipment and storage medium
CN112764563A (en) Multi-screen control method, device and system, electronic equipment and storage medium
CN113568534A (en) Application icon display method and device and electronic equipment
CN108845838A (en) Application program preloads method, apparatus, storage medium and terminal
WO2019019158A1 (en) Method and device for operating application
CN111124519B (en) Method and system for optimizing starting speed of android application program based on input response
CN116889733A (en) Game resource loading method and device, electronic equipment and storage medium
CN112114965A (en) Application program running method and device, terminal and storage medium
CN113134234B (en) Information display method, device, terminal and storage medium
CN109992389B (en) Method and device for executing touch program, terminal and storage medium

Legal Events

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