WO2019047009A1 - 一种基于处理器的数据处理方法和装置 - Google Patents

一种基于处理器的数据处理方法和装置 Download PDF

Info

Publication number
WO2019047009A1
WO2019047009A1 PCT/CN2017/100503 CN2017100503W WO2019047009A1 WO 2019047009 A1 WO2019047009 A1 WO 2019047009A1 CN 2017100503 W CN2017100503 W CN 2017100503W WO 2019047009 A1 WO2019047009 A1 WO 2019047009A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
periodic
periodic function
target
execution
Prior art date
Application number
PCT/CN2017/100503
Other languages
English (en)
French (fr)
Inventor
邓向钖
刘鹏飞
唐疑军
刘晓红
吴壬华
Original Assignee
深圳欣锐科技股份有限公司
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 深圳欣锐科技股份有限公司 filed Critical 深圳欣锐科技股份有限公司
Priority to CN201780011703.6A priority Critical patent/CN108701030B/zh
Priority to PCT/CN2017/100503 priority patent/WO2019047009A1/zh
Publication of WO2019047009A1 publication Critical patent/WO2019047009A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a processor-based data processing method and apparatus.
  • RTOS real-time operating systems
  • DSP digital signal processing
  • each function function is executed sequentially in the order of editing.
  • the execution time of each function function needs to be longer, and then The timing cannot be guaranteed accordingly.
  • each function function in the cycle may be called once, that is, in serial
  • the runtime increases the power consumption of the processor, which in turn wastes the processor's limited memory resources.
  • the technical problem to be solved by the embodiments of the present invention is to provide a processor-based data processing method and apparatus, which can reduce power consumption of the processor, avoid waste of resources of the processor, and improve utilization of the processor.
  • a processor-based data processing method including:
  • a plurality of function functions included in the periodic function corresponding to each target period function identifier are synchronously executed.
  • a plurality of function functions included in the periodic function corresponding to each target period function identifier are synchronously executed.
  • setting a plurality of periodic function sets respectively setting corresponding execution periods for each periodic function set, and setting at least one periodic function in each periodic function set, including:
  • the comparison result that the current running time is an integral multiple of the execution period is determined as a target comparison result that satisfies a preset time condition
  • a set of periodic functions corresponding to an execution period included in the target comparison result is determined as a target periodic function set.
  • the method further includes:
  • the method for updating the set parameters corresponding to the respective sets of the target period functions, and obtaining the same periodic function identifiers as the updated set parameters in the set of target period functions, as the target period function identifier including:
  • the parameter update mode is the parameter increment mode
  • the set parameters corresponding to the target cycle function sets are incremented according to the parameter increment manner, and the incremented set is obtained in each target periodic function set.
  • the parameter update mode is the parameter decrement mode
  • the set parameters corresponding to the respective target periodic function sets are decremented according to the parameter decrement manner, and the decremented set is obtained in each target periodic function set.
  • the periodic function identifier with the same parameters is identified as the target periodic function.
  • a second aspect of the embodiments of the present invention provides a processor-based data processing apparatus, including:
  • a data setting module for setting a plurality of periodic function sets and separately setting each cycle function set Setting a corresponding execution period, and setting at least one periodic function in each periodic function set; each periodic function corresponds to one periodic function identifier; each execution period is different from each other;
  • a duration comparison module configured to acquire a current running time of the processor, compare the current running time with each execution period, and determine a periodic function set whose comparison result satisfies a preset time condition as a target periodic function set;
  • a parameter update module configured to update a set parameter corresponding to each target periodic function set, and obtain a periodic function identifier identical to the updated set parameter in the target periodic function set, as a target periodic function identifier;
  • the function execution module is configured to synchronously execute a plurality of function functions included in the periodic function corresponding to each target period function identifier.
  • the data setting module includes:
  • a function set setting unit configured to set a plurality of periodic function sets, and respectively set corresponding execution cycles for each periodic function set
  • mapping relationship establishing unit configured to acquire a preset running period corresponding to each function function, and determine a running priority of each function function in the processor according to each running cycle, and establish each running priority and each execution cycle Mapping table between;
  • An execution period determining unit configured to determine, according to an operation priority corresponding to each function function, an execution period corresponding to each function function in the mapping relationship table;
  • a function function allocation unit configured to add a function function having the same execution period to a set of periodic functions having a corresponding execution period, and set at least one periodic function in each periodic function set, and function functions in each periodic function set Assigned to each periodic function to which it belongs.
  • the duration comparison module includes:
  • a time acquisition unit configured to acquire a current running time of the processor, and read an execution cycle of each periodic function set
  • a duration comparison unit configured to compare the current running duration with each execution cycle, and generate a comparison result corresponding to each execution cycle
  • condition satisfaction unit configured to determine, as a target comparison result that meets a preset time condition, a comparison result that the current running time is an integer multiple of an execution period
  • a target set determining unit configured to use the week corresponding to the execution cycle included in the target comparison result
  • the set of period functions is determined as a set of target periodic functions.
  • the duration comparison module further includes:
  • a memory release unit configured to: when it is detected that the current running time does not reach an integer multiple of the execution periods, determine that each comparison result does not satisfy a preset time condition, and release the corresponding corresponding to each periodic function set Memory resources.
  • the parameter update module includes:
  • a set parameter obtaining unit configured to acquire a set parameter corresponding to each target periodic function set and a periodic function identifier corresponding to each periodic function in each target periodic function set;
  • An update method obtaining unit configured to acquire a parameter update manner
  • an incremental update unit configured to: if the parameter update mode is a parameter increment mode, increment the set parameter corresponding to each target periodic function set according to the parameter increment manner, and in the target cycle function set Obtaining the same periodic function identifier as the incremented collection parameter as the target periodic function identifier;
  • a decrement updating unit configured to: when the parameter update mode is a parameter decrement mode, decrement the set parameters corresponding to the respective target period function sets according to the parameter decrement manner, and in the target period function set Obtain the same periodic function identifier as the decremented collection parameter as the target periodic function identifier.
  • a plurality of periodic function sets are set, and corresponding execution cycles are respectively set for each periodic function set, and at least one periodic function is set in each periodic function set; each periodic function corresponds to one periodic function identifier; each execution period Obtaining a current running time of the processor, comparing the current running time with each execution cycle, and determining a set of periodic functions whose comparison result satisfies a preset time condition as a target periodic function set; Updating the set parameters of the set of periodic functions respectively, and obtaining the same periodic function identifiers as the updated set parameters in the set of target periodic functions, as the target periodic function identifier; and simultaneously performing the corresponding target periodic function identifiers respectively Multiple function functions included in the periodic function.
  • the processor-based data processing apparatus can determine the set of periodic functions satisfying the time condition as the current operating time and the comparison result corresponding to each execution period satisfy the time condition. Determining a set of target periodic functions, and detecting, in the set of each target periodic function, that the target periodic function identifier is equal to When the updated collection parameter is synchronized, multiple function functions included in the periodic function corresponding to each target period function identifier are synchronously executed, thereby improving the utilization of the processor and reducing the power consumption of the processor to avoid the processor. Waste of resources.
  • FIG. 1 is a schematic flowchart of a processor-based data processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a processor-based data processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a data setting module according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a parameter update module according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another processor-based data processing apparatus according to an embodiment of the present invention.
  • the execution of the processor-based data processing method referred to in the embodiments of the present invention relies on a computer program that can run on a computer system of the Von Oyman system.
  • the computer program can be integrated into the application or run as a standalone tool class application.
  • the computer system can be a terminal device such as a personal computer, a tablet computer, a notebook computer, or a smart phone.
  • FIG. 1 is a schematic flowchart diagram of a processor-based data processing method according to an embodiment of the present invention. As shown in FIG. 1, the processor-based data processing method at least includes:
  • Step S101 setting a plurality of periodic function sets, and respectively setting corresponding execution cycles for each periodic function set, and setting at least one periodic function in each periodic function set; each periodic function corresponding to one periodic function identifier; each execution period is not mutually the same;
  • the processor-based data processing apparatus may set a plurality of periodic function sets, and respectively set corresponding execution periods for each periodic function set, and acquire preset preset operation periods corresponding to the respective function functions, and according to each operation cycle. Determining a running priority of each function function in the processor, and establishing a mapping relationship table between each running priority and each execution period, and according to the running priority corresponding to each function function, in the mapping Determining, in the relationship table, an execution cycle corresponding to each of the function functions, and adding a function function having the same execution cycle to the set of periodic functions having a corresponding execution cycle, and setting at least one periodic function in each cycle function set, and Assigning function functions in each periodic function set to each of the associated periodic functions;
  • the processor-based data processing device can be applied to a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application software.
  • Terminal equipment such as a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application software.
  • Terminal equipment such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application software.
  • each periodic function set can satisfy a certain multiple relationship to ensure that each periodic function set obtains a minimum execution period under the same running time, and the minimum execution period is used as a timing unit to ensure each periodic function set.
  • Each periodic function can perform time-sharing operation and further guarantee the sequential operation of each periodic function;
  • the data processing apparatus can accept a plurality of periodic function sets (for example, three) set by the background manager, and respectively set a corresponding execution period (100 microseconds, 1 millisecond, 10 milliseconds) for each periodic function set.
  • the execution period corresponding to the second periodic function set is 1ms, and the third periodic function set corresponds to The execution cycle is 10ms.
  • the minimum execution period is 100us, and according to the inverse relationship between the execution period and the frequency, the smaller the execution period is, the more times the unit time is executed.
  • 100us with the minimum execution period can be used as the timing unit, and 10 periodic functions in the first periodic function set are executed.
  • the 10 periodic functions in the second periodic function set execute one of the periodic functions (the execution period is 1ms); similarly, when the second periodic function is set
  • the third periodic function set just executes one of the periodic functions (the execution period is 10ms).
  • the time-consuming situation and/or each functional function when each functional function is run in the processor may be used.
  • the required operating cycle determines the priority of each function function in the processor.
  • the priority function is described by taking 10 function functions of 100 function functions as an example. Further, please refer to the table given in Table 1. a distribution table of the corresponding operational priorities of the 10 functional functions in the processor;
  • the priority of the function functions is the first priority, that is, the two function functions are the function functions with the highest running priority; the function function C, the function function D, the function function E and the function function F are used in the processor.
  • the time is longer, so it can be determined that the priority of the four function functions is the second priority; and the function function G, the function function H, the function function I and the function function J take the longest time in the processor, and can be determined.
  • the priority of these four function functions is the third priority.
  • the function A and the function B have the shortest running period in the processor, so the function A and the function B correspond to the first running priority; in addition, since the function C, the function D, the function E and the function F are processed The operation period in the device is long, so the function function C, the function function D, the function function E and the function function F all correspond to the second priority; in addition, since the function function G, the function function H, the function function I and the function function J are The operating cycle in the processor is the longest, so the function function G, the function function H, the function function I and the function function J all correspond to the third priority.
  • the priority of the other 90 function functions of the 100 function functions can also be determined according to the time consumption of each function function running in the processor and/or the operation cycle required by each function function. Ok, here is no longer a list.
  • mapping relationship table between each running priority and each execution period can be established, and according to each function
  • the priority corresponding to the function is further confirmed, and the execution cycle corresponding to each function function is further confirmed; specifically, refer to the mapping relationship between each running priority and each execution cycle given in Table 2;
  • the execution period corresponding to the function function whose running priority is the first running priority is 100 us, that is, the function function A and the function function are available.
  • B corresponds to a periodic function with an execution period of 100us; in addition, the execution period corresponding to the function whose priority is the second operational priority is 1ms, that is, there are function function C, function function D, function function E and function function F.
  • the execution period corresponding to the function function whose priority is the third operational priority is 10ms, that is, the function function G, the function function H, the function function I and the function function J correspond to each other.
  • the periodic function 1 in the set of periodic functions A There may be two function functions (function function A and function function B); the periodic function 3 in the periodic function set B may contain four function functions (function function C, function function D, function function E and function function F)
  • the periodic function 10 in the set of periodic functions C may include four functional functions (function function G, function function H, function function I and function function J).
  • Step S102 Acquire a current running time of the processor, compare the current running time with each execution cycle, and determine a periodic function set whose comparison result satisfies a preset time condition as a target periodic function set;
  • acquiring a current running time of the processor reading an execution cycle of each periodic function set, comparing the current running time with each execution cycle, and generating a comparison result corresponding to each execution cycle respectively. And determining, by the comparison result that the current running time is an integral multiple of the execution period, a target comparison result that satisfies a preset time condition, and determining a set of the periodic function corresponding to the execution period included in the target comparison result as the target period.
  • the comparison between the current running time lengths corresponding to the corresponding periodic function sets given in Table 3 above shows that when the current running time is the running time A (50 ms), the current running time is three periodic functions.
  • the integer multiple of the comparison result is determined as a target comparison result that satisfies a preset time condition, and may further further set a periodic function set corresponding to the execution period included in the target comparison result (a first periodic function set, a second periodic function set, and The third periodic function set) is determined as a set of target periodic functions.
  • the current running time is the running time B (73 ms)
  • the current running time is an integer multiple of the execution period (100 us and 1 ms) corresponding to the two periodic function sets; that is, in the comparison result.
  • the 73ms is 730 times of 100us, which is 73 times of 1ms, which is 7.3 times of 10ms, so the two periodic function sets with execution periods of 100us and 1ms satisfy the preset time condition; therefore, the current running time is
  • the duration B is running
  • the first periodic function set and the second periodic function set may be determined as a target periodic function set satisfying a preset time condition; in view of this, the current running time may be an integer multiple of the execution period.
  • the result (73ms is 730 times of 100us, which is 73 times of 1ms) is determined as a target comparison result that satisfies a preset time condition, and may further set a periodic function set corresponding to an execution period included in the target comparison result (first The set of periodic functions and the set of second periodic functions are determined as a set of target periodic functions.
  • the current running time is the running time C (930 us)
  • Step S103 updating respective set parameters corresponding to each target periodic function set, and acquiring the same periodic function identifier as the target periodic function identifier in each target periodic function set;
  • the parameter update mode is a parameter decrement mode
  • the set parameters corresponding to the respective target period function sets are decremented according to the parameter decrement manner, and acquired in the target period function set
  • the descending set of periodic function identifiers with the same set parameters is identified as the target periodic function.
  • the set parameter may be used to represent an execution order corresponding to each periodic function in the target periodic function set
  • the periodic function identifier is unique in the corresponding single target periodic function set, and the maximum value thereof can be used to represent the number of periodic functions in the single target periodic function set.
  • the execution period corresponding to the A periodic function set is smaller than the execution corresponding to the B periodic function set
  • the period, and the execution period corresponding to the set of B periodic functions is smaller than the execution period corresponding to the set of C periodic functions
  • the set parameters corresponding to the set of the three target periodic functions are X, Y, Z, and the values of the set parameters may be Is any one of the values 1 to N (N is a positive integer greater than 1, for example, N is 10); in addition, a periodic function identifier corresponding to each periodic function in each target periodic function set and corresponding Parameter update mode (for example, parameter increment mode).
  • the two running time lengths given in Table 4 for example, A duration and B duration, and A duration is less than B duration).
  • the A-period function set can be synchronously executed in the A-time duration, and the B-period function set and the C-period function set reach the respective current running time lengths.
  • the periodic function identifies each periodic function corresponding to each.
  • the parameter update manner corresponding to the B-periodic function set and the C-periodic function set is a parameter incrementing manner, so the set parameter X and the set parameter may be added according to the parameter increment manner corresponding to the three target periodic function sets.
  • the set parameter C is incrementally updated.
  • the periodic functions in the three sets corresponding to the respective target period function identifiers may be synchronously executed under the current running time (B duration).
  • Step S104 synchronously executing a plurality of function functions included in the periodic function corresponding to each target period function identifier.
  • each of the periodic function 1 and the periodic function 3 is synchronously executed.
  • Function function specifically, please refer to each function function table carried in each periodic function listed in Table 5;
  • each function function in each periodic function there are four functional functions in the periodic function 1, which are function function A, function function B, function function C and function function D, respectively.
  • the function function can be run in the serial function 1 in a serial manner (for example, first executing the function function A, then the function function B, then executing the function function C, and finally executing the function function D); likewise, the periodic function 3
  • function functions which are function function E, function function F, function function G and function function H. These four function functions are still executed one by one in the order of setting in the periodic function 3;
  • the processor-based data processing device first sets a plurality of periodic function sets, and respectively sets corresponding execution cycles for each periodic function set, and sets at least one periodic function in each periodic function set; each periodic function Corresponding to a periodic function identifier; each execution period is different from each other; secondly, the current running time of the processor is acquired, and the current running time is compared with each execution period, and the comparison result satisfies the periodic function of the preset time condition
  • the set is determined as a set of target periodic functions; then, the set parameters corresponding to the respective set of target periodic functions are updated, and A periodic function identifier identical to the updated set parameter is obtained in each target periodic function set as a target periodic function identifier; finally, a plurality of functional functions included in the periodic function corresponding to each target periodic function identifier are synchronously executed.
  • the processor-based data processing apparatus can compare the result as a set of periodic functions when the current running time is an integer multiple of the execution cycles, and can be equal to the periodic function identifier.
  • the periodic function identifier is identified as a target periodic function identifier, and a plurality of function functions in the periodic function corresponding to each target periodic function identifier are synchronously executed to implement a plurality of function functions in a time-sharing manner. Further improve the utilization of the processor, thereby reducing the power consumption of the processor.
  • FIG. 2 is a schematic structural diagram of another processor-based data processing apparatus according to an embodiment of the present invention.
  • the processor-based data processing apparatus 1 at least includes: a data setting module 10, a duration comparison module 20, a parameter update module 30, and a function execution module 40;
  • the data setting module 10 is configured to set a plurality of periodic function sets, and respectively set corresponding execution periods for each periodic function set, and set at least one periodic function in each periodic function set; each periodic function corresponds to one periodic function identifier ; each execution cycle is different from each other;
  • the data setting module 10 in the processor-based data processing apparatus 1 can be configured to set a plurality of periodic function sets, and respectively set corresponding execution periods for each periodic function set, and acquire corresponding functions of the respective function functions respectively. a preset operation period, and determining, according to each operation cycle, a running priority of each function function in the processor, and establishing a mapping relationship table between each running priority and each execution period, and according to the function functions Corresponding running priorities, determining, in the mapping relationship table, execution cycles corresponding to the respective function functions, and adding function functions having the same execution cycle to the set of periodic functions having corresponding execution cycles, and Setting at least one periodic function in the set of periodic functions, and assigning the function functions in each periodic function set to the respective periodic functions;
  • the processor-based data processing device 1 can be applied to a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application.
  • Software terminal equipment such as a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application.
  • each cycle function set corresponding to each of the execution cycles can satisfy a certain multiple relationship, to ensure that each cycle function set obtains a minimum execution cycle under the same running time, and with a minimum execution week
  • the period is the timing unit, ensuring that each periodic function in each periodic function set can perform time-sharing operation, and further guarantees the time series operation of each periodic function
  • step S101 for the specific implementation of the data setting module 10, refer to the description of step S101 in the corresponding embodiment of FIG. 1 , and details are not described herein.
  • FIG. 3 is a schematic structural diagram of a data processing module according to an embodiment of the present invention.
  • the data processing module 10 comprising: a function set setting unit 101, a mapping relationship establishing unit 102, an execution cycle determining unit 103 and a function function assigning unit 104;
  • the function set setting unit 101 is configured to set a plurality of periodic function sets, and respectively set corresponding execution periods for each periodic function set;
  • the mapping relationship establishing unit 102 is configured to obtain a preset running period corresponding to each function function, and determine an operating priority of each function function in the processor according to each running cycle, and establish each running priority and a mapping table between execution cycles;
  • the execution period determining unit 103 is configured to determine an execution period corresponding to each function function in the mapping relationship table according to an operation priority corresponding to each function function;
  • the function function assigning unit 104 is configured to add a function function having the same execution period to a set of periodic functions having a corresponding execution period, and set at least one periodic function in each periodic function set, and set each periodic function set
  • the function functions are assigned to the respective periodic functions to which they belong.
  • the function set setting unit 101 can accept a plurality of periodic function sets set by the background manager (for example, the five periodic function sets are respectively: a periodic function set A, a periodic function set B, a periodic function set C, a periodic function set D and the set of periodic functions E), and respectively set corresponding execution periods for the set of 5 periodic functions (for example, 100us, 500us, 2.5ms, 12.5ms, 72.5ms); wherein the minimum execution period is 100us, and according to the execution The inverse relationship between the period and the frequency, the smaller the execution period, the more the number of executions per unit time.
  • the five periodic function sets are respectively: a periodic function set A, a periodic function set B, a periodic function set C, a periodic function set D and the set of periodic functions E
  • execution periods for the set of 5 periodic functions for example, 100us, 500us, 2.5ms, 12.5ms, 72.5ms
  • the minimum execution period is 100us
  • the function set setting unit 101 can obtain the set of three periodic functions, and the mapping relationship establishing unit 102 can consume the functions according to the function functions in the processor.
  • the time and/or the operational cycle required for each functional function determines the operational priority corresponding to each functional function.
  • a corresponding operation period may be set according to how long the running time of the 10 function functions in the processor is, and the operation priority corresponding to each function function is determined according to the operation period, and each operation priority is established.
  • the static variables (each running cycle) associated with each function function in the target period function can function as a timer. Specifically, refer to the running period statistics table corresponding to each function function given in Table 4;
  • mapping relationship establishing unit 102 can take time-consuming situations and/or function functions of each function function in the processor.
  • the required operation period determines the running priority of each function function in the processor; wherein the description of the time-consuming situation when the function functions are running in the processor can be referred to the step S101 in the embodiment corresponding to FIG. 1 above.
  • the description may be performed according to the time-consuming condition of the running time to determine the running cycle of each function function to determine the running priority of each function function in the processor; optionally, among the above 10 function functions, According to the running cycle of each function function in the processor, the running priority of each function function in the processor is determined, and the function function with a certain operating period can be regarded as a function function with the same running priority.
  • three periodic function sets may be set for the ten function functions given in Table 6 above, and the three periodic function sets are respectively a set of A periodic functions, a set of B periodic functions and a set of C periodic functions, and the set of A periodic functions corresponds to
  • the execution period is 100us
  • the execution period corresponding to the B-cycle function set is 2ms
  • the execution cycle corresponding to the C-cycle function set is 10ms.
  • the three periodic function sets corresponding to the above ten functional functions can be sequentially set to three levels of priority, for example, the function function 1 and the function function 6 with a running period of less than 500 us and the operating period of less than 800 us can be firstly used.
  • Function function 2 and function function 7, these four function functions are set to the first running priority; secondly, the function period 3 and function function 8 with the running period less than 10ms, and the function function 4 and function function 9 with the running period less than 15ms can be set.
  • the second operation priority is set; then, the function function 5 and the function function 10 with the operation period less than 20 ms can be set as the third operation priority; further, refer to the enumeration of Table 1 in the corresponding embodiment of FIG. 1 above.
  • the description of the corresponding running priority of the 10 function functions in the processor is not described here.
  • the execution period determining unit 103 may determine an execution period corresponding to each of the 10 function functions in the three periodic function sets according to a mapping relationship between the operation priority levels and each execution period; further, refer to the table.
  • Function function Function 1 Function 2 Function 3 Function 4 Function function 5 Execution cycle 100us 100us 2ms 2ms 10ms Function function Function function 6 Function function 7 Function function 8 Function function 9 Function 10 Execution cycle 100us 100us 2ms 2ms 10ms
  • the function function 1 and the function function can be 6 is added to the periodic function 1, and the function function 2 and the function function 7 can be added to the periodic function 2, and the execution periods corresponding to the periodic function 1 and the periodic function 2 are both 100 us; in addition, the function function 3 can be And the function function 8 is added to the periodic function 3, and the function function 4 and the function function 9 can be added to the periodic function 4, and the execution periods corresponding to the periodic function 3 and the periodic function 4 are both 2 ms;
  • the function function 5 and the function function 10 are added to the period function 5 such that the execution period corresponding to the period function 5 is 10 ms.
  • the function function assigning unit 104 can add function functions having the same execution cycle; for example, the function function 1 and the function function 6, and the function function 2 and the function function 7 can be added to the set of periodic functions having corresponding execution cycles (for example, a set of A-period functions), correspondingly, functional function 3 and function function 8, and four functional functions of function function 4 and function function 9 may be added to the set of B-period functions; and function function 5 and The two functional functions of the function function 10 are added to the periodic function set C such that each periodic function set (the periodic function 1 to the periodic function 5) respectively includes at least one periodic function, that is, the A periodic function set includes 2 cycles.
  • Function, and each periodic function contains two functional functions
  • the B-periodic function set includes two periodic functions
  • each periodic function contains two functional functions
  • the C-periodic function set includes one periodic function, and this There are 2 function functions in one cycle function.
  • the duration comparison module 20 is configured to acquire a current running duration of the processor, and use the current The running time is compared with each execution cycle, and the set of periodic functions whose comparison result satisfies the preset time condition is determined as a target periodic function set;
  • the duration comparison module 20 is configured to acquire a current running duration of the processor, and read an execution period of each periodic function set, compare the current running duration with each execution period, and generate and a comparison result corresponding to each execution cycle, and determining a comparison result that the current runtime is an integer multiple of the execution period as a target comparison result that satisfies a preset time condition, and the execution period included in the target comparison result
  • the corresponding set of periodic functions is determined as a set of target periodic functions.
  • duration comparison module 20 For a specific implementation manner of the duration comparison module 20, refer to the description of each running duration and each execution period in the corresponding embodiment in FIG. 1 above, and details are not described herein again.
  • the duration comparison module 20 includes: a duration acquisition unit 201, a duration comparison unit 202, a condition satisfaction unit 203, a target set determination unit 204, and a memory release unit 205;
  • the duration acquiring unit 201 is configured to acquire a current running duration of the processor, and read an execution period of each periodic function set;
  • the duration comparison unit 202 is configured to compare the current running duration with each execution cycle, and generate a comparison result corresponding to each execution cycle;
  • the condition satisfying unit 203 is configured to determine, as a target comparison result that meets a preset time condition, a comparison result that the current running time is an integer multiple of an execution period;
  • the target set determining unit 204 is configured to determine a set of periodic functions corresponding to an execution period included in the target comparison result as a target periodic function set;
  • the memory release unit 205 is configured to: when it is detected that the current running duration does not reach an integer multiple of the execution periods, determine that each comparison result does not satisfy a preset time condition, and release the periodic function set The corresponding memory resource.
  • the duration running unit 201 may perform the current running time and each execution.
  • the cycles are compared separately, and a comparison result corresponding to each of the three execution cycles is generated, that is, 670us is 6.7 times 100us, 670us is 1.34 times 500us, and 670us is 0.67 times 1000us, so the memory release unit 205
  • the processor-based data processing apparatus 1 can control the memory release unit 205 to perform the step of releasing the memory resources corresponding to the three-cycle function set.
  • the parameter update module 30 is configured to update a set parameter corresponding to each target periodic function set, and obtain a periodic function identifier identical to the updated set parameter in the target periodic function set, as a target periodic function. Identification
  • the parameter update module 30 may be configured to acquire a set parameter corresponding to each target periodic function set and a periodic function identifier corresponding to each periodic function in each target periodic function set, and obtain a parameter update manner;
  • the parameter update mode is a parameter increment mode, and the set parameters corresponding to the respective target periodic function sets are incremented according to the parameter increment manner, and the incremental set parameters are obtained in the target target periodic function sets.
  • the parameter update mode is a parameter decrement mode
  • the set parameters corresponding to the respective target period function sets are decremented according to the parameter decrement manner, and acquired in the target period function set
  • the descending set of periodic function identifiers with the same set parameters is identified as the target periodic function.
  • the set parameter may be used to represent an execution order corresponding to each periodic function in the target periodic function set
  • the periodic function identifier is unique in the corresponding single target periodic function set, and the maximum value thereof can be used to represent the number of periodic functions in the single target periodic function set.
  • step S103 For a specific implementation of the parameter update module 30, refer to the description of step S103 in the corresponding embodiment of FIG. 1 , and details are not described herein again.
  • FIG. 5 it is a node of a parameter update module according to an embodiment of the present invention.
  • the parameter update module 30 comprising: a set parameter acquisition unit 301, an update mode acquisition unit 302, an incremental update unit 303 and a decrement update unit 304;
  • the set parameter obtaining unit 301 is configured to acquire a set parameter corresponding to each target periodic function set and a periodic function identifier corresponding to each periodic function in each target periodic function set;
  • the update mode obtaining unit 302 is configured to acquire a parameter update mode.
  • the incremental update unit 303 is configured to: if the parameter update mode is a parameter increment mode, increment the set parameter corresponding to each target periodic function set according to the parameter increment manner, and in each target period Obtaining the same periodic function identifier as the incremented set parameter in the function set, as the target periodic function identifier;
  • the decrement updating unit 304 is configured to: when the parameter update mode is a parameter decrement mode, decrement the set parameters corresponding to the respective target period function sets according to the parameter decrement manner, and in each target period The function function obtains the same periodic function identifier as the descended set parameter, and is used as the target periodic function identifier.
  • the function execution module 40 is configured to synchronously execute a plurality of function functions included in the periodic function corresponding to each target period function identifier.
  • the three function functions are included in the periodic function 5 corresponding to each target period function identifier (5 and 4), and the four function functions are included in the periodic function 4.
  • the target function identifier is equal to
  • the periodic functions respectively corresponding to the respective target periodic function identifiers are synchronously executed.
  • Multiple function functions please refer to the distribution of each functional function in each periodic function given in Table 8;
  • the processor-based data processing device first sets a plurality of periodic function sets, and respectively sets corresponding execution cycles for each periodic function set, and sets at least one periodic function in each periodic function set; each periodic function Corresponding to a periodic function identifier; each execution period is different from each other; secondly, the current running time of the processor is acquired, and the current running time is compared with each execution period, and the comparison result satisfies the periodic function of the preset time condition
  • the set is determined as a set of target periodic functions; then, the set parameters corresponding to the respective set of target periodic functions are updated, and the same periodic function identifiers as the updated set parameters are obtained in the set of target periodic functions as the target period Function identification; Finally, a plurality of function functions included in the periodic function corresponding to each target period function identifier are synchronously executed.
  • the processor-based data processing apparatus can compare the result as a set of periodic functions when the current running time is an integer multiple of the execution cycles, and can be equal to the periodic function identifier.
  • the periodic function identifier is identified as a target periodic function identifier, and a plurality of function functions in the periodic function corresponding to each target periodic function identifier are synchronously executed to implement a plurality of function functions in a time-sharing manner. Further improve the utilization of the processor, thereby reducing the power consumption of the processor.
  • FIG. 6 is a schematic structural diagram of another processor-based data processing apparatus according to an embodiment of the present invention.
  • the processor-based data processing apparatus 1000 may include: A processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display and a keyboard.
  • the optional user interface 1003 can also include a standard wired interface and a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1005 can also optionally be at least one storage device located remotely from the aforementioned processor 1001.
  • a memory 1005 of a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application;
  • the processor-based data processing device 1000 can be applied to a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application.
  • Software terminal equipment such as a smart phone, a personal tablet, a personal computer, a mobile internet device, a wearable device (such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application.
  • Software terminal equipment such as a smart watch (such as iwatch, etc.), a smart bracelet) or other installable application.
  • the user interface 1003 is mainly used to provide an input interface for the user to acquire data output by the user; and the processor 1001 can be used to call the device control stored in the memory 1005.
  • a plurality of function functions included in the periodic function corresponding to each target period function identifier are synchronously executed.
  • the processor 1001 performs the setting of the plurality of periodic function sets, and respectively sets a corresponding execution period for each periodic function set, and when at least one periodic function is set in each periodic function set, Perform the following steps:
  • the processor 1001 performs the current running duration of the acquiring processor, compares the current running time with each execution period, and satisfies the periodic function of the preset time condition.
  • the collection is determined as a set of target periodic functions, perform the following steps:
  • the comparison result that the current running time is an integral multiple of the execution period is determined as a target comparison result that satisfies a preset time condition
  • a set of periodic functions corresponding to an execution period included in the target comparison result is determined as a target periodic function set.
  • the processor 1001 compares the current running time with each execution cycle and generates a comparison result corresponding to the current running time, the processor 1001 further performs the following steps:
  • the processor 1001 performs the updating of the set parameters corresponding to the respective target periodic function sets, and acquires the same periodic function as the updated set parameters in each target periodic function set.
  • the identifier is identified as the target period function, perform the following steps:
  • the parameter update mode is the parameter increment mode
  • the set parameters corresponding to the target cycle function sets are incremented according to the parameter increment manner, and the incremented set is obtained in each target periodic function set.
  • the parameter update mode is the parameter decrement mode
  • the set parameters corresponding to the respective target period function sets are decremented according to the parameter decrement manner, and the target period function set is set in the target period
  • the same periodic function identifier is obtained as the target periodic function identifier.
  • the processor-based data processing apparatus 1000 first sets a plurality of periodic function sets, and respectively sets corresponding execution cycles for each periodic function set, and sets at least one periodic function in each periodic function set; each cycle The function corresponds to a periodic function identifier; each execution period is different from each other; secondly, the current running time of the processor is acquired, and the current running time is compared with each execution period, and the comparison result satisfies a preset time condition period
  • the set of functions is determined as a set of target periodic functions; then, the set parameters corresponding to the respective sets of target periodic functions are updated, and the same periodic function identifiers as the updated set parameters are obtained in the set of target periodic functions, as targets Periodic function identification; Finally, a plurality of function functions included in the periodic function corresponding to each target period function identifier are synchronously executed.
  • the processor-based data processing apparatus can determine the set of periodic functions satisfying the time condition as the current operating time and the comparison result corresponding to each execution period satisfy the time condition. Determining a target periodic function set, and detecting, in the set of each target periodic function, that the target periodic function identifier is equal to the updated set parameter, performing multiple executions in each periodic function function corresponding to each target periodic function identifier Function functions, which in turn increase processor utilization and reduce processor power consumption to avoid wasted processor resources.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

一种基于处理器的数据处理方法和装置,所述方法包括:设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。采用上述方法,可提高对处理器的利用率,以降低处理器的功耗。

Description

一种基于处理器的数据处理方法和装置 技术领域
本发明涉及通信技术领域,尤其涉及一种基于处理器的数据处理方法和装置。
背景技术
随着移动互联网技术的快速发展,嵌入式实时操作系统(RTOS)在以网络为中心的新兴计算设备和嵌入式市场中获得了广泛应用,尤其是在数字信号处理(DSP)和无线应用领域等,均可采用嵌入式汇编语言来帮助相应单片机操作系统实现产品的智能化。
在传统的嵌入式软件执行方式中,每个功能函数按照编辑的次序进行顺序执行,当处理器对应的功能函数越多,且越复杂的时候,各个功能函数的执行时间就需要越长,进而导致时序无法得到相应的保障。
此外,在实际应用中,各功能函数大部分都是按一定周期执行的,若按照该循环周期进行执行,就可能会将该循环周期内的每个功能函数都调用一遍,即会在串行运行时增大处理器的功耗,进而浪费处理器有限的内存资源。
发明内容
本发明实施例所要解决的技术问题在于,提供一种基于处理器的数据处理方法和装置,可降低处理器的功耗,以避免处理器的资源浪费,并提高对处理器的利用率。
为了解决上述技术问题,本发明实施例第一方面提供了一种基于处理器的数据处理方法,包括:
设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比 较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
其中,所述设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数,包括:
设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
其中,所述获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合,包括:
获取处理器的当前运行时长,并读取各周期函数集合的执行周期;
将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
可选的,在所述将所述当前运行时长与各执行周期进行比较,并生成与所述当前运行时长对应的比较结果之后,还包括:
当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
其中,所述对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识,包括:
获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
获取参数更新方式;
若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
本发明实施例第二方面提供了一种基于处理器的数据处理装置,包括:
数据设置模块,用于设置多个周期函数集合,并为各周期函数集合分别设 置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
时长比较模块,用于获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
参数更新模块,用于对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
函数执行模块,用于同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
其中,所述数据设置模块包括:
函数集合设置单元,用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
映射关系建立单元,用于获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
执行周期确定单元,用于根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
功能函数分配单元,用于将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
其中,所述时长比较模块包括:
时长获取单元,用于获取处理器的当前运行时长,并读取各周期函数集合的执行周期;
时长比较单元,用于将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
条件满足单元,用于将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
目标集合确定单元,用于将所述目标比较结果所包含的执行周期对应的周 期函数集合确定为目标周期函数集合。
可选的,所述时长比较模块还包括:
内存释放单元,用于当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
其中,所述参数更新模块,包括:
集合参数获取单元,用于获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
更新方式获取单元,用于获取参数更新方式;
递增更新单元,用于若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
递减更新单元,用于若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
本发明实施例通过设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。由此可见,所述基于处理器的数据处理装置可在所述当前运行时长和各执行周期对应的比较结果满足所述时间条件时,将所述满足所述时间条件的周期函数集合确定为所述目标周期函数集合,并在所述各目标周期函数集合中检测到所述目标周期函数标识等于 更新后的集合参数时,同步执行各目标周期函数标识分别对应的周期函数中所包含的多个功能函数,进而提高对处理器的利用率,并降低处理器的功耗,以避免处理器的资源浪费。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种基于处理器的数据处理方法的流程示意图;
图2是本发明实施例提供的一种基于处理器的数据处理装置的结构示意图;
图3是本发明实施例提供的一种数据设置模块的结构示意图;
图4是本发明实施例提供的一种时长比较模块的结构示意图;
图5是本发明实施例提供的一种参数更新模块的结构示意图;
图6是本发明实施例提供的另一种基于处理器的数据处理装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品 或设备固有的其他步骤或单元。
本发明实施例中提及的基于处理器的数据处理方法的执行依赖于计算机程序,可运行于冯若依曼体系的计算机系统之上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。该计算机系统可以是个人电脑、平板电脑、笔记本电脑、智能手机等终端设备。
以下分别进行详细说明。
请参见图1,是本发明实施例提供的一种基于处理器的数据处理方法的流程示意图。如图1所示,所述基于处理器的数据处理方法至少包括:
步骤S101,设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
具体地,基于处理器的数据处理装置可设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表,并根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期,并将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中;
其中,所述基于处理器的数据处理装置可应用于智能手机、个人平板、个人电脑、移动互联网设备、可穿戴设备(例如智能手表(如iwatch等)、智能手环)或其他可安装应用软件的终端设备;
其中,各周期函数集合分别对应的执行周期之间可满足一定的倍数关系,以确保各周期函数集合在同一运行时长下获得最小执行周期,并以最小执行周期为计时单位,确保各周期函数集合内的各周期函数能进行分时运行,并进一步保障各周期函数的时序运行;
比如,所述数据处理装置可接受后台管理人员设置的多个周期函数集合(例如,3个),并为各周期函数集合分别设置对应的执行周期(100微妙,1毫秒,10毫秒)。例如,第一个周期函数集合对应的执行周期为100微妙(即 0.1毫秒,且根据计时单位中微妙(us)和毫秒(ms)之间的换算公式,有1ms=1000us);第二个周期函数集合对应的执行周期为1ms,第三个周期函数集合对应的执行周期为10ms。可见,最小执行周期为100us,且根据执行周期与频率之间的反比关系,可得执行周期越小,则单位时间内执行的次数越多。鉴于此,进一步以同步运行三个周期函数集合为例,为确保各功能函数的时序性,可将具有最小执行周期的100us作为计时单位,当第一周期函数集合内的10个周期函数执行完一遍时(耗时,10*100us=1ms),第二周期函数集合内的10个周期函数才执行完其中的一个周期函数(执行周期为1ms);同理可知,当第二个周期函数集合内的10个周期函数执行完一遍时,第三个周期函数集合刚好执行完其中的一个周期函数(执行周期为10ms)。
又比如,在设置的3个周期函数集合(周期函数集合A,周期函数集合B和周期函数集合C)中,可根据各功能函数在处理器中运行时的耗时情况和/或各功能函数所需的运行周期确定各功能函数在处理器中的运行优先级,以100个功能函数中的10个功能函数为例进行优先级分布情况的说明,进一步地,请参见表1给出的这10个功能函数在处理器中对应的运行优先级的分布情况表;
Figure PCTCN2017100503-appb-000001
表1
由上述表1给出的这10个功能函数在处理器中对应的运行优先级的分布情况表可知,由于功能函数A和功能函数B在处理器中的运行耗时最小,故而可确定这2个功能函数的优先级为第一优先级,即这两个功能函数为具有最高运行优先级的功能函数;功能函数C,功能函数D,功能函数E和功能函数F在处理器中的运行耗时较长,故而可确定这4个功能函数的优先级为第二优先级;而功能函数G,功能函数H,功能函数I和功能函数J在处理器中的运行耗时最长,可确定这4个功能函数的优先级为第三优先级。或者,由于功能 函数A和功能函数B在处理器中的运行周期最短,所以功能函数A和功能函数B对应第一运行优先级;另外,由于功能函数C,功能函数D,功能函数E和功能函数F在处理器中的运行周期较长,所以功能函数C,功能函数D,功能函数E和功能函数F均对应第二优先级;此外,由于功能函数G,功能函数H,功能函数I和功能函数J在处理器中的运行周期最长,所以功能函数G,功能函数H,功能函数I和功能函数J均对应第三优先级。
同理可得,这100个功能函数中的其他90个功能函数的优先级的确定也可按照各功能函数在处理器中运行时的耗时情况和/或各功能函数所需的运行周期进行确定,这里不再进行一一列举。
又比如,仍以上述10个功能函数为例,在获得这10个功能函数分别对应的运行优先级后,可建立各运行优先级与各执行周期之间的映射关系表,并可根据各功能函数分别对应的优先级,进一步确认各功能函数分别对应的执行周期;具体地,请参见表2给出的各运行优先级与各执行周期之间的映射关系表;
周期函数集合 周期函数集合A 周期函数集合B 周期函数集合C
各执行周期 100us 1ms 10ms
运行优先级 第一运行优先级 第二运行优先级 第三运行优先级
表2
由上述表2给出的各运行优先级与各执行周期之间的映射关系表可知,运行优先级为第一运行优先级的功能函数对应的执行周期为100us,即有功能函数A和功能函数B对应一个执行周期为100us的周期函数;另外,运行优先级为第二运行优先级的功能函数对应的执行周期为1ms,即有功能函数C,功能函数D,功能函数E和功能函数F均对应一个执行周期为1ms的周期函数;另外,运行优先级为第三运行优先级的功能函数对应的执行周期为10ms,即有功能函数G,功能函数H,功能函数I和功能函数J均对应一个执行周期为10ms的周期函数;
同理,可将其它90个具有相同运行优先级(或执行周期)的功能函数添加至具备相同执行周期的周期函数集合中,并可进一步将各周期函数集合中的功能函数分配至所属的各周期函数中,比如,周期函数集合A中的周期函数1 中可包含两个功能函数(功能函数A和功能函数B);周期函数集合B中的周期函数3中可包含四个功能函数(功能函数C,功能函数D,功能函数E和功能函数F);周期函数集合C中的周期函数10中可包含四个功能函数(功能函数G,功能函数H,功能函数I和功能函数J)。
步骤S102,获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
具体地,获取处理器的当前运行时长,并读取各周期函数集合的执行周期,并将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果,并将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果,并将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
可选地,当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
比如,在处理器内需要运行的功能函数有100个,且获得各功能函数在处理器中对应的运行耗时均为tf,为确保各功能函数得以按时序合理运行;处理器可将20个运行周期<=1ms的功能函数分别放到第一周期函数集合内的10个执行周期为100us的周期函数内(由于这20个功能函数运行完一轮刚好是10*100us=1ms,所以每个功能函数的运行周期都能为1ms),即让每个周期函数内有2个功能函数;另外,可将40个运行周期<=10ms的功能函数分别放到第二周期函数集合内的10个执行周期为1ms的周期函数内(由于这40个功能函数运行完一轮刚好是10*1ms=10ms,所以每个功能函数的运行周期都能为10ms),即让每个周期函数有4个功能函数;另外,将剩余的40个运行周期<=100ms的功能函数分别放到第三周期函数集合内的10个执行周期为10ms的周期函数内(由于这40个功能函数均运行完一轮刚好是10*10ms=100ms,所以每个功能函数的运行周期都能为100ms),即可使每个周期函数内包含4个功能函数。进一步地,请参见表3给出的各当前运行时长与相应执行周期之间的比较情况;
  第一周期函数集合 第二周期函数集合 第三周期函数集合
各执行周期 100us 1ms 10ms
运行时长A 50ms 50ms 50ms
运行时长B 73ms 73ms 73ms
运行时长C 930us 930us 930us
表3
由上述表3给出的各当前运行时长与相应周期函数集合对应的执行周期之间的比较情况可知:在当前运行时长为运行时长A(50ms)时,所述当前运行时长是三个周期函数集合所对应的执行周期(100us,1ms,10ms)的整数倍;即各比较结果中的50ms是100us的500倍,50ms是1ms的50倍,50ms是10ms的5倍,均满足所述预设的时间条件,故而在所述当前运行时长为运行时长A时,可触发执行周期为100us,1ms,10ms的各周期函数集合的同步运行,鉴于此,可将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果,并可进一步将所述目标比较结果所包含的执行周期对应的周期函数集合(第一周期函数集合,第二周期函数集合和第三周期函数集合)确定为目标周期函数集合。
另外,可选地,在当前运行时长为运行时长B(73ms)时,所述当前运行时长是其中两个周期函数集合所对应的执行周期(100us和1ms)的整数倍;即在比较结果中的73ms是100us的730倍,是1ms的73倍,是10ms的7.3倍,于是执行周期为100us和1ms的两个周期函数集合满足所述预设的时间条件;故而在所述当前运行时长为运行时长B时,可将第一周期函数集合和第二周期函数集合确定为满足预设的时间条件的目标周期函数集合;鉴于此,可将所述当前运行时长是执行周期的整数倍的比较结果(73ms是100us的730倍,是1ms的73倍)确定为满足预设的时间条件的目标比较结果,并可进一步将所述目标比较结果所包含的执行周期对应的周期函数集合(第一周期函数集合和第二周期函数集合)确定为目标周期函数集合。
此外,可选地,在当前运行时长为运行时长C(930us)时,可检测到所述当前运行时长均未达到所述各执行周期(100us,1ms,10ms)的整数倍; 即930us是100us的9.3倍,930us是1ms的0.93倍,930us是10ms的0.093倍,故而在所述当前运行时长为运行时长C时,各周期函数集合内与各执行周期(100us,1ms,10ms)分别对应的各比较结果均不满足预设的时间条件;鉴于此,可释放这三周期函数集合所对应的内存资源。
步骤S103,对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
具体地,获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识,并获取参数更新方式;若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
可选地,若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
其中,所述集合参数可用于表征目标周期函数集合内各周期函数所对应的执行顺序;
其中,所述周期函数标识在相应的单个目标周期函数集合中具有唯一性,其最大取值可用于表示该单个目标周期函数集合内周期函数的数量。
比如,以三个同步运行时的目标周期函数集合(A周期函数集合,B周期函数集合和C周期函数集合)为例,其中,A周期函数集合对应的执行周期小于B周期函数集合对应的执行周期,且B周期函数集合对应的执行周期小于C周期函数集合对应的执行周期;另外,这三个目标周期函数集合分别对应的集合参数为X,Y,Z,且各集合参数的取值可为数值1至N中的任意一个数值(N为大于1的正整数,例如,N为10);此外,可进一步获得各目标周期函数集合中的各周期函数分别对应的周期函数标识以及相应的参数更新方式(例如,参数递增方式),具体地,请参见表4给出的两种运行时长(例如,A时长和B时长,且有A时长小于B时长)时各目标周期函数集合分别 对应的集合参数分布情况;
Figure PCTCN2017100503-appb-000002
表4
由上述表4给出的各目标周期函数集合分别对应的集合参数分布情况可知,由于A周期函数集合对应的执行周期小于B周期函数集合对应的执行周期,且B周期函数集合对应的执行周期小于C周期函数集合对应的执行周期,所以在当前运行时长为A时长时,可读取到A周期函数集合对应的递增后的集合参数X=8,B周期函数集合递增后的集合参数Y=4,C周期函数集合对应的集合参数Z=1,此时,可在A时长时同步执行A周期函数集合,B周期函数集合和C周期函数集合内的达到所述当前运行时长下的所述各周期函数标识分别对应的各周期函数。此外,由于A周期函数集合,B周期函数集合和C周期函数集合对应的参数更新方式为参数递增方式,所以,可根据这三个目标周期函数集合对应的参数递增方式对集合参数X,集合参数Y,集合参数C进行递增更新。其中,当所述当前运行时长为B时长时,可检测到A周期函数集合对应的递增后的集合参数X=16,B周期函数集合递增后的集合参数Y=8,C周期函数集合递增后的集合参数Z=2,即在B时长时,A周期函数集合,B周期函数集合和C周期函数集合内的各周期函数分别对应的周期函数标识16,8和2均为目标周期函数标识,即可在所述当前运行时长(B时长)下同步执行满足所述各目标周期函数标识分别对应的3个集合内的各周期函数。
步骤S104,同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
比如,以与各目标周期函数标识分别对应的周期函数(周期函数1和周期函数3)内均包含4个功能函数为例,可在检测到各目标周期函数标识等于该 更新后的集合参数(Y=10,Z=2),其中,周期函数1对应着参数递减方式,周期函数3对应着参数递增方式,此时,同步执行周期函数1和周期函数3内的各功能函数,具体地,请参见表5所列出的各周期函数内携带的各功能函数表;
Figure PCTCN2017100503-appb-000003
表5
由上述表5给出的各周期函数内各功能函数的分布情况可知,周期函数1内有4个功能函数,分别为功能函数A,功能函数B,功能函数C和功能函数D,这4个功能函数在周期函数1可按照串行的方式(比如,首先执行功能函数A,其次执行功能函数B,,然后执行功能函数C,最后执行功能函数D)进行运行;同理地,周期函数3内也包含4个功能函数,分别为功能函数E,功能函数F,功能函数G和功能函数H,这4个功能函数在周期函数3中的依然按设置的顺序进行逐一执行;
可选地,当执行完各周期函数1中的功能函数4后,与周期函数1对应的集合参数Y将根据所述参数递减方式进行相应集合参数(集合参数Y=10)的递减,以形成与下一个周期函数(例如,周期函数2)对应的集合参数(例如,Y=9)。同理地,当执行完周期函数3中的功能函数H后,与周期函数3对应的集合参数Z将根据所述参数递增方式进行相应集合参数(例如,Z=2)的递增,以形成与下一个周期函数(例如,周期函数4)对应的集合参数(例如,Z=3)。
由此可见,所述基于处理器的数据处理装置首先设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;其次,获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;然后,对各目标周期函数集合分别对应的集合参数进行更新,并在所述 各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;最后,同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。可见,所述基于处理器的数据处理装置可比较结果满足所述当前运行时长为所述各执行周期的整数倍时的周期函数集合作为目标周期函数集合,并可在所述周期函数标识等于所述更新后的集合参数时,将所述周期函数标识作为目标周期函数标识,并同步执行各目标周期函数标识分别对应的周期函数内的多个功能函数,以实现分时运行多个功能函数,进一步提高对处理器的利用率,进而降低处理器的功耗。
进一步地,请参见图2,是本发明实施例提供的另一种基于处理器的数据处理装置的结构示意图。如图2所示,所述基于处理器的数据处理装置1至少包括:数据设置模块10,时长比较模块20,参数更新模块30和函数执行模块40;
所述数据设置模块10,用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
具体地,基于处理器的数据处理装置1中的所述数据设置模块10,可用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表,并根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期,并将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中;
其中,所述基于处理器的数据处理装置1可应用于智能手机、个人平板、个人电脑、移动互联网设备、可穿戴设备(例如智能手表(如iwatch等)、智能手环)或其他可安装应用软件的终端设备;
其中,各周期函数集合分别对应的执行周期之间可满足一定的倍数关系,以确保各周期函数集合在同一运行时长下获得最小执行周期,并以最小执行周 期为计时单位,确保各周期函数集合内的各周期函数能进行分时运行,并进一步保障各周期函数的时序运行;
进一步地,所述数据设置模块10的具体实施方式请参见上述图1所对应实施例中对步骤S101的描述,这里不再进行赘述。
进一步地,请参见图3,是本发明实施例提供的一种数据处理模块的结构示意图。如图3所示,所述数据处理模块10,包括:函数集合设置单元101,映射关系建立单元102,执行周期确定单元103和功能函数分配单元104;
所述函数集合设置单元101,用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
所述映射关系建立单元102,用于获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
所述执行周期确定单元103,用于根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
所述功能函数分配单元104,用于将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
比如,所述函数集合设置单元101可接受后台管理人员设置的多个周期函数集合(例如,5个周期函数集合分别为:周期函数集合A,周期函数集合B,周期函数集合C,周期函数集合D和周期函数集合E),并为这5个周期函数集合分别设置对应的执行周期(例如,100us,500us,2.5ms,12.5ms,72.5ms);其中,最小执行周期为100us,且根据执行周期与频率之间的反比关系,可得执行周期越小,则在单位时间内的执行次数就越多。
又比如,以10个功能函数为例,所述函数集合设置单元101可获取到设置的3个周期函数集合,所述映射关系建立单元102,可按照各功能函数在处理器中运行时的耗时情况和/或各功能函数所需的运行周期进行确定各功能函数分别对应的运行优先级。例如,可根据这10个功能函数在处理器中的运行时的耗时多少设置相应的运行周期,并根据所述运行周期确定各功能函数分别对应的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表,使 得与目标周期函数内的各功能函数相关联的静态变量(各运行周期)能起到计时的功能,具体地,请参见表4给出的各功能函数对应的运行周期统计情况表;
Figure PCTCN2017100503-appb-000004
表6
由上述表6给出的各功能函数分别对应的各运行周期统计情况表可知,所述映射关系建立单元102可根据各功能函数在处理器中运行时的耗时情况和/或各功能函数所需的运行周期确定各功能函数在处理器中的运行优先级;其中,对所述各功能函数在处理器中运行时的耗时情况的描述可参见上述图1所对应实施例中对步骤S101的描述,即可根据所述运行时的耗时情况确定各功能函数分别对应的运行周期确定各功能函数在处理器中的运行优先级;可选地,在上述10个功能函数中,也可根据各功能函数在处理器中的运行周期确定各功能函数在处理器中的运行优先级,即可将具有一定运行周期范围内的功能函数视为具有同等运行优先级的功能函数。例如,可为上述表6给出的10个功能函数设置3个周期函数集合,这三个周期函数集合分别为A周期函数集合,B周期函数集合和C周期函数集合,且A周期函数集合对应的执行周期为100us,B周期函数集合对应的执行周期为2ms,C周期函数集合对应的执行周期为10ms。鉴于此,可将上述10个功能函数对应的3个周期函数集合依次设置3个等级的优先级,比如,可首先将运行周期小于500us的功能函数1和功能函数6,和运行周期小于800us的功能函数2和功能函数7,这四个功能函数设置为第一运行优先级;其次,可将运行周期小于10ms功能函数3和功能函数8,和运行周期小于15ms功能函数4和功能函数9设置为第二运行优先级;然后,可将运行周期小于20ms功能函数5和功能函数10设置为第三运行优先级;进一步地,可参见上述图1所对应实施例中表1对列举的 10个功能函数在处理器中对应的运行优先级的描述,这里不再进行赘述。
此外,所述执行周期确定单元103可根据所述各运行优先级与各执行周期之间的映射关系确定这3个周期函数集合内10个功能函数分别对应的执行周期;进一步地,请参见表7所示的各周期函数内各功能函数所对应的执行周期分布情况表;
各功能函数 功能函数1 功能函数2 功能函数3 功能函数4 功能函数5
执行周期 100us 100us 2ms 2ms 10ms
各功能函数 功能函数6 功能函数7 功能函数8 功能函数9 功能函数10
执行周期 100us 100us 2ms 2ms 10ms
表7
由上述表7给出的各执行周期的分布情况表,并结合表6所给出的对所述运行周期的统计情况表可知,在这10个功能函数中,可将功能函数1和功能函数6添加至周期函数1内,并可将功能函数2和功能函数7添加至周期函数2内,并使周期函数1和周期函数2所对应的执行周期均为100us;此外,可将功能函数3和功能函数8添加至周期函数3内,并可将功能函数4和功能函数9添加至周期函数4内,并使周期函数3和周期函数4所对应的执行周期均为2ms;此外,可将功能函数5和功能函数10添加至周期函数5内,以使周期函数5所对应的执行周期为10ms。于是,所述功能函数分配单元104可将具有相同执行周期的功能函数;例如,功能函数1和功能函数6,以及功能函数2和功能函数7可,添加至具备对应执行周期的周期函数集合(例如,A周期函数集合),相应地,可将功能函数3和功能函数8,以及功能函数4和功能函数9这四个功能函数对应的添加至B周期函数集合;并可将功能函数5和功能函数10这两个功能函数对应的添加至周期函数集合C,以使各周期函数集合(周期函数1~周期函数5)中分别包含至少一个周期函数,即A周期函数集合中包括2个周期函数,且每个周期函数中包含2个功能函数,B周期函数集合中包括2个周期函数,且每个周期函数中包含2个功能函数,C周期函数集合中包括1个周期函数,且这1个周期函数中包含2个功能函数。
所述时长比较模块20,用于获取处理器的当前运行时长,并将所述当前 运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
具体地,所述时长比较模块20,可用于获取处理器的当前运行时长,并读取各周期函数集合的执行周期,并将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果,并将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果,并将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
可选地,当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
其中,所述时长比较模块20的具体实施方式,请参见上述图1所对应实施例中对表1中各运行时长与各执行周期之间的描述,这里不再一一进行赘述。
进一步地,再请参见图4,是本发明实施例提供的一种时长比较模块的结构示意图。如图4所示,所述时长比较模块20,包括:时长获取单元201,时长比较单元202,条件满足单元203,目标集合确定单元204和内存释放单元205;
所述时长获取单元201,用于获取处理器的当前运行时长,并读取各周期函数集合的执行周期;
所述时长比较单元202,用于将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
所述条件满足单元203,用于将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
所述目标集合确定单元204,用于将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合;
所述内存释放单元205,用于当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
比如,在所述时长获取单元201获取到当前运行时长为670us,且获取到的各执行周期分别为100us,500us和1000us时,所述时长比较单元202,可将所述当前运行时长与各执行周期分别进行比较,并生成与这三个执行周期分别对应的比较结果,即;即670us是100us的6.7倍,670us是500us的1.34倍,670us是1000us的0.67倍,故而所述内存释放单元205,可用于确定所述当前运行时长670us均不是各执行周期的整数倍,即在各周期函数集合内与各执行周期(100us,500us和1000us)分别对应的各比较结果均不满足预设的时间条件;鉴于此,所述基于处理器的数据处理装置1可控制所述内存释放单元205执行释放这三周期函数集合所对应的内存资源的步骤。
所述参数更新模块30,用于对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
具体地,所述参数更新模块30,可用于获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识,并获取参数更新方式;若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
可选地,若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
其中,所述集合参数可用于表征目标周期函数集合内各周期函数所对应的执行顺序;
其中,所述周期函数标识在相应的单个目标周期函数集合中具有唯一性,其最大取值可用于表示该单个目标周期函数集合内周期函数的数量。
具体地,所述参数更新模块30的具体实施方式可参见上述图1所对应实施例中对步骤S103的描述,这里不再进行一一赘述。
进一步地,再请参见图5,是本发明实施例提供的一种参数更新模块的结 构示意图。如图5所示,所述参数更新模块30,包括:集合参数获取单元301,更新方式获取单元302,递增更新单元303和递减更新单元304;
所述集合参数获取单元301,用于获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
所述更新方式获取单元302,用于获取参数更新方式;
所述递增更新单元303,用于若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
所述递减更新单元304,用于若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
所述函数执行模块40,用于同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
比如,以与各目标周期函数标识(5和4)对应的周期函数5内包含3个功能函数以及周期函数4内均包含4个功能函数为例,可在检测到各目标周期函数标识等于该更新后的集合参数(即递减后的集合参数X=5,递减后的集合参数Y=4)时,同步执行各目标周期函数标识分别对应的周期函数(周期函数5和周期函数4)所包含的多个功能函数。具体地,请参见表8给出的各周期函数内各功能函数的分布情况;
Figure PCTCN2017100503-appb-000005
表8
由上述表8给出的周期函数5和周期函数4内各功能函数分别对应的分布情况可知,周期函数5内有3个功能函数,分别为功能函数1,功能函数2和 功能函数3,且这三个功能函数在周期函数5中可按预设的函数的重要性进行顺序执行;与此同时,与周期函数5同步执行的另一个周期函数集合内的周期函数4内包含4个功能函数,分别为功能函数A,功能函数B,功能函数C和功能函数D,这4个功能函数在周期函数4中的执行顺序仍然是预设的重要性进行顺序执行。
由此可见,所述基于处理器的数据处理装置首先设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;其次,获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;然后,对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;最后,同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。可见,所述基于处理器的数据处理装置可比较结果满足所述当前运行时长为所述各执行周期的整数倍时的周期函数集合作为目标周期函数集合,并可在所述周期函数标识等于所述更新后的集合参数时,将所述周期函数标识作为目标周期函数标识,并同步执行各目标周期函数标识分别对应的周期函数内的多个功能函数,以实现分时运行多个功能函数,进一步提高对处理器的利用率,进而降低处理器的功耗。
进一步地,再请参见图6,是本发明实施例提供的另一种基于处理器的数据处理装置的结构示意图,如图6所示,所述基于处理器的数据处理装置1000可以包括:至少一个处理器1001,例如CPU,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,用户接口1003可以包括显示屏(Display)、键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图6所示,作为 一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及设备控制应用程序;
其中,所述基于处理器的数据处理装置1000可应用于智能手机、个人平板、个人电脑、移动互联网设备、可穿戴设备(例如智能手表(如iwatch等)、智能手环)或其他可安装应用软件的终端设备。
在图6所示的基于处理器的数据处理装置1000中,用户接口1003主要用于为用户提供输入的接口,获取用户输出的数据;而处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
在一个实施例中,所述处理器1001在执行所述设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数时,具体执行以下步骤:
设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集 合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
在一个实施例中,所述处理器1001在执行所述获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合时,具体执行以下步骤:
获取处理器的当前运行时长,并读取各周期函数集合的执行周期;
将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
在一个实施例中,所述处理器1001在执行所述将所述当前运行时长与各执行周期进行比较,并生成与所述当前运行时长对应的比较结果之后,还执行以下步骤:
当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
在一个实施例中,所述处理器1001在执行所述对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识时,具体执行以下步骤:
获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
获取参数更新方式;
若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集 合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
由此可见,所述基于处理器的数据处理装置1000首先设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;其次,获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;然后,对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;最后,同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。由此可见,所述基于处理器的数据处理装置可在所述当前运行时长和各执行周期对应的比较结果满足所述时间条件时,将所述满足所述时间条件的周期函数集合确定为所述目标周期函数集合,并在所述各目标周期函数集合中检测到所述目标周期函数标识等于更新后的集合参数时,同步执行各目标周期函数标识分别对应的周期函数中所包含的多个功能函数,进而提高对处理器的利用率,并降低处理器的功耗,以避免处理器的资源浪费。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (10)

  1. 一种基于处理器的数据处理方法,其特征在于,包括:
    设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
    获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
    对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
    同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
  2. 根据权利要求1所述的方法,其特征在于,所述设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数,包括:
    设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
    获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
    根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
    将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
  3. 根据权利要求1所述的方法,其特征在于,所述获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合,包括:
    获取处理器的当前运行时长,并读取各周期函数集合的执行周期;
    将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
    将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
    将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
  4. 根据权利要求3所述的方法,其特征在于,在所述将所述当前运行时长与各执行周期进行比较,并生成与所述当前运行时长对应的比较结果之后,还包括:
    当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
  5. 根据权利要求1所述的方法,其特征在于,所述对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识,包括:
    获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
    获取参数更新方式;
    若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
    若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集 合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
  6. 一种基于处理器的数据处理装置,其特征在于,包括:
    数据设置模块,用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期,并在各周期函数集合中设置至少一个周期函数;各周期函数对应一个周期函数标识;各执行周期互不相同;
    时长比较模块,用于获取处理器的当前运行时长,并将所述当前运行时长与各执行周期进行比较,并将比较结果满足预设的时间条件的周期函数集合确定为目标周期函数集合;
    参数更新模块,用于对各目标周期函数集合分别对应的集合参数进行更新,并在所述各目标周期函数集合中获取与更新后的集合参数相同的周期函数标识,作为目标周期函数标识;
    函数执行模块,用于同步执行各目标周期函数标识分别对应的周期函数所包含的多个功能函数。
  7. 根据权利要求6所述的装置,其特征在于,所述数据设置模块,包括:
    函数集合设置单元,用于设置多个周期函数集合,并为各周期函数集合分别设置对应的执行周期;
    映射关系建立单元,用于获取各功能函数分别对应的预设的运行周期,并根据各运行周期确定所述各功能函数在处理器中的运行优先级,并建立各运行优先级与各执行周期之间的映射关系表;
    执行周期确定单元,用于根据所述各功能函数分别对应的运行优先级,在所述映射关系表中确定所述各功能函数分别对应的执行周期;
    功能函数分配单元,用于将具有相同执行周期的功能函数添加至具备对应执行周期的周期函数集合中,并在各周期函数集合中设置至少一个周期函数,并将各周期函数集合中的功能函数分配至所属的各周期函数中。
  8. 根据权利要求6所述的装置,其特征在于,所述时长比较模块,包括:
    时长获取单元,用于获取处理器的当前运行时长,并读取各周期函数集合 的执行周期;
    时长比较单元,用于将所述当前运行时长与各执行周期进行比较,并生成与所述各执行周期分别对应的比较结果;
    条件满足单元,用于将所述当前运行时长是执行周期的整数倍的比较结果确定为满足预设的时间条件的目标比较结果;
    目标集合确定单元,用于将所述目标比较结果所包含的执行周期对应的周期函数集合确定为目标周期函数集合。
  9. 根据权利要求8所述的装置,其特征在于,所述时长比较模块,还包括:
    内存释放单元,用于当检测到所述当前运行时长未达到所述各执行周期的整数倍时,确定各比较结果均不满足预设的时间条件,并释放所述各周期函数集合所对应的内存资源。
  10. 根据权利要求6所述的装置,其特征在于,所述参数更新模块,包括:
    集合参数获取单元,用于获取各目标周期函数集合分别对应的集合参数以及所述各目标周期函数集合中的各周期函数分别对应的周期函数标识;
    更新方式获取单元,用于获取参数更新方式;
    递增更新单元,用于若所述参数更新方式为参数递增方式,则根据所述参数递增方式对所述各目标周期函数集合分别对应的集合参数进行递增,并在所述各目标周期函数集合中获取与递增后的集合参数相同的周期函数标识,作为目标周期函数标识;
    递减更新单元,用于若所述参数更新方式为参数递减方式,则根据所述参数递减方式对所述各目标周期函数集合分别对应的集合参数进行递减,并在所述各目标周期函数集合中获取与递减后的集合参数相同的周期函数标识,作为目标周期函数标识。
PCT/CN2017/100503 2017-09-05 2017-09-05 一种基于处理器的数据处理方法和装置 WO2019047009A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780011703.6A CN108701030B (zh) 2017-09-05 2017-09-05 一种基于处理器的数据处理方法和装置
PCT/CN2017/100503 WO2019047009A1 (zh) 2017-09-05 2017-09-05 一种基于处理器的数据处理方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100503 WO2019047009A1 (zh) 2017-09-05 2017-09-05 一种基于处理器的数据处理方法和装置

Publications (1)

Publication Number Publication Date
WO2019047009A1 true WO2019047009A1 (zh) 2019-03-14

Family

ID=63844158

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100503 WO2019047009A1 (zh) 2017-09-05 2017-09-05 一种基于处理器的数据处理方法和装置

Country Status (2)

Country Link
CN (1) CN108701030B (zh)
WO (1) WO2019047009A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201594A (zh) * 2007-11-21 2008-06-18 天津理工大学 基于cmx-rtos嵌入式实时操作系统的电动执行机构控制方法
CN101266556A (zh) * 2008-05-09 2008-09-17 北京泰得思达科技发展有限公司 一种多任务调度系统
US20100011237A1 (en) * 2008-07-10 2010-01-14 Brooks Lance S P Controlling real time during embedded system development
CN105204933A (zh) * 2015-09-18 2015-12-30 上海斐讯数据通信技术有限公司 基于单进程的多任务切换执行方法、系统及处理器

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282246A1 (en) * 2007-05-07 2008-11-13 Danny Dolev Compiler aided ticket scheduling of tasks in a computing system
US8004679B2 (en) * 2008-05-09 2011-08-23 Kla-Tencor Corporation Target design and methods for scatterometry overlay determination
JP5120424B2 (ja) * 2010-07-27 2013-01-16 横河電機株式会社 シーケンス制御装置
NL2009508A (en) * 2011-10-24 2013-04-25 Asml Netherlands Bv Metrology method and apparatus, and device manufacturing method.
US20140207671A1 (en) * 2012-08-08 2014-07-24 Yedream Tps Co., Ltd. Customer relationship management using mobile device and method therefor
CN103927180B (zh) * 2014-04-21 2017-02-15 广州市久邦数码科技有限公司 一种基于安卓系统的功能插件的实现方法及其系统
CN105701004B (zh) * 2014-11-28 2020-12-08 深圳市腾讯计算机系统有限公司 一种应用测试方法和装置
FR3033427B1 (fr) * 2015-03-03 2018-05-18 Zodiac Aerotechnics Procede de sequencement de commandes d'execution, procede d'execution, programme d'ordinateur et circuit integre
CN106055075B (zh) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 一种传感器的关闭方法和装置
CN106911587B (zh) * 2017-03-16 2020-08-21 恒生电子股份有限公司 交易量控制方法及装置
CN106970835B (zh) * 2017-03-20 2021-03-09 华侨大学 固定优先级资源受限系统层次能耗优化方法
CN107124458B (zh) * 2017-04-27 2020-01-31 大连云动力科技有限公司 智能感知设备及感知系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201594A (zh) * 2007-11-21 2008-06-18 天津理工大学 基于cmx-rtos嵌入式实时操作系统的电动执行机构控制方法
CN101266556A (zh) * 2008-05-09 2008-09-17 北京泰得思达科技发展有限公司 一种多任务调度系统
US20100011237A1 (en) * 2008-07-10 2010-01-14 Brooks Lance S P Controlling real time during embedded system development
CN105204933A (zh) * 2015-09-18 2015-12-30 上海斐讯数据通信技术有限公司 基于单进程的多任务切换执行方法、系统及处理器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHU, DI: "Graphic Programming System for Robots Based on Event-Driven Mechanism", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE , CHINA MASTER S THESES FULL-TEXT DATABASE, 15 June 2016 (2016-06-15) *

Also Published As

Publication number Publication date
CN108701030B (zh) 2022-05-27
CN108701030A (zh) 2018-10-23

Similar Documents

Publication Publication Date Title
EP3137965A1 (en) Cpu/gpu dcvs co-optimization for reducing power consumption in graphics frame processing
US20200012507A1 (en) Control system for microkernel architecture of industrial server and industrial server comprising the same
CN112988362B (zh) 一种任务处理方法、装置、电子设备及存储介质
WO2020238989A1 (zh) 一种调度任务处理实体的方法及装置
WO2023160608A1 (zh) 机器人的控制方法、装置、存储介质及机器人集群
WO2024082853A1 (zh) 高性能计算应用性能调优的方法及系统
CN104317611B (zh) 一种应用唤醒设置设备、方法以及移动终端
CN109871270B (zh) 调度方案生成方法及装置
WO2020113929A1 (zh) 页面跳转控制方法和装置
WO2019047009A1 (zh) 一种基于处理器的数据处理方法和装置
CN107436839B (zh) 进程负载获取方法、电子终端及计算机可读存储介质
CN110955503A (zh) 任务调度方法及装置
CN113608845A (zh) 数据处理方法及装置
WO2018040670A1 (zh) 一种公共资源降频方法和装置、计算机存储介质
CN112615726A (zh) 一种唤醒时间可变的低功耗处理方法及装置
US20200326770A1 (en) Sleep management method and device, and computer storage medium
WO2022252986A1 (zh) 中断调度方法、电子设备及存储介质
Huang et al. DelayDroid: an instrumented approach to reducing tail-time energy of Android apps
Wang et al. Optimizing the cloud platform performance for supporting large-scale cognitive radio networks
CN113377360B (zh) 任务执行方法、装置、电子设备、存储介质和程序产品
Vorapojpisut Model-based design of IoT/WSN nodes: Device driver implementation
CN111465087B (zh) 任务调度处理方法、装置、存储介质、处理器及系统
Lakhani et al. Applying design patterns to improve the reliability of embedded systems through a process of architecture migration
US9348359B2 (en) Updating a desired tick rate for a kernel
US20200012519A1 (en) Method and appratus for implementing microkernel architecture of industrial server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17924359

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17924359

Country of ref document: EP

Kind code of ref document: A1