CN106776039A - A kind of data processing method and device - Google Patents
A kind of data processing method and device Download PDFInfo
- Publication number
- CN106776039A CN106776039A CN201611265302.7A CN201611265302A CN106776039A CN 106776039 A CN106776039 A CN 106776039A CN 201611265302 A CN201611265302 A CN 201611265302A CN 106776039 A CN106776039 A CN 106776039A
- Authority
- CN
- China
- Prior art keywords
- processor
- target
- type
- service
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Abstract
The embodiment of the invention discloses a kind of data processing method and device, wherein, data processing method includes:Traffic distributor receives pending data;The traffic distributor determines the pending data said target type of service;The traffic distributor determines the target processor with the target service type adaptation;The pending data is input into the target processor and is processed by the traffic distributor.Using the present invention, targetedly data can be processed, improve data-handling efficiency, and save process resource.
Description
Technical field
The present invention relates to technical field of communication network, more particularly to a kind of data processing method and device.
Background technology
The all of business datum of terminal is processed by a primary processor, such as voice, picture, music, text
Etc. after business datum input terminal, terminal is processed the business datum using primary processor, in order to improve data processing
Efficiency, primary processor is constantly optimized in the industry, such as constantly lifted in processing speed, the accuracy rate of processing data is continuous
Lifting, etc..But the business datum being typically different, the performance requirement to primary processor is different, such as, using height configuration performance
Processor treatment plain text information, then can waste very much.
The content of the invention
The embodiment of the present invention provides a kind of data processing method and device, and targetedly data can be processed,
Data-handling efficiency is improved, and saves process resource.
Embodiment of the present invention first aspect provides a kind of data processing method, is applied to terminal, and the terminal includes business
Distributor and multiple processors, the performance of the multiple processor are different, and it may include:
The traffic distributor receives pending data;
The traffic distributor determines the pending data said target type of service;
The traffic distributor determines the target processor with the target service type adaptation;
The pending data is input into the target processor and is processed by the traffic distributor.
Embodiment of the present invention second aspect provides a kind of data processing equipment, is applied to the traffic distributor of terminal, described
Terminal also includes multiple processors, and the performance of the plurality of processor is different, and it may include:
Receiving unit, for receiving pending data;
First determining unit, for determining the pending data said target type of service;
Second determining unit, for determining the target processor with the target service type adaptation;
First input module, is processed for the pending data to be input into the target processor.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
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 the first embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention;
Fig. 3 is the 3rd embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal inner system architecture diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of data processing equipment provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another data processing equipment provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another data processing equipment provided in an embodiment of the present invention.
Specific 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.
Term " target " in description and claims of this specification and the accompanying drawing be for distinguishing different objects,
Rather than for describing special object.Additionally, term " comprising " and " having " and their any deformations, it is intended that covering is not
Exclusive includes.Process, method, system, product or the equipment for for example containing series of steps or unit are not limited to
The step of listing or unit, but alternatively also include the step of not listing or unit, or alternatively also include for these
Process, method, product or other intrinsic steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not each mean
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Terminal described by the embodiment of the present invention can include smart mobile phone (such as Android phone, iOS mobile phones,
Windows Phone mobile phones etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned end
End.
Data processing method provided in an embodiment of the present invention and device are specifically described below in conjunction with Fig. 1 to Fig. 7.
Fig. 1 is refer to, is the first embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention.This reality
Apply the data processing method described in example and can apply to terminal, the terminal includes traffic distributor and multiple processors,
The performance of the plurality of processor is different, as illustrated, the data processing method of the embodiment of the present invention includes step:
S101, the traffic distributor receives pending data;
In the embodiment of the present invention, pending data can be the various data that terminal is received, such as speech data, video counts
According to, image data, music data, text data etc..As shown in figure 4, terminal inner sets traffic distributor and multiple performances
Different processors (processor 1, processor 2 and processor 3 in such as figure).For example, the processing speed performance of processor 1
Preferably, other performance is general, and the treatment accuracy rate highest of processor 2, processing speed is slightly slow, and the processing speed of processor 3
All poor with treatment accuracy rate, processor 3 belongs to the worst processor of performance, certain processor 3 in three processors
Cost also than relatively low, and the cost of processor 2 and processor 3 is higher.
S102, the traffic distributor determines the pending data said target type of service;
In the embodiment of the present invention, traffic distributor is received after pending data, and the pending data is parsed,
Determine the pending data said target type of service.Specific optional, pending data is packaged in frame structure form, should
Frame structure includes the affiliated type of service mark of the pending data.Traffic distributor can be according to the service class in the frame structure
Type mark determines the pending data said target type of service.
Type of service can be divided according to the type of pending data, such as, chatted using instant messaging application
It chat message belongs to text services type;The local video of broadcasting, the Online Video played, or should using instant messaging
Video traffic type is belonged to the video data that Video chat transmitted is carried out;Using the local audio of terminal plays, play
Online audio, user between the voice call that is carried out using terminal or belong to audio using the music that music application is played
Type of service;The signaling interacted between terminal and base station or access point belongs to control business type.
S103, the traffic distributor determines the target processor with the target service type adaptation;
In the embodiment of the present invention, the data for being typically different type of service are different to processor performance demand, such as, for sound
The data of frequency type of service or the data of video traffic type, the processing speed demand to processor are higher, if treatment
The processing speed of device is not fast enough, then can produce Caton phenomenon, has a strong impact on Consumer's Experience.And for the number of control business type
According to the treatment accuracy rate demand to processor is higher, if the treatment accuracy rate of processor is not high enough, can produce data solution
The consequence of mistake is analysed, network connection failure is ultimately resulted in.And for the data of text services type, to the processing speed of processor
With treatment accuracy rate demand without particular requirement.
Traffic distributor determines the target processor with the target service type adaptation of pending data, specific optional,
Traffic distributor can pre-set the corresponding relation between miscellaneous service type and processor, and the corresponding relation can be basis
The data processing needs of the type of service determine corresponding processor, such as, and the service class higher for processing speed requirement
Type is the processor of correspondence high processing rate, and the type of service higher for treatment accuracy rate requirement is that correspondence high disposal is accurate
The processor of rate.
After traffic distributor determines the target service type of pending data, that is, inquire about corresponding with the target service type
Target processor, and the target processor is defined as the processor with target service type adaptation.
Or, each processor is divided into multiple classifications by traffic distributor according to performance difference in advance, such as process speed
More much faster processor of degree is divided into the processor of high processing rate, and treatment accuracy rate multiple processors higher are divided
It is the processor of high-accuracy, multiple processors of general process performance are divided into general processor.When traffic distributor determines
After the target service type of pending data, processing requirement of the target service type for processor, such as target industry are obtained
Service type is video traffic type, then need the processor of high processing rate, i.e., from multiple processors of high disposal device speed
One free time of selection or the minimum processor of load as target processor.
The pending data is input into the target processor and is processed by S104, the traffic distributor.
In the embodiment of the present invention, pending data is input into the target processor and is processed by traffic distributor, such as Fig. 4 institutes
Show, if traffic distributor determination is processor 3, the industry with the target processor of the target service type adaptation of pending data
Business distributor will the pending data input processor 3 processed.
It should be noted that each processor simultaneously processing data, same hardware resource may be called, such as, place
Reason device 2 needs to call bluetooth hardware resource in processing data, and processor 3 is in processing data, it is also desirable to call bluetooth hardware
Resource, then processor 2 and processor 3 can call same hardware resource using time-multiplexed mode.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
Fig. 2 is refer to, is the second embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention.This reality
Apply the data processing method described in example and can apply to terminal, the terminal includes traffic distributor and multiple processors,
The performance of the plurality of processor is different, as illustrated, the data processing method of the embodiment of the present invention includes step:
S201, performance difference and multiple type of service of the traffic distributor previously according to the multiple processor
The process demand of data, sets the corresponding relation between the multiple type of service and the multiple processor;
Optionally, the corresponding relation between the multiple type of service and the multiple processor includes:
Speech business type and video traffic type are corresponding more than the processor of first threshold with processing speed;
Control signaling type of service is corresponding more than the processor of Second Threshold with treatment accuracy rate;
Text services type is less than or equal to the first threshold with processing speed, and treatment accuracy rate is less than or waits
In the processor correspondence of the Second Threshold.
In the embodiment of the present invention, traffic distributor can pre-set right between multiple types of service and multiple processors
Should be related to, such as, the data according to type of service distribute at least one processor to the process demand of processor, and set up the industry
Corresponding relation between service type and at least one processor, is that a type of service can be one processor of correspondence,
Or a business correspondence multiple processor, it is further alternative, can be multiple type of service correspondence same processors, or
Person can also be that a processor only corresponds to a type of service, i.e., be one-to-one closing between processor and type of service
System.
Specific optional, speech business type and video traffic type are higher to the processing speed demand of processor,
Speech business type and video traffic type and processing speed can then be set up corresponding more than the processor of first threshold, this
One threshold value can be set according to actual conditions;Control signaling type of service compares the treatment accuracy rate demand of processor
Height, then can set up control signaling type of service corresponding more than the processor of Second Threshold with treatment accuracy rate;For general
Type of service, such as text services type, then it is corresponding with general processor to set up text services type, the general place
Reason device can be processing speed and the smaller treatment for the treatment of accuracy rate.
Each type of service and processor are discriminatively set up into corresponding relation by above-mentioned, can with cost-effective because
High performance processor cost is more much higher than the processor cost of low performance, while also not interfering with the treatment effeciency to data.
S202, the traffic distributor receives pending data;
S203, the traffic distributor determines the pending data said target type of service;
Embodiment of the present invention step S202~S203 refer to the embodiment step S101~S102 of Fig. 1, no longer go to live in the household of one's in-laws on getting married herein
State.
S204, the traffic distributor searches target processor corresponding with the target service type.
In the embodiment of the present invention, after the corresponding relation of each type of service and processor is established, traffic distributor is
Target processor corresponding with target service type can be searched, it is necessary to explanation, if finding corresponding with target service type
Target processor includes multiple processors, can select from the plurality of processor the processor of load minimum as with target industry
The target processor of service type adaptation.
The pending data is input into the target processor and is processed by S205, the traffic distributor.
Embodiment of the present invention step S205 refer to the embodiment step S104 of Fig. 1, will not be repeated here.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
Fig. 3 is refer to, is the 3rd embodiment schematic flow sheet of data processing method provided in an embodiment of the present invention.This reality
Apply the data processing method described in example and can apply to terminal, the terminal includes traffic distributor and multiple processors,
The performance of the plurality of processor is different, as illustrated, the data processing method of the embodiment of the present invention includes step:
S301, the traffic distributor receives pending data;
S302, the traffic distributor determines the pending data said target type of service;
S303, the traffic distributor determines the target processor with the target service type adaptation;
Embodiment of the present invention step S301~S303 refer to the embodiment step S101~S103 of Fig. 1, no longer go to live in the household of one's in-laws on getting married herein
State.
Whether S304, the traffic distributor judges the load of the target processor less than the 3rd threshold value;
S305, if the load of the target processor is less than the 3rd threshold value, the traffic distributor is waited to locate by described
Target processor described in reason data input is processed.
In the embodiment of the present invention, if type of service one processor of correspondence, but a processor can be correspondingly more
Individual type of service, when it is determined that after target processor with target service type adaptation, traffic distributor judges that the target is processed
Whether the load of device is less than the 3rd threshold value.
If the load of target processor is less than the 3rd threshold value, pending data input target processor is processed.
S306, if the load of the target processor is more than the 3rd threshold value, the traffic distributor determines the mesh
Mark the alternative processor of processor, the target capabilities value of the alternative processor and the target capabilities value phase of the target processor
The 4th threshold value is differed from, the target capabilities are the optimal performance of the target processor;
In the embodiment of the present invention, if the load of target processor is more than the 3rd threshold value, can not be defeated by the pending data
Enter the target processor to be processed, if because by the pending data input target processor place of carrying out comprehend wait it is more long when
Between, reduce Consumer's Experience.
If the load of target processor is more than the 3rd threshold value, traffic distributor determines the alternative processor of target processor,
It should be noted that the alternative processor can be binding setting in advance (such as binding in advance corresponding to the target processor
Alternative processor), or faced according to the current loading condition of each processor and the process performance of each processor
When distribute.
The pending data is input into the alternative processor and is processed by S307, the traffic distributor.
In the embodiment of the present invention, traffic distributor is processed pending data input alternative processor, by this
Mode can be with the load of balanced each processor, while will not also reduce the treatment effeciency to pending data.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
Fig. 5 is refer to, is the structural representation of data processing equipment provided in an embodiment of the present invention.Embodiment of the present invention institute
The data processing equipment of description is applied to the traffic distributor of terminal, and the terminal also includes multiple processors, the plurality for the treatment of
The performance of device is different, as illustrated, the data processing equipment of the embodiment of the present invention includes receiving unit 10, the first determining unit
11st, the second determining unit number 12 and the first input block 13;
Receiving unit 10, for receiving pending data;
In the embodiment of the present invention, pending data can be the various data that terminal is received, such as speech data, video counts
According to, image data, music data, text data etc..As shown in figure 4, terminal inner sets traffic distributor and multiple performances
Different processors (processor 1, processor 2 and processor 3 in such as figure).For example, the processing speed performance of processor 1
Preferably, other performance is general, and the treatment accuracy rate highest of processor 2, processing speed is slightly slow, and the processing speed of processor 3
All poor with treatment accuracy rate, processor 3 belongs to the worst processor of performance, certain processor 3 in three processors
Cost also than relatively low, and the cost of processor 2 and processor 3 is higher.
First determining unit 11, for determining the pending data said target type of service;
In the embodiment of the present invention, traffic distributor is received after pending data, and the pending data is parsed,
Determine the pending data said target type of service.Specific optional, pending data is packaged in frame structure form, should
Frame structure includes the affiliated type of service mark of the pending data.Traffic distributor can be according to the service class in the frame structure
Type mark determines the pending data said target type of service.
Type of service can be divided according to the type of pending data, such as, chatted using instant messaging application
It chat message belongs to text services type;The local video of broadcasting, the Online Video played, or should using instant messaging
Video traffic type is belonged to the video data that Video chat transmitted is carried out;Using the local audio of terminal plays, play
Online audio, user between the voice call that is carried out using terminal or belong to audio using the music that music application is played
Type of service;The signaling interacted between terminal and base station or access point belongs to control business type.
Second determining unit 12, for determining the target processor with the target service type adaptation;
In the embodiment of the present invention, the data for being typically different type of service are different to processor performance demand, such as, for sound
The data of frequency type of service or the data of video traffic type, the processing speed demand to processor are higher, if treatment
The processing speed of device is not fast enough, then can produce Caton phenomenon, has a strong impact on Consumer's Experience.And for the number of control business type
According to the treatment accuracy rate demand to processor is higher, if the treatment accuracy rate of processor is not high enough, can produce data solution
The consequence of mistake is analysed, network connection failure is ultimately resulted in.And for the data of text services type, to the processing speed of processor
With treatment accuracy rate demand without particular requirement.
Traffic distributor determines the target processor with the target service type adaptation of pending data, specific optional,
Traffic distributor can pre-set the corresponding relation between miscellaneous service type and processor, and the corresponding relation can be basis
The data processing needs of the type of service determine corresponding processor, such as, and the service class higher for processing speed requirement
Type is the processor of correspondence high processing rate, and the type of service higher for treatment accuracy rate requirement is that correspondence high disposal is accurate
The processor of rate.
After traffic distributor determines the target service type of pending data, that is, inquire about corresponding with the target service type
Target processor, and the target processor is defined as the processor with target service type adaptation.
Or, each processor is divided into multiple classifications by traffic distributor according to performance difference in advance, such as process speed
More much faster processor of degree is divided into the processor of high processing rate, and treatment accuracy rate multiple processors higher are divided
It is the processor of high-accuracy, multiple processors of general process performance are divided into general processor.When traffic distributor determines
After the target service type of pending data, processing requirement of the target service type for processor, such as target industry are obtained
Service type is video traffic type, then need the processor of high processing rate, i.e., from multiple processors of high disposal device speed
One free time of selection or the minimum processor of load as target processor.
First input block 13, is processed for the pending data to be input into the target processor.
In the embodiment of the present invention, pending data is input into the target processor and is processed by traffic distributor, such as Fig. 4 institutes
Show, if traffic distributor determination is processor 3, the industry with the target processor of the target service type adaptation of pending data
Business distributor will the pending data input processor 3 processed.
It should be noted that each processor simultaneously processing data, same hardware resource may be called, such as, place
Reason device 2 needs to call bluetooth hardware resource in processing data, and processor 3 is in processing data, it is also desirable to call bluetooth hardware
Resource, then processor 2 and processor 3 can call same hardware resource using time-multiplexed mode.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
Fig. 6 is refer to, is the structural representation of another data processing equipment provided in an embodiment of the present invention.It is of the invention real
The traffic distributor that the data processing equipment described by example is applied to terminal is applied, the terminal also includes multiple processors, and this is more
The performance of individual processor is different, as illustrated, the data processing equipment of the embodiment of the present invention includes setting unit 20, receiving unit
21st, the first determining unit 22, the second determining unit 23 and the first input block 24;
Setting unit 20, for the performance difference previously according to the multiple processor and the data of multiple types of service
Process demand, the corresponding relation between the multiple type of service and the multiple processor is set;
Optionally, the corresponding relation between the multiple type of service and the multiple processor includes:
Speech business type and video traffic type are corresponding more than the processor of first threshold with processing speed;
Control signaling type of service is corresponding more than the processor of Second Threshold with treatment accuracy rate;
Text services type is less than or equal to the first threshold with processing speed, and treatment accuracy rate is less than or waits
In the processor correspondence of the Second Threshold.
In the embodiment of the present invention, traffic distributor can pre-set right between multiple types of service and multiple processors
Should be related to, such as, the data according to type of service distribute at least one processor to the process demand of processor, and set up the industry
Corresponding relation between service type and at least one processor, is that a type of service can be one processor of correspondence,
Or a business correspondence multiple processor, it is further alternative, can be multiple type of service correspondence same processors, or
Person can also be that a processor only corresponds to a type of service, i.e., be one-to-one closing between processor and type of service
System.
Specific optional, speech business type and video traffic type are higher to the processing speed demand of processor,
Speech business type and video traffic type and processing speed can then be set up corresponding more than the processor of first threshold, this
One threshold value can be set according to actual conditions;Control signaling type of service compares the treatment accuracy rate demand of processor
Height, then can set up control signaling type of service corresponding more than the processor of Second Threshold with treatment accuracy rate;For general
Type of service, such as text services type, then it is corresponding with general processor to set up text services type, the general place
Reason device can be processing speed and the smaller treatment for the treatment of accuracy rate.
Each type of service and processor are discriminatively set up into corresponding relation by above-mentioned, can with cost-effective because
High performance processor cost is more much higher than the processor cost of low performance, while also not interfering with the treatment effeciency to data.
Receiving unit 21, for receiving pending data;
First determining unit 22, for determining the pending data said target type of service;
Second determining unit 23 is specifically for searching target processor corresponding with the target service type.
In the embodiment of the present invention, after the corresponding relation of each type of service and processor is established, traffic distributor is
Target processor corresponding with target service type can be searched, it is necessary to explanation, if finding corresponding with target service type
Target processor includes multiple processors, can select from the plurality of processor the processor of load minimum as with target industry
The target processor of service type adaptation.
First input block 24, is processed for the pending data to be input into the target processor.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
Fig. 7 is refer to, is the structural representation of another data processing equipment provided in an embodiment of the present invention.It is of the invention real
The traffic distributor that the data processing equipment described by example is applied to terminal is applied, the terminal also includes multiple processors, and this is more
The performance of individual processor is different, as illustrated, the data processing equipment of the embodiment of the present invention determines including receiving unit 30, first
Unit 31, the second determining unit 32, judging unit 33, the first input block 34, the 3rd determining unit 35 and the second input are single
Unit 36;
Judging unit 33, for judging the load of the target processor whether less than the 3rd threshold value;
If first input block 34 is less than the 3rd threshold value specifically for the load of the target processor, by institute
The pending data input target processor is stated to be processed.
In the embodiment of the present invention, if type of service one processor of correspondence, but a processor can be correspondingly more
Individual type of service, when it is determined that after target processor with target service type adaptation, traffic distributor judges that the target is processed
Whether the load of device is less than the 3rd threshold value.
If the load of target processor is less than the 3rd threshold value, pending data input target processor is processed.
3rd determining unit 35, if the load for the target processor is more than the 3rd threshold value, determines the mesh
Mark the alternative processor of processor, the target capabilities value of the alternative processor and the target capabilities value phase of the target processor
The 4th threshold value is differed from, the target capabilities are the optimal performance of the target processor;
In the embodiment of the present invention, if the load of target processor is more than the 3rd threshold value, can not be defeated by the pending data
Enter the target processor to be processed, if because by the pending data input target processor place of carrying out comprehend wait it is more long when
Between, reduce Consumer's Experience.
If the load of target processor is more than the 3rd threshold value, traffic distributor determines the alternative processor of target processor,
It should be noted that the alternative processor can be binding setting in advance (such as binding in advance corresponding to the target processor
Alternative processor), or faced according to the current loading condition of each processor and the process performance of each processor
When distribute.
Second input block 36, is processed for the pending data to be input into the alternative processor.
In the embodiment of the present invention, traffic distributor is processed pending data input alternative processor, by this
Mode can be with the load of balanced each processor, while will not also reduce the treatment effeciency to pending data.
Above-mentioned receiving unit 30, the first determining unit 31, the second determining unit 32 refer to the embodiment description of Fig. 6,
This is repeated no more.
In the embodiment of the present invention, terminal includes traffic distributor and multiple processors, and the performance of the plurality of processor is not
Together, traffic distributor receives pending data, the pending device data said target type of service is determined, it is determined that and target service
The target processor of type adaptation, pending data input target processor is processed, and this mode can be targeted
Ground is processed data, improves data-handling efficiency, and save process resource.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, the part or all of step including any data processing method described in the above method embodiment when program is performed
Suddenly.
Although invention has been described to combine each embodiment herein, however, implementing the present invention for required protection
During, those skilled in the art are by checking the accompanying drawing, disclosure and appended claims, it will be appreciated that and it is real
Other changes of the existing open embodiment.In the claims, " including " (comprising) one word be not excluded for other composition
Part or step, "a" or "an" are not excluded for the situation of multiple.Single processor or other units can realize claim
In some functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged
Apply to combine and produce good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can be using complete hardware embodiment, complete software embodiment or combination software and hardware
The form of embodiment.And, the present invention can be used and wherein include the calculating of computer usable program code at one or more
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware
Part, it would however also be possible to employ other distribution forms, such as passes through Internet or other wired or wireless telecommunication systems.
The present invention be with reference to the embodiment of the present invention method, device (equipment) and computer program product flow chart with/
Or block diagram is described.It should be understood that each flow during flow chart and/or block diagram can be realized by computer program instructions and/
Or the combination of the flow and/or square frame in square frame and flow chart and/or block diagram.These computer program instructions can be provided
To the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices producing one
Individual machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not departing from this hair
In the case of bright spirit and scope, various modifications and combinations can be carried out to it.Correspondingly, the specification and drawings are only institute
The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair
Change, change, combining or equivalent.Obviously, those skilled in the art the present invention can be carried out it is various change and modification without
Depart from the spirit and scope of the present invention.So, if it is of the invention these modification and modification belong to the claims in the present invention and its
Within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (11)
1. a kind of data processing method, is applied to terminal, and the terminal includes traffic distributor and multiple processors, described many
The performance of individual processor is different, it is characterised in that including:
The traffic distributor receives pending data;
The traffic distributor determines the pending data said target type of service;
The traffic distributor determines the target processor with the target service type adaptation;
The pending data is input into the target processor and is processed by the traffic distributor.
2. the method for claim 1, it is characterised in that before the traffic distributor receives pending data, also wrap
Include:
Place of the traffic distributor previously according to the data of the performance difference and multiple types of service of the multiple processor
Reason demand, sets the corresponding relation between the multiple type of service and the multiple processor;
The traffic distributor determines the target processor with the target service type adaptation, including:
The traffic distributor searches target processor corresponding with the target service type.
3. method as claimed in claim 2, it is characterised in that between the multiple type of service and the multiple processor
Corresponding relation includes:
Speech business type and video traffic type are corresponding more than the processor of first threshold with processing speed;
Control signaling type of service is corresponding more than the processor of Second Threshold with treatment accuracy rate;
Text services type is less than or equal to the first threshold with processing speed, and treatment accuracy rate is less than or equal to institute
State the processor correspondence of Second Threshold.
4. the method for claim 1, it is characterised in that the traffic distributor is described by pending data input
Before target processor is processed, also include:
Whether the traffic distributor judges the load of the target processor less than the 3rd threshold value;
If the load of the target processor is less than the 3rd threshold value, be input into for the pending data by the traffic distributor
The target processor is processed.
5. method as claimed in claim 4, it is characterised in that methods described also includes:
If the load of the target processor is more than the 3rd threshold value, the traffic distributor determines the target processor
Alternative processor, the target capabilities value of the alternative processor differs the 4th threshold with the target capabilities value of the target processor
Value, the target capabilities are the optimal performance of the target processor;
The pending data is input into the alternative processor and is processed by the traffic distributor.
6. a kind of data processing equipment, is applied to the traffic distributor of terminal, and the terminal also includes multiple processors, the plurality of
The performance of processor is different, it is characterised in that described device includes:
Receiving unit, for receiving pending data;
First determining unit, for determining the pending data said target type of service;
Second determining unit, for determining the target processor with the target service type adaptation;
First input block, is processed for the pending data to be input into the target processor.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Setting unit, for the treatment of the performance difference previously according to the multiple processor and the data of multiple types of service
Demand, sets the corresponding relation between the multiple type of service and the multiple processor;
Second determining unit is specifically for searching target processor corresponding with the target service type.
8. device as claimed in claim 7, it is characterised in that between the multiple type of service and the multiple processor
Corresponding relation includes:
Speech business type and video traffic type are corresponding more than the processor of first threshold with processing speed;
Control signaling type of service is corresponding more than the processor of Second Threshold with treatment accuracy rate;
Text services type is less than or equal to the first threshold with processing speed, and treatment accuracy rate is less than or equal to institute
State the processor correspondence of Second Threshold.
9. device as claimed in claim 6, it is characterised in that described device also includes:
Judging unit, for judging the load of the target processor whether less than the 3rd threshold value;
If first input block is less than the 3rd threshold value specifically for the load of the target processor, wait to locate by described
Target processor described in reason data input is processed.
10. device as claimed in claim 9, it is characterised in that described device also includes:
3rd determining unit, if the load for the target processor is more than the 3rd threshold value, determines the target treatment
The alternative processor of device, the target capabilities value of the alternative processor differs the 4th with the target capabilities value of the target processor
Threshold value, the target capabilities are the optimal performance of the target processor;
Second input block, is processed for the pending data to be input into the alternative processor.
11. a kind of terminals, it is characterised in that the terminal includes traffic distributor and multiple processors, the multiple treatment
The performance of device is different;
The traffic distributor is used for the target processor for determining to be adapted to pending data said target type of service, and should
Pending data is input into the target processor and is processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265302.7A CN106776039B (en) | 2016-12-30 | 2016-12-30 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265302.7A CN106776039B (en) | 2016-12-30 | 2016-12-30 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776039A true CN106776039A (en) | 2017-05-31 |
CN106776039B CN106776039B (en) | 2020-04-03 |
Family
ID=58951697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611265302.7A Active CN106776039B (en) | 2016-12-30 | 2016-12-30 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776039B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234720A (en) * | 2018-01-22 | 2018-06-29 | 广东欧珀移动通信有限公司 | Electronic device falls detection method and Related product |
CN110782122A (en) * | 2019-09-16 | 2020-02-11 | 腾讯大地通途(北京)科技有限公司 | Data processing method and device and electronic equipment |
CN111176851A (en) * | 2020-01-09 | 2020-05-19 | 国网福建省电力有限公司 | User data analysis method and system for electricity selling side |
CN111597042A (en) * | 2020-05-11 | 2020-08-28 | Oppo广东移动通信有限公司 | Service thread running method and device, storage medium and electronic equipment |
WO2021017280A1 (en) * | 2019-07-31 | 2021-02-04 | 北京国双科技有限公司 | Data processing method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103294554A (en) * | 2012-03-05 | 2013-09-11 | 中兴通讯股份有限公司 | SOC multiprocessor dispatching method and apparatus |
CN103617088A (en) * | 2013-11-29 | 2014-03-05 | 深圳中微电科技有限公司 | Method, device and processor of device for distributing core resources in different types of threads of processor |
CN104536831A (en) * | 2015-01-12 | 2015-04-22 | 北京神舟航天软件技术有限公司 | Multi-core SoC software mapping method based on multi-objective optimization |
CN104679586A (en) * | 2013-10-31 | 2015-06-03 | 三星电子株式会社 | Electronic systems including heterogeneous multi-core processors and method of operating same |
-
2016
- 2016-12-30 CN CN201611265302.7A patent/CN106776039B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103294554A (en) * | 2012-03-05 | 2013-09-11 | 中兴通讯股份有限公司 | SOC multiprocessor dispatching method and apparatus |
CN104679586A (en) * | 2013-10-31 | 2015-06-03 | 三星电子株式会社 | Electronic systems including heterogeneous multi-core processors and method of operating same |
CN103617088A (en) * | 2013-11-29 | 2014-03-05 | 深圳中微电科技有限公司 | Method, device and processor of device for distributing core resources in different types of threads of processor |
CN104536831A (en) * | 2015-01-12 | 2015-04-22 | 北京神舟航天软件技术有限公司 | Multi-core SoC software mapping method based on multi-objective optimization |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234720A (en) * | 2018-01-22 | 2018-06-29 | 广东欧珀移动通信有限公司 | Electronic device falls detection method and Related product |
CN108234720B (en) * | 2018-01-22 | 2021-04-02 | Oppo广东移动通信有限公司 | Electronic device, fall detection method and related product |
WO2021017280A1 (en) * | 2019-07-31 | 2021-02-04 | 北京国双科技有限公司 | Data processing method and apparatus |
CN110782122A (en) * | 2019-09-16 | 2020-02-11 | 腾讯大地通途(北京)科技有限公司 | Data processing method and device and electronic equipment |
CN110782122B (en) * | 2019-09-16 | 2023-11-24 | 腾讯大地通途(北京)科技有限公司 | Data processing method and device and electronic equipment |
CN111176851A (en) * | 2020-01-09 | 2020-05-19 | 国网福建省电力有限公司 | User data analysis method and system for electricity selling side |
CN111597042A (en) * | 2020-05-11 | 2020-08-28 | Oppo广东移动通信有限公司 | Service thread running method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106776039B (en) | 2020-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106776039A (en) | A kind of data processing method and device | |
CN104540176B (en) | Wireless network access method, device and terminal | |
US20190364493A1 (en) | Method for Wireless Fidelity Connection and Related Products | |
CN110072151B (en) | Virtual gift display method, electronic device and computer-readable storage medium | |
CN104992096A (en) | Data protection method and mobile terminal | |
CN104221025A (en) | Apparatus and method of controlling permission to applications in portable terminal | |
CN107533596B (en) | Fingerprint identification method and mobile terminal | |
CN111078930A (en) | Audio file data processing method and device | |
US11936605B2 (en) | Message processing method, apparatus and electronic device | |
CN111800284B (en) | Edge cloud node set selection method and device and electronic equipment | |
CN107370685A (en) | A kind of internet-of-things terminal cut-in method and device | |
CN112417485B (en) | Model training method, system and device based on trusted execution environment | |
CN105094824A (en) | Display method for notification messages on intelligent watch and intelligent watch | |
WO2023273463A1 (en) | Data plan acquisition method and apparatus, terminal, and storage medium | |
CN112152879B (en) | Network quality determination method, device, electronic equipment and readable storage medium | |
CN109918949A (en) | Recognition methods, device, electronic equipment and storage medium | |
CN112286485B (en) | Method and device for controlling application through voice, electronic equipment and storage medium | |
CN111475230B (en) | Application function configuration method and device and electronic equipment | |
CN107547451A (en) | A kind of multipath server, CPU connection methods and device | |
CN111460211A (en) | Audio information playing method and device and electronic equipment | |
CN111194059A (en) | Data connection method and device, electronic equipment and readable storage medium | |
CN105812270A (en) | Information processing method and wireless routing device | |
WO2023066258A1 (en) | Data processing method and apparatus for private data, computer device and medium | |
CN115495519A (en) | Report data processing method and device | |
CN113286349B (en) | Personal hot spot connection method, device, 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |