CN106940657A - A kind of method and terminal that task distribution is carried out to processor - Google Patents

A kind of method and terminal that task distribution is carried out to processor Download PDF

Info

Publication number
CN106940657A
CN106940657A CN201710089882.7A CN201710089882A CN106940657A CN 106940657 A CN106940657 A CN 106940657A CN 201710089882 A CN201710089882 A CN 201710089882A CN 106940657 A CN106940657 A CN 106940657A
Authority
CN
China
Prior art keywords
task process
processor
terminal
end surface
task
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.)
Withdrawn
Application number
CN201710089882.7A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710089882.7A priority Critical patent/CN106940657A/en
Publication of CN106940657A publication Critical patent/CN106940657A/en
Withdrawn legal-status Critical Current

Links

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria

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 embodiment of the invention discloses a kind of method and terminal that task distribution is carried out to processor, wherein, a kind of method that task distribution is carried out to processor, by the information for determining the terminal end surface that user currently contacts;The first processor for needing to migrate task process is determined according to the information of terminal end surface;Determine that first processor needs the goal task process migrated;Control second processing device operational objective task process, and terminate the goal task process in first processor, realizing can be depending on the concrete condition according to user's using terminal to the Task Assigned Policy of processor, so that terminal is when in use, user can be avoided to feel the degree of heat of terminal, and then improve Consumer's Experience.

Description

A kind of method and terminal that task distribution is carried out to processor
Technical field
The invention belongs to electronic technology field, more particularly to a kind of method and terminal that task distribution is carried out to processor.
Background technology
Continued to increase with the popularity of terminal, people are to the performance requirement of terminal also more and more higher.Although existing Terminal can reach the lifting of service ability by its hardware configuration of upgrading, but terminal is when in use, still can produce heating existing As, or even to user bring hot sense, produce bad Consumer's Experience.
Therefore, when being handled in the presence of some task processing of progress or multi-process in the prior art simultaneously, given because terminal is generated heat User brings the problem of difference is experienced.
The content of the invention
The embodiment of the present invention provides a kind of method and terminal that task distribution is carried out to processor so that terminal is being used When, user can be avoided to feel the degree of heat of terminal, and then from improving Consumer's Experience.
In a first aspect, the embodiments of the invention provide a kind of method that task distribution is carried out to processor, terminal is at least wrapped Two processors are included, described two processors are respectively arranged at two different planes, and methods described includes:
Determine the information for the terminal end surface that user currently contacts;
The first processor for needing to migrate task process is determined according to the information of the terminal end surface;
Determine that the first processor needs the goal task process migrated;
Second processing device is controlled to run the goal task process, and the goal task terminated in the first processor enters Journey.
On the other hand, the embodiments of the invention provide a kind of terminal, the terminal at least includes two processors, described two Individual processor is respectively arranged at two different planes, and the terminal also includes:
Contact surface determining unit, the information for determining the terminal end surface that user currently contacts;
First determining unit, for being determined to need the first processing for migrating task process according to the information of the terminal end surface Device;
Second determining unit, the goal task process migrated for determining the first processor to need;
Control unit is run, for controlling second processing device to run the goal task process, and is terminated at described first Manage the goal task process in device.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, embodiment will be described below needed for be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of method that task distribution is carried out to processor provided in an embodiment of the present invention;
Fig. 2 is a kind of exemplary flow for method that task distribution is carried out to processor that another embodiment of the present invention is provided Figure;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram for terminal that another embodiment of the present invention is provided;
Fig. 5 is overall plan schematic diagram of the present invention;
Fig. 6 is a kind of schematic block diagram for terminal that yet another embodiment of the invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In implementing, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application programs, demonstration Application programs, word-processing application program, website create application programs, disk imprinting application programs, electricity Sub-table application programs, game application program, telephony application program, videoconference application program, electricity Application programs, photo management application are supported in sub- mail applications program, instant messaging applications program, exercise Program program, digital camera application program program, digital camera application programs, web-browsing application programs, numeral Music player application program program and/or video frequency player application programs.
The various application programs that can be performed in terminal can use at least one of such as touch sensitive surface Public physical user-interface device.It can adjust and/or change between application programs and/or in corresponding application programs program Become the corresponding information shown in the one or more functions and terminal of touch sensitive surface.So, the public physics frame of terminal Structure (for example, touch sensitive surface) can support the various application programs with user interface directly perceived and transparent for a user Program.
Fig. 1 is referred to, Fig. 1 is a kind of signal of method that task distribution is carried out to processor provided in an embodiment of the present invention Flow chart.The executive agent for carrying out the method for task distribution in the present embodiment to processor is terminal, and the terminal can be intelligence The mobile terminals such as mobile phone, panel computer, but not limited to this, can also be other-end, not be limited herein.
It should be noted that in all embodiments of the invention, terminal at least includes two processors, two processors It is respectively arranged at two different planes, the different plane can be the different faces, different of same PCB The different space plane of horizontal level after the either flexible PCB folding of the different faces of PCB.
As shown in figure 1, the method for carrying out task distribution to processor may comprise steps of:
S101:Determine the information for the terminal end surface that user currently contacts.
In step S101, the terminal end surface that user currently contacts can be one, two or more.Can be specifically Touch signal collection is carried out by the sensor for detecting touch operation, and then obtains the terminal end surface that user currently contacts Information.
Wherein, the data that terminal can be detected by touch-screen determine the information for the terminal end surface that user currently contacts, The data that infrared sensor or pressure sensor that can also be by being arranged at the terminal back side and/or side setting etc. be monitored, And then determine the information for the terminal end surface that user currently contacts.
The information for the terminal end surface that user currently contacts can include:The device information of terminal end surface, the area of terminal end surface The temperature information of domain information or terminal end surface.
It should be noted that the information for the terminal end surface that user currently contacts is used for the field for describing the currently used terminal of user Scape type.
For example, terminal is fixed on into direction disc enclosure when user is driving, and only a surface of terminal is touched Touch, i.e., when only touching screen to one of terminal and carrying out touch operation, determine the information for the terminal end surface that user currently contacts i.e. The contact screen information touched for this by user.
Or, when user's hand held terminal is not provided with the surface of screen, and during without any operation, determine that user currently connects The information of tactile terminal end surface is the information on the surface for being not provided with screen.
For another example when user's using terminal carries out audio or video broadcasting, and carry out volume adjusting or playing progress rate During regulation, while contacting the outer surface of multiple varying level positions of terminal, that is, the terminal end surface that user currently contacts is determined Information at least includes:Contact screen information and the side surface information of the terminal of volume adjusting that user touches.
It is understood that the information for the terminal end surface that user currently contacts embodies the instant situation of user's using terminal, I.e. the information for the terminal end surface that user currently contacts changes according to the change in location of the current touch terminal outer surface of user.
S102:The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
In step s 102, first processor can include one, it is two or more, the number of first processor is depended on The information of the terminal end surface.
It should be noted that first processor in the course of the work conducts produced heat to the terminal table for it The processor for the terminal end surface that temperature conduction to user can be currently contacted in the processor in face, the as course of work.
For example, the terminal end surface that user currently contacts is S1, terminal at least includes processor A and processor B, wherein, place Reason device A can operationally conduct heat to terminal end surface S1, and processor B will not operationally conduct heat to terminal table Face S1, accordingly, it is determined that the first processor for needing to migrate task process is processor A.
It should be noted that process is once execution activity of the program in the virtual address space of its own.It So to create process, be exactly in order that multiple programs can be concurrent execution, so as to improve the resource utilization of terminal and gulp down The amount of telling.
It is understood that task can include the content that a process is acted on, or interacted by multiple processes The content completed.
S103:Determine that the first processor needs the goal task process migrated.
In step s 103, the first processor is needed during the goal task process migrated can be first processor Part or all of task process.
It should be noted that when whole task process in the first processor are all handled by first processor When, and the temperature of first processor operationally is less than and can conduct to the temperature of terminal external surface, now the first processor The middle goal task process migrated without needs.
It is operated in first processor within 35 DEG C and including 35 DEG C, the temperature of first processor will not be conducted to terminal Exemplified by outer surface, when whole task process in the first processor are all handled by the first processor, described first The operating temperature of processor is 29 DEG C, now without the goal task process for needing to migrate in the first processor.
It is understood that determine first processor with the presence or absence of need migrate goal task process can with first at Temperature when managing device process task process is relevant or relevant with the number of first processor process task process.
For example, when the task process number in first processor is less than predetermined threshold value, then nothing in the first processor Need the goal task process of migration;When the task process number in first processor is more than predetermined threshold value, then described first The goal task process of migration in need in processor.
S104:Control second processing device to run the goal task process, and terminate the target in the first processor Task process.
In step S104, goal task process is pending partial task process or whole tasks in first processor Process.
It should be noted that during being migrated to goal task process, be after process status is extracted, in Destination node regenerates the process according to the process status extracted.Wherein, a process possesses many states, and with operation The evolution of system, process status is also more and more various.
Process status is generally comprised:Process performs state, Process flowchart, process memory state and the process address space, entered The message status and file status of journey.Specifically:
Process performs state:The processor state of current operation process is represented, it is related to machine height.
Process flowchart:Operating system system is used for controlling all letters of process, generally comprises process priority, process mark Know, parent process mark etc..
Process memory state and the process address space:All void including process deposit the heap of information, process data and process Stack information etc., is a topmost part for process status.
The message status of process:The message and the control information of connection status buffered including process.
File status:The file status of process includes filec descriptor and file buffering block, the storage for keeping file File synchronization is accessed between uniformity and process.
It is understood that when setting two or more processors simultaneously on the mainboard of terminal, by one of processing Task process in device, which is migrated into another processor or other processors, to be performed or during computing, task process migration it Stop the goal task process that task process is migrated in the first processor of termination afterwards, the wave of processor resource can be avoided Take.
In same operating system, first processor and second processing device being capable of separately or concurrently appointing in processing system Business, thus the goal task process is migrated from first processor into the second processing device run when, Bu Huiying Ring normally completing for task.Run because the goal task process in the first processing is migrated in second processing device so that the Task process in one processor is reduced or emptied, and then reduces the operating temperature of first processor, so as to reduce user The temperature of the terminal end surface currently contacted so that the temperature for the terminal end surface that user currently contacts becomes controllable.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
Fig. 2 is referred to, Fig. 2 is a kind of method that task distribution is carried out to processor that another embodiment of the present invention is provided Schematic flow diagram.The executive agent for carrying out the method for task distribution in the present embodiment to processor is terminal, and the terminal can be The mobile terminals such as smart mobile phone, panel computer, but not limited to this, can also be other-end, not be limited herein.Such as Fig. 2 institutes Show, the method that processor carries out task distribution may comprise steps of:
S201:Determine the information for the terminal end surface that user currently contacts.
The realization of step S101 in the specific implementation embodiment corresponding with Fig. 1 of step S201 in the present embodiment Mode is identical, specifically refers to the associated description of the step S101 in the corresponding embodiments of Fig. 1, here is omitted.
S202:The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
In step S202, first processor can include one, it is two or more, the number of first processor is depended on The information of the terminal end surface.
It should be noted that first processor in the course of the work conducts produced heat to the terminal table for it The processor for the terminal end surface that temperature conduction to user can be currently contacted in the processor in face, the as course of work.
Step S202 can specifically include:The adjacent domain of the terminal end surface is judged according to the information of the terminal end surface Inside whether it is provided with processor;If being provided with processor in the adjacent domain of the terminal end surface, using the processor as described First processor.
It is understood that whether processor is provided with adjacent domain by judging the terminal end surface, and then can Determine whether terminal end surface that user currently contacts can be during normal operation of terminal, and be processed the influence of device temperature can Energy.
It should be noted that whether be provided with the adjacent domain for judging the terminal end surface in processor, it is neighbouring Whether processor is provided with region, whether there is depending in the region beyond processor, in addition it is also necessary to whether judge the processor Produced heat can be conducted to the terminal end surface in the course of the work, be set in the adjacent domain of even described terminal end surface Have processor, when the processor in the course of the work by temperature conduction to the terminal end surface when, the processor be first Processor.
In all embodiments of the invention and in all steps, the adjacent domain of the terminal end surface is referred to the most The peripheral region of terminal end surface is currently contacted close to the user.
It is understood that the processor in the adjacent domain of the terminal end surface, can be with the terminal end surface most The processor set in close vertical plane, or with the processor that is set in the immediate parallel surface of the terminal end surface.
For example, when front (one side for carrying touch-screen) reverse side of terminal is equipped with processor, if user's contact is touched Screen, the processor of adjacent domain refers to the processor for being arranged at front pcb board.
S203:Determine that the first processor needs the goal task process migrated.
In step S203, the first processor is needed during the goal task process migrated can be first processor Part or all of task process.
As a preferred scheme, step S203 is specifically as follows:If the first processor is one, obtain described First task process list in first processor;Part or all of task process in the first task process list is made For the goal task process.
It is information-related due to first processor and the terminal end surface it is understood that with reference to step S202, therefore By obtaining in the first task process list in the first processor, the adjacent domain that the terminal end surface can be described The action of processor.
With reference to step S201 with step S202 for example, when the terminal end surface that user currently contacts be S1 when, it is determined that with The information for the terminal end surface that family is currently contacted at least includes particular locations of the terminal end surface S1 relative to all processors in terminal. The first processor for needing to migrate task process is determined according to the information of the terminal end surface, that is, is determined in terminal end surface S1 proximities The part or all of processor set in domain is used as first processor.Arranged by obtaining the first task process in first processor Table, is regarding the part or all of task process in first task process list as goal task process.
As another preferred scheme, step S203 is specifically as follows:If the first processor is two, obtain respectively Take the first task process list in two first processors and the second task process list;If the first task process Task process quantity in list is more than the task process quantity in the second task process list, then by the first task Partial task process in process list is used as the goal task process.
It should be noted that in such scheme, the goal task process be in first task process list with it is described Partial task process in second task process list in the larger side of task process quantity.
For example, when the terminal end surface that user currently contacts is S1 and S2, determining the terminal end surface that user currently contacts Information at least includes particular locations of the terminal end surface S1 and S2 relative to all processors in terminal.According to the letter of the terminal end surface Breath determines the first processor for needing to migrate task process, that is, determines each neighbouring in both terminal end surface S1 and terminal end surface S2 The part or all of processor set in region is used as first processor.By obtaining the first task process in first processor List and the second task process list, by the task process number in first task process list and the second task process list In task process number be compared so that selector portion or whole task are entered in the more side of task number of processes Cheng Zuowei goal task processes.
As another preferred scheme, step S203 is specifically as follows:If the first processor is multiple, obtain with Multiple one-to-one multiple tasks process lists of the first processor;Task in the multiple task process list is calculated to enter Task process quantity and the difference of the average value in the average value of number of passes amount, with the single task process list;By institute The partial task process in the task process list of the difference corresponding to more than 0 is stated as the goal task process.
It should be noted that when the first processor is multiple, it is necessary to judge the task in each first processor The size degree of number of processes, i.e., by calculating the average value of task process quantity in multiple tasks process list, then will be each Task process quantity seeks difference with the average value in task process list, and the difference is then used to describe in each first processor Task process number size degree.
S204:Control second processing device to run the goal task process, and terminate the target in the first processor Task process.
The realization of step S104 in the specific implementation embodiment corresponding with Fig. 1 of step S204 in the present embodiment Mode is identical, specifically refers to the associated description of the step S104 in the corresponding embodiments of Fig. 1, here is omitted.
S205:If the operating temperature for detecting the second processing device is more than preset temperature threshold value, at described second Partial task process migration in reason device is handled into the first processor.
In step S205, preset temperature threshold value is less than the maximum of the normal working temperature of second processing device.
It should be noted that in step S205, in order to avoid the waste of processor resource, by the portion in second processing device Point task process is migrated while handled into first processor, terminates the part times being migrated in second processing device Business process.
Fig. 5 shows the overall plan schematic diagram of the present invention, as shown in figure 5, terminal 10 at least includes first surface 11, the Two surfaces 12, the 3rd surface 13 and the 4th surface 14.Mainboard 20 inside terminal 10 include substrate 21, the first CPU22, 2nd CPU23, first sensor 24, second sensor 25, the sensor 27 of 3rd sensor 26 and the 4th.Wherein, first CPU22 is in the adjacent domain on the surface 13 of first surface 11 and the 3rd, and therefore, when the first CPU22 works, its temperature can be passed Be directed on first surface 11 with the 3rd surface 13.Equally, the 2nd CPU23 is in the neighbouring of second surface 12 and the 4th surface 14 In region, therefore, when the 2nd CPU23 works, its temperature can conduct to second surface 12 with the 4th surface 14.
As shown in figure 5, first sensor 24, the touch information for detecting first surface 11;Second sensor 25, is used for Detect the touch information of second surface 12;3rd sensor 26, the touch information for detecting the 3rd surface 13;4th sensor 27, the touch information for detecting the 4th surface 14.
If only first sensor 24 detects the touch information of first surface 11, or only 3rd sensor 26 is detected To the touch information on the 3rd surface 13, it is determined that the terminal end surface that user currently contacts is the surface 13 of first surface 11 or the 3rd, And determine that it is the first CPU22 to need the first processor for migrating task process.By by the goal task process in the first CPU22 Migrate to the 2nd CPU23, and then the first CPU22 of reduction operating temperature, so that the surface 13 of first surface 11 or the 3rd Temperature drop.
If only second sensor 25 detects the touch information of second surface 12, or only the 4th sensor 27 is detected To the touch information on the 4th surface 14, it is determined that the terminal end surface that user currently contacts is the surface 14 of second surface 12 or the 4th, And determine that it is the 2nd CPU23 to need the first processor for migrating task process.By by the goal task process in the 2nd CPU23 Migrate to the first CPU22, and then the 2nd CPU23 of reduction operating temperature, so that the surface 14 of second surface 12 or the 4th Temperature drop.
If first sensor 24 detects the touch information of first surface 11, while second sensor 25 detects the second table The touch information in face 12, it is determined that the terminal end surface that user currently contacts is first surface 11 and second surface 12, and determine to need The first processor for migrating task process is the first CPU22 or the 2nd CPU23.If the quantity of task process in the first CPU22 More than the quantity of task process in the 2nd CPU23, then the partial task process migration in the first CPU22 is entered to the 2nd CPU23 And when the first CPU22 it is suitable with the 2nd CPU23 operating temperature so that the temperature of balanced first surface 11 and second surface 12.
It should be noted that in the scene that first processor is multiple processors, again by the biography on substrate 21 Sensor (24,25,26,27) determines the first processor (CPU) for needing to migrate task process.The difference is that, it is necessary to according to calculating The average value of task process quantity in multiple processors, and task process quantity and the average value in each processor Difference, and then determine to need the goal task process of migration, due to being had been described in embodiment of the method, therefore no longer go to live in the household of one's in-laws on getting married herein State.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
In addition, the operating temperature by detecting second processing device, and it is more than default temperature in the operating temperature of second processing device When spending threshold value, the partial task process migration in second processing device is handled into first processor so that mitigating the While the task process of one processor, outside the temperature for reducing first processor, it is ensured that the normal work of second processing device And safe operation.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 3.Wherein, terminal can be intelligence The mobile terminals such as mobile phone, panel computer, can also be other-end, not be limited herein.What the terminal 300 of the present embodiment included Each unit is used to perform each step in the corresponding embodiments of Fig. 1, specifically refers in the corresponding embodiments of Fig. 1 and Fig. 1 Associated description, is not repeated herein.
The terminal 300 of the present embodiment includes:Contact surface determining unit 301, the first determining unit 302, the second determining unit 303 and operation control unit 304.Specifically:
Contact surface determining unit 301, the information for determining the terminal end surface that user currently contacts.
For example, contact surface determining unit 301 determines the information of terminal end surface that user currently contacts, and by the terminal table The information in face is sent to the first determining unit 302.
First determining unit 302, the information of the terminal end surface for receiving the transmission of contact surface determining unit 301, and The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
For example, the first determining unit 302 receives the information for the terminal end surface that contact surface determining unit 301 is sent, and The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
Second determining unit 303, the goal task process migrated for determining the first processor to need.
For example, the second determining unit 303 determines that the first processor needs the goal task process migrated, and will be described The information of target process is sent to operation control unit 304.
Control unit 304 is run, for receiving the information for the target process that the second determining unit 303 is sent, and is controlled Second processing device processed runs the goal task process, and terminates the goal task process in the first processor.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
It is a kind of schematic block diagram for terminal that another embodiment of the present invention is provided referring to Fig. 4.The terminal of the present embodiment 400 each units included are used to perform each step in the corresponding embodiments of Fig. 2, specifically refer to the corresponding realities of Fig. 2 and Fig. 2 The associated description in example is applied, is not repeated herein.
The terminal 400 of the present embodiment includes:Contact surface determining unit 401, the first determining unit 402, the second determining unit 403rd, operation control unit 404 and migration units 405.Specifically:
Contact surface determining unit 401, the information for determining the terminal end surface that user currently contacts.
For example, contact surface determining unit 401 determines the information of terminal end surface that user currently contacts, and by the terminal table The information in face is sent to the first determining unit 402.
First determining unit 402, the information of the terminal end surface for receiving the transmission of contact surface determining unit 401, and The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
For example, the first determining unit 402 receives the information for the terminal end surface that contact surface determining unit 401 is sent, and The first processor for needing to migrate task process is determined according to the information of the terminal end surface.
Further, the first determining unit 402 includes:Judging unit 4021 and first processor determining unit 4022.
It is in judging unit 4021, the adjacent domain for judging the terminal end surface according to the information of the terminal end surface It is no to be provided with processor.
For example, judging unit 4021 judged according to the information of the terminal end surface be in the adjacent domain of the terminal end surface It is no to be provided with processor.
First processor determining unit 4022, if for being provided with processor in the adjacent domain of the terminal end surface, will The processor is used as the first processor.
If for example, being provided with processor in the adjacent domain of the terminal end surface of first processor determining unit 4022, inciting somebody to action The processor is used as the first processor.
Further, the second determining unit 403 includes:
First acquisition unit 4031, if being one for the first processor, is obtained in the first processor First task process list.
If for example, the first processor of first acquisition unit 4031 is one, obtaining in the first processor First task process list, and first task process list is sent to first object task process unit 4032.
First object task process unit 4032, the first task process row for receiving the transmission of first acquisition unit 4031 Table, and it regard the part or all of task process in the first task process list as the goal task process.
For example, first object task process unit 4032 receives the first task process row that first acquisition unit 4031 is sent Table, and it regard the part or all of task process in the first task process list as the goal task process.
Further, the second determining unit 403 includes:
Second acquisition unit 4033, if being two for the first processor, is obtained at two described first respectively Manage the first task process list in device and the second task process list.
If for example, the first processor of second acquisition unit 4033 is two, obtaining respectively at two described first The first task process list in device and the second task process list are managed, and by the first task process list and described second Task process list is sent to the second goal task process unit 4034.
Second goal task process unit 4034, the first task for receiving the transmission of second acquisition unit 4033 is entered Cheng Liebiao and the second task process list, and if the task process quantity in the first task process list be more than it is described Task process quantity in second task process list, then using the partial task process in the first task process list as The goal task process.
For example, the first task that the second goal task process unit 4034 receives the transmission of second acquisition unit 4033 is entered Cheng Liebiao and the second task process list, and if the task process quantity in the first task process list be more than it is described Task process quantity in second task process list, then using the partial task process in the first task process list as The goal task process.
Further, the second determining unit 403 includes:
3rd acquiring unit 4035, if being multiple for the first processor, is obtained and multiple first processing The one-to-one multiple tasks process list of device, and multiple tasks process list is sent to computing unit 4036.
If for example, the first processor of the 3rd acquiring unit 4035 is multiple, obtaining and multiple first processing The one-to-one multiple tasks process list of device, and multiple tasks process list is sent to computing unit 4036.
Computing unit 4036, for receiving the multiple tasks process list that the 3rd acquiring unit 4035 is sent, and calculates institute The average value of task process quantity in multiple tasks process list is stated, with the task process number in the single task process list Amount and the difference of the average value.
For example, computing unit 4036 receives the multiple tasks process list that the 3rd acquiring unit 4035 is sent, and calculate institute The average value of task process quantity in multiple tasks process list is stated, with the task process number in the single task process list Amount and the difference of the average value.
3rd goal task process unit 4037, for the difference to be more than to the task process list corresponding to 0 In partial task process be used as the goal task process.
For example, the difference is more than the task process list corresponding to 0 by the 3rd goal task process unit 4037 In partial task process be used as the goal task process.
Migration units 405, will if be more than preset temperature threshold value for detecting the operating temperature of the second processing device Partial task process migration in the second processing device is handled into the first processor.
If for example, when the operating temperature that migration units 405 detect the second processing device is more than preset temperature threshold value, inciting somebody to action Partial task process migration in the second processing device is handled into the first processor.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
In addition, the operating temperature by detecting second processing device, and it is more than default temperature in the operating temperature of second processing device When spending threshold value, the partial task process migration in second processing device is handled into first processor so that mitigating the While the task process of one processor, outside the temperature for reducing first processor, it is ensured that the normal work of second processing device And safe operation.
It is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided referring to Fig. 5.The present embodiment as shown in Figure 5 In terminal 500 can include:It is one or more processors 501, one or more input equipments 502, one or more then defeated Go out equipment 503 and one or more memories 504.Above-mentioned processor 501, then input equipment 502, output equipment 503 and storage Device 504 completes mutual communication by communication bus 505.
Memory 504 is instructed for storage program.
The programmed instruction that processor 501 is used to be stored according to memory 504 performs following operate:
Processor 501 is used for the information for determining the terminal end surface that user currently contacts.
Processor 501 is additionally operable to be determined to need the first processing for migrating task process according to the information of the terminal end surface Device.
Processor 501 is additionally operable to determine that the first processor needs the goal task process migrated.
Processor 501 is additionally operable to control second processing device and runs the goal task process, and terminates first processing Goal task process in device.
, will if processor 501 is additionally operable to detect the operating temperature of the second processing device more than preset temperature threshold value Partial task process migration in the second processing device is handled into the first processor.
Processor 501 is in the adjacent domain specifically for judging the terminal end surface according to the information of the terminal end surface It is no to be provided with processor;If being provided with processor in the adjacent domain of the terminal end surface, the processor is regard as described first Processor.
If processor 501 is one specifically for the first processor, first in the first processor is obtained Task process list;Part or all of task process in the first task process list is entered as the goal task Journey.
If processor 501 is two specifically for the first processor, two first processors are obtained respectively In first task process list and the second task process list;If the task process quantity in the first task process list More than the task process quantity in the second task process list, then by the partial task in the first task process list Process is used as the goal task process.
If processor 501 is multiple specifically for the first processor, obtain and multiple first processors one One corresponding multiple tasks process list;The average value of task process quantity in the multiple task process list is calculated, with list Task process quantity and the difference of the average value in the individual task process list;The difference is more than corresponding to 0 Partial task process in the task process list is used as the goal task process.
In such scheme, by the information for determining the terminal end surface that user currently contacts;It is true according to the information of terminal end surface Surely the first processor of migration task process is needed;Determine that first processor needs the goal task process migrated;Control second Processor operational objective task process, and the goal task process in first processor is terminated, realize the task point to processor Can be depending on the concrete condition according to user's using terminal with strategy so that terminal when in use, can avoid user from feeling The degree of heat of terminal, and then improve Consumer's Experience.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (application software lication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor can also be any conventional processor etc..
Input equipment 502 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), camera, microphone etc., then output equipment 503 can include display (LCD etc.), loudspeaker etc..
The memory 505 can include read-only storage and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 505 can also include nonvolatile RAM.For example, memory 505 can also be deposited Store up the information of device type.
In implementing, processor 501, input equipment 502 described in the embodiment of the present invention, output equipment 503 can Perform and retouched in the first embodiment and second embodiment provided in an embodiment of the present invention that method for allocating tasks is carried out to processor The implementation stated, also can perform the implementation of the terminal described by the embodiment of the present invention, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
Step in present invention method can according to actual needs the adjustment of carry out order, merge and delete.
Unit in embodiment of the present invention terminal can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize embodiment of the present invention scheme according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of method that task distribution is carried out to processor, it is characterised in that terminal at least includes two processors, described two Individual processor is respectively arranged at two different planes, and methods described includes:
Determine the information for the terminal end surface that user currently contacts;
The first processor for needing to migrate task process is determined according to the information of the terminal end surface;
Determine that the first processor needs the goal task process migrated;
Control second processing device to run the goal task process, and terminate the goal task process in the first processor.
2. according to the method described in claim 1, it is characterised in that the information according to the terminal end surface determines that needs are moved The first processor of task process is moved, including:
Judge whether be provided with processor in the adjacent domain of the terminal end surface according to the information of the terminal end surface;
If being provided with processor in the adjacent domain of the terminal end surface, the processor is regard as the first processor.
3. method according to claim 2, it is characterised in that the determination first processor needs the target migrated Task process, including:
If the first processor is one, the first task process list in the first processor is obtained;
It regard the part or all of task process in the first task process list as the goal task process.
4. method according to claim 2, it is characterised in that the determination first processor needs the target migrated Task process, including:
If the first processor be two, respectively obtain two first processors in first task process list with Second task process list;
If the task that the task process quantity in the first task process list is more than in the second task process list is entered Number of passes amount, then regard the partial task process in the first task process list as the goal task process.
5. method according to claim 2, it is characterised in that the determination first processor needs the target migrated Task process, including:
If the first processor is multiple, obtains and arranged with multiple one-to-one multiple tasks processes of first processor Table;
The average value of task process quantity in the multiple task process list is calculated, and in the single task process list Task process quantity and the difference of the average value;
The partial task process difference being more than in the task process list corresponding to 0 is entered as the goal task Journey.
6. a kind of terminal, it is characterised in that the terminal at least includes two processors, described two processors are respectively arranged at Two different planes, the terminal also includes:
Contact surface determining unit, the information for determining the terminal end surface that user currently contacts;
First determining unit, for determining the first processor for needing to migrate task process according to the information of the terminal end surface;
Second determining unit, the goal task process migrated for determining the first processor to need;
Control unit is run, for controlling second processing device to run the goal task process, and the first processor is terminated In goal task process.
7. terminal according to claim 6, it is characterised in that first determining unit includes:
Whether provided with place in judging unit, the adjacent domain for judging the terminal end surface according to the information of the terminal end surface Manage device;
First processor determining unit, if for being provided with processor in the adjacent domain of the terminal end surface, by the processing Device is used as the first processor.
8. terminal according to claim 7, it is characterised in that second determining unit includes:
First acquisition unit, if being one for the first processor, obtains the first task in the first processor Process list;
First object task process unit, for using the part or all of task process in the first task process list as The goal task process.
9. terminal according to claim 7, it is characterised in that second determining unit includes:
Second acquisition unit, if being two for the first processor, is obtained in two first processors respectively First task process list and the second task process list;
Second goal task process unit, if being more than described for the task process quantity in the first task process list Task process quantity in two task process lists, then regard the partial task process in the first task process list as institute State goal task process.
10. terminal according to claim 7, it is characterised in that second determining unit includes:
3rd acquiring unit, if for the first processor to be multiple, obtaining and a pair of the multiple first processors 1 The multiple tasks process list answered;
Computing unit, the average value for calculating task process quantity in the multiple task process list, with single described The task process quantity in process list of being engaged in and the difference of the average value;
3rd goal task process unit, for the part being more than the difference in the task process list corresponding to 0 Task process is used as the goal task process.
CN201710089882.7A 2017-02-20 2017-02-20 A kind of method and terminal that task distribution is carried out to processor Withdrawn CN106940657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710089882.7A CN106940657A (en) 2017-02-20 2017-02-20 A kind of method and terminal that task distribution is carried out to processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710089882.7A CN106940657A (en) 2017-02-20 2017-02-20 A kind of method and terminal that task distribution is carried out to processor

Publications (1)

Publication Number Publication Date
CN106940657A true CN106940657A (en) 2017-07-11

Family

ID=59468592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710089882.7A Withdrawn CN106940657A (en) 2017-02-20 2017-02-20 A kind of method and terminal that task distribution is carried out to processor

Country Status (1)

Country Link
CN (1) CN106940657A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528083A (en) * 2022-02-17 2022-05-24 珠海星云智联科技有限公司 Dispatching processing method of DPU service data and related product
WO2022105664A1 (en) * 2020-11-20 2022-05-27 北京灵汐科技有限公司 Computing system and operation method therefor, and electronic device and computer-readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440173A (en) * 2013-08-23 2013-12-11 华为技术有限公司 Scheduling method and related devices of multi-core processors
CN103729248A (en) * 2012-10-16 2014-04-16 华为技术有限公司 Method and device for determining tasks to be migrated based on cache perception

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729248A (en) * 2012-10-16 2014-04-16 华为技术有限公司 Method and device for determining tasks to be migrated based on cache perception
US20150205642A1 (en) * 2012-10-16 2015-07-23 Huawei Technologies Co., Ltd. Method and Apparatus for Determining To-Be-Migrated Task Based on Cache Awareness
CN103440173A (en) * 2013-08-23 2013-12-11 华为技术有限公司 Scheduling method and related devices of multi-core processors

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105664A1 (en) * 2020-11-20 2022-05-27 北京灵汐科技有限公司 Computing system and operation method therefor, and electronic device and computer-readable medium
CN114528083A (en) * 2022-02-17 2022-05-24 珠海星云智联科技有限公司 Dispatching processing method of DPU service data and related product

Similar Documents

Publication Publication Date Title
US11809693B2 (en) Operating method for multiple windows and electronic device supporting the same
US10908789B2 (en) Application switching method and apparatus and graphical user interface
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
US10649540B2 (en) Information handling devices with touch-based reflective display
US10185403B2 (en) Information handling devices with touch-based reflective display
US20150268927A1 (en) Information handling devices with touch-based reflective display
US9423953B2 (en) Emulating pressure sensitivity on multi-touch devices
CN104007894A (en) Portable device and method for operating multiapplication thereof
CN107728876A (en) A kind of method of split screen display available, terminal and computer-readable recording medium
CN107181858A (en) A kind of method and terminal for showing notification message
CN107357857A (en) A kind of method and service node device for updating cache information
CN106951057A (en) The control method and mobile terminal of application
WO2020062908A1 (en) Method and system for controlling display orientation, and mobile terminal
CN107168602A (en) One kind control application drawing calibration method and terminal
CN106648326A (en) Method for regulating screen-off time, and mobile terminal
CN107480001A (en) System recovery method and device
CN106547506A (en) A kind of multi-screen display method and mobile terminal
CN106940657A (en) A kind of method and terminal that task distribution is carried out to processor
CN108366298A (en) Video broadcasting method, mobile terminal and computer readable storage medium
CN106775894A (en) The operation method and terminal of a kind of application program
CN104793848B (en) Information processing method and electronic equipment
WO2022218152A1 (en) Window switching method, storage medium, and related device
CN107861853A (en) Progress prompt method, terminal and computer-readable medium
WO2019051655A1 (en) Screen brightness adjustment method, and terminal
CN106293460A (en) A kind of method and terminal preventing from touching maloperation

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170711