WO2021238153A1 - 一种嵌入式实时操作的线程时间管理方法及装置 - Google Patents

一种嵌入式实时操作的线程时间管理方法及装置 Download PDF

Info

Publication number
WO2021238153A1
WO2021238153A1 PCT/CN2020/135533 CN2020135533W WO2021238153A1 WO 2021238153 A1 WO2021238153 A1 WO 2021238153A1 CN 2020135533 W CN2020135533 W CN 2020135533W WO 2021238153 A1 WO2021238153 A1 WO 2021238153A1
Authority
WO
WIPO (PCT)
Prior art keywords
thread
priority
task information
information
task
Prior art date
Application number
PCT/CN2020/135533
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 苏州大学
Publication of WO2021238153A1 publication Critical patent/WO2021238153A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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

  • This application relates to the field of data processing technology, and in particular to a thread time management method and device for embedded real-time operation.
  • Embedded operating systems are widely used in life, such as electric devices in automobiles, video phones, PDAs, and mobile phones, etc., so they are also called “ubiquitous computers.” Embedded systems are also playing an important role in fields related to national security such as military, aviation, and cutting-edge industries. In key applications, embedded systems have high requirements for real-time performance.
  • the embodiment of the application solves the technical problems of high cost and high power consumption in the method of improving the timeliness of embedded operating systems in the prior art, and achieves the The method of thread management improves the timeliness of the embedded operating system, does not increase the cost, and does not increase the technical effect of power consumption.
  • embodiments of the present application provide a thread time management method for embedded real-time operation.
  • the method includes: obtaining a predetermined time threshold; and obtaining attributes of task information to be executed within the predetermined time threshold.
  • Information according to the attribute information of the task information to be executed, the task to be executed is classified according to priority to obtain the first classified task information, the first classified task information includes first task information, second task information, and The third task information, wherein the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher than the priority of the third task information;
  • the first classification task information threads are classified, and a first classification thread is obtained.
  • the first classification thread includes a first thread, a second thread, and a third thread, wherein the priority of the first thread is higher than that of all threads.
  • the priority of the second thread, the priority of the second thread is higher than the priority of the third thread; according to the priority, the first classification task information is allocated to the first classification thread for execution .
  • the method includes: obtaining the occupancy status of the first classification thread; sending a first borrowing request to the second thread, the first borrowing request coming from the third thread, wherein the third thread The thread is a thread with waiting tasks, and the second thread is an unoccupied thread; obtain a first predetermined threshold; determine whether the number of queued tasks in the third thread exceeds the first predetermined threshold; if the third thread The number of queued tasks in the thread exceeds the first predetermined threshold, and a first execution instruction is obtained, where the first execution instruction is used to execute the first borrowing request.
  • the method includes: if the number of queued tasks in the third thread does not exceed the first predetermined threshold, sending the first borrow request to the first thread, wherein the There are fewer child threads than the second thread; according to the first borrow request, first encrypted information is obtained, and the first encrypted information is sent to the third thread; the third thread responds to the The first encrypted information is decrypted to obtain the first decrypted information; according to the first decrypted information, it is determined whether to accept the first borrowing request.
  • the method includes: verifying whether the first decryption information is correct; if the first decryption information is correct, obtaining a second execution instruction; if the first decryption information is incorrect, obtaining a third execution instruction, the The third execution instruction is used to prevent the first borrowing request.
  • the method includes: obtaining the occupancy rate information of the first thread, the second thread, and the third thread according to the occupancy of the first classification thread; obtaining a second predetermined threshold; respectively determining Whether the occupancy rate information of the first thread, the second thread, and the third thread exceeds the second predetermined threshold, obtain a first judgment result; according to the first judgment result, adjust the first The number of threads, the second thread, and the number of child threads of the third thread.
  • the method includes: obtaining a third predetermined threshold; judging whether the occupancy rate information of the second thread exceeds the third predetermined threshold, and obtaining the second judgment result; The second judgment result determines whether to accept the first borrowing request.
  • the method includes: if the second judgment result is that the occupancy rate information of the second thread does not exceed the third predetermined threshold, obtaining a third execution instruction, the third execution instruction being used to execute all The first borrowing request; if the second judgment result is that the occupancy rate information of the second thread exceeds the third predetermined threshold, a fourth execution instruction is obtained, and the fourth execution instruction is used to prevent the first Borrowing request.
  • an embodiment of the present application also provides an embedded real-time operation thread time management device, the device includes: a first obtaining unit, the first obtaining unit is configured to obtain a predetermined time threshold; a second obtaining unit , The second obtaining unit is used to obtain the attribute information of the task information to be executed within the predetermined time threshold; the third obtaining unit is used to obtain the attribute information of the task information to be performed
  • the tasks to be executed are classified according to priority, and first classified task information is obtained.
  • the first classified task information includes first task information, second task information, and third task information, wherein the priority of the first task information Higher than the priority of the second task information, the priority of the second task information is higher than the priority of the third task information; a fourth obtaining unit, the fourth obtaining unit is configured to A classification task information, threads are classified, and a first classification thread is obtained.
  • the first classification thread includes a first thread, a second thread, and a third thread, wherein the priority of the first thread is higher than the priority of the first thread;
  • the priority of the second thread, the priority of the second thread is higher than the priority of the third thread;
  • a first allocation unit the first allocation unit is used to classify the first according to the priority Task information is allocated to the first classification thread for execution.
  • the device includes: a fifth obtaining unit, the fifth obtaining unit is used to obtain the occupation status of the first classification thread; a first sending unit, the first sending unit is used to send a message to the second The thread sends a first borrow request, the first borrow request comes from the third thread, wherein the third thread is a thread with waiting tasks, and the second thread is an unoccupied thread; the sixth acquisition unit, so The sixth obtaining unit is used to obtain a first predetermined threshold; a first judging unit, the first judging unit is used to judge whether the number of queued tasks in the third thread exceeds the first predetermined threshold; a seventh obtaining unit The seventh obtaining unit is configured to obtain a first execution instruction if the number of queued tasks in the third thread exceeds the first predetermined threshold, where the first execution instruction is used to execute the first borrowing request.
  • the device includes: a second sending unit configured to send the first thread to the first thread if the number of queued tasks in the third thread does not exceed the first predetermined threshold The first borrowing request, wherein the child threads of the first thread are less than the child threads of the second thread; an eighth obtaining unit, and the eighth obtaining unit is used to obtain the first Encrypted information, sending the first encrypted information to the third thread; a ninth obtaining unit, where the ninth obtaining unit is used by the third thread to decrypt the first encrypted information to obtain the first decryption Information; a first determining unit, the first determining unit is configured to determine whether to accept the first borrowing request according to the first decryption information.
  • the device includes: a first verification unit, the first verification unit is used to verify whether the first decryption information is correct; a tenth obtaining unit, the tenth obtaining unit is used to verify whether the first decryption information is correct or not; If the information is correct, a second execution instruction is obtained; an eleventh obtaining unit, the eleventh obtaining unit is used to obtain a third execution instruction if the first decryption information is wrong, and the third execution instruction is used to prevent the First borrow request.
  • the device includes: a twelfth obtaining unit, and the twelfth obtaining unit is configured to obtain the first thread, the second thread, and the first thread according to the occupancy of the first classification thread.
  • the device includes: a fifteenth obtaining unit, the fifteenth obtaining unit is used to obtain a third predetermined threshold; a sixteenth obtaining unit, the sixteenth obtaining unit is used to determine the second thread Whether the occupancy rate information exceeds a third predetermined threshold, a second determination result is obtained; a second determination unit, the second determination unit is configured to determine whether to accept the first borrowing request according to the second determination result.
  • the device includes: a seventeenth obtaining unit configured to obtain if the second judgment result is that the occupancy rate information of the second thread does not exceed the third predetermined threshold The third execution instruction, the third execution instruction is used to execute the first borrow request; the eighteenth obtaining unit, the eighteenth obtaining unit is used if the second judgment result is the second thread's When the occupancy rate information exceeds the third predetermined threshold, a fourth execution instruction is obtained, and the fourth execution instruction is used to prevent the first borrowing request.
  • the embodiment of the present application also provides an embedded real-time operation thread time management device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes all
  • the program implements the following steps: obtain a predetermined time threshold; obtain attribute information of the task information to be executed within the predetermined time threshold; classify the task to be executed according to the priority according to the attribute information of the task information to be executed, Obtain first classified task information, where the first classified task information includes first task information, second task information, and third task information, wherein the priority of the first task information is higher than the priority of the second task information The priority of the second task information is higher than the priority of the third task information; according to the first classification task information, threads are classified to obtain a first classification thread, and the first classification thread includes The first thread, the second thread, and the third thread, wherein the priority of the first thread is higher than the priority of the second thread, and the priority of the second thread is higher than the priority of the third thread Level; According to the priority,
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the following steps are implemented: obtaining a predetermined time threshold; obtaining a waiting time within the predetermined time threshold The attribute information of the execution task information; according to the attribute information of the to-be-executed task information, the to-be-executed task is classified according to the priority to obtain the first classified task information, and the first classified task information includes the first task information, Second task information and third task information, wherein the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher than that of the third task information Priority; according to the first classification task information, threads are classified to obtain a first classification thread, the first classification thread includes a first thread, a second thread and a third thread, wherein the first thread The priority is higher than the priority of the second thread, and the priority of the second thread is higher than the priority of the third thread; according to the priority
  • the embodiments of the present application provide a thread time management method and device for embedded real-time operation, and the method includes: Obtain a predetermined time threshold; obtain attribute information of task information to be executed within the predetermined time threshold; classify the task to be executed according to the priority according to the attribute information of the task information to be executed, and obtain the first classified task information,
  • the first classified task information includes first task information, second task information, and third task information, wherein the priority of the first task information is higher than the priority of the second task information, and the second task The priority of the information is higher than the priority of the third task information; according to the first classified task information, threads are classified to obtain a first classified thread, and the first classified thread includes a first thread and a second thread And a third thread, wherein the priority of the first thread is higher than the priority of the second thread, and the priority of the second thread is higher than the priority of the third thread; according to the
  • FIG. 1 is a schematic flowchart of a thread time management method for embedded real-time operation in an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a thread time management device for embedded real-time operation in an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of another thread time management device for embedded real-time operation in an embodiment of the present invention.
  • first obtaining unit 11 second obtaining unit 12, third obtaining unit 13, fourth obtaining unit 14, first distributing unit 15, bus 300, receiver 301, processor 302, transmitter 303, Memory 304, bus interface 306.
  • the embodiment of the application provides a thread time management method and device for embedded real-time operation, which solves the technical problems of high cost and high power consumption in the method of improving the timeliness of an embedded operating system in the prior art, and achieves the The method of thread management improves the timeliness of the embedded operating system, does not increase the cost, and does not increase the technical effect of power consumption.
  • a thread time management method for embedded real-time operation includes: obtaining a predetermined time threshold; obtaining attribute information of task information to be executed within the predetermined time threshold; The tasks to be executed are classified according to priority, and first classified task information is obtained.
  • the first classified task information includes first task information, second task information, and third task information, wherein the priority of the first task information Higher than the priority of the second task information, the priority of the second task information is higher than the priority of the third task information; according to the first classified task information, threads are classified to obtain the first Classification thread, the first classification thread includes a first thread, a second thread, and a third thread, wherein the priority of the first thread is higher than the priority of the second thread, and the priority of the second thread The priority is higher than the priority of the third thread; according to the priority, the first classification task information is allocated to the first classification thread for execution.
  • the embodiment of the present invention provides a thread time management method for embedded real-time operation. As shown in FIG. 1, the method is applied to an embedded real-time operating system.
  • the operating system includes a main control module, a thread inspection module, and a thread
  • the deployment module, the main control module is the main program execution module of the operating system, and the operating system is in communication with a PC, and the method includes:
  • Step 110 Obtain a predetermined time threshold
  • the predetermined time threshold is set in the operating system, and the user sets the predetermined time threshold in a program of the operating system.
  • the predetermined time threshold may also be set in the human-computer interaction interface of the operating system.
  • the threshold is modified.
  • the thread inspection module periodically inspects the attribute information of the task to be executed with the predetermined time threshold value, and the thread allocation module allocates threads to the task to be executed according to the priority of the task to be executed.
  • Step 120 Obtain the attribute information of the task information to be executed within the predetermined time threshold
  • Step 130 According to the attribute information of the to-be-executed task information, classify the to-be-executed tasks according to their priorities to obtain first classified task information, where the first classified task information includes first task information and second task information And third task information, wherein the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher than the priority of the third task information;
  • the operating system supports multiple tasks, and each task has a priority level.
  • the more important the task the higher the priority level assigned.
  • the task to be executed is a task that needs to be executed by the operating system requested by the PC within the predetermined time threshold.
  • the attribute information contains the priority of the task to be executed, and the priority is divided into three levels, namely the first priority, the second priority, and the third priority.
  • the priority is higher than the second priority, and the second priority is higher than the third priority.
  • the priority level of the task to be executed the task to be executed is divided into three categories, which are the first task information, the second task information, and the third task information.
  • the priority of one task information is the first priority
  • the priority of the second task information is the second priority
  • the priority of the third task information is the third priority.
  • Step 140 Classify threads according to the first classification task information to obtain a first classification thread.
  • the first classification thread includes a first thread, a second thread, and a third thread.
  • the priority is higher than the priority of the second thread, and the priority of the second thread is higher than the priority of the third thread;
  • Step 150 According to the priority, the first classification task information is allocated to the first classification thread for execution.
  • the operating system first executes the task information in the first thread, secondly executes the task information in the second thread, and finally executes the task information in the third thread.
  • the thread deployment module allocates the to-be-executed tasks belonging to the first task information to the first thread, and allocates the to-be-executed tasks belonging to the second task information to the second thread, which will belong to the first thread.
  • the tasks to be executed in the three task information are allocated to the third thread, that is, the tasks to be executed with the first priority are in the first thread, and the tasks to be executed with the second priority are in the second thread and have the third priority.
  • the tasks to be executed at the level are in the third thread.
  • the operating system executes processing of the tasks to be executed according to the first classification thread, and achieves thread allocation of the tasks to be executed according to priority, to ensure priority execution of key tasks, and a technology to ensure the real-time performance of key tasks Effect.
  • the embodiment of the present application does not need to upgrade the chip and increase the processor frequency to achieve the technical effect of improving the actual effect of thread management of the embedded operating system.
  • the method includes:
  • a first execution instruction is obtained, and the first execution instruction is used to execute the first borrowing request.
  • the thread inspection module analyzes each thread in the first classification thread.
  • the tasks within are inspected to obtain the occupancy status of the first classification thread.
  • the thread inspection module allows the third thread to send the first borrowing request to the second thread.
  • the first predetermined threshold is set in the second thread, and the second thread obtains the number of tasks to be processed in the third thread, that is, the first number, through the thread inspection module, and determines the first number Whether a number is greater than the first predetermined threshold, when the first number is greater than the first predetermined threshold, the second thread allows the first borrow request of the third thread, and the second thread Issuing the first execution instruction allows the thread deployment module to deploy the tasks to be executed of the third thread to the second thread.
  • the thread deployment module allocates the tasks to be executed in the third thread to the second thread; when the first number is less than or equal to the first predetermined threshold, the second thread rejects the second thread The first borrow request of three threads.
  • the method includes: if the number of queued tasks in the third thread does not exceed the first predetermined threshold, sending the first borrow request to the first thread, wherein the The number of child threads is less than the child threads of the second thread;
  • the third thread decrypts the first encrypted information to obtain the first decrypted information
  • the first decryption information it is determined whether to accept the first borrowing request.
  • the method includes: verifying whether the first decryption information is correct;
  • the third thread may send the first borrow request to the first thread.
  • the third thread sends the first borrow request to the first thread
  • the first thread sends the first encrypted information to the third thread after receiving the first request information
  • the first encrypted information contains a first secret key.
  • the first encrypted information is encrypted information inherent to the first thread. If a thread other than the first thread allocates tasks to the first thread, the first thread sends the first encrypted information to a thread other than the first thread, and one of the first threads Only when the outer thread cracks the first encrypted information can it allocate tasks to the first thread.
  • the third thread After receiving the first encryption information, the third thread generates the first decryption information, and the first decryption information includes a second secret key.
  • the first secret key matches the second secret key, the first decryption information is correct, the third thread cracks the first encrypted information, and tasks can be allocated to the first thread ,
  • the first thread sends the second execution instruction to the thread deployment module, and the thread deployment module deploys tasks in the third thread to the first thread; when the first secret key When it does not match the second secret key, the first decryption information is wrong, the third thread cannot allocate tasks to the first thread, and the first thread sends the thread allocation module
  • the thread deployment module prevents the third thread from sending the first borrowing request to the first thread.
  • first task and the second task all belong to the same thread, and the order of the second task in the thread is behind the first task.
  • the limit operating time the predetermined operating time ⁇ the predetermined multiple.
  • this embodiment is suitable for any one of the first thread, the second thread, and the third thread.
  • the first task and the second task are both located in the first thread, and the second task is sorted after the first task.
  • the main control module executes the first task first
  • the actual running time is the time it takes for the main control module to execute the first task
  • the predetermined running time is the time the main control module successfully executes the The time consumed for the first task
  • the limit running time is the longest time that the main control module allows for the operating system to execute the first task.
  • the actual running time exceeds the limit running time, it means that the main control module has an error when executing the first task, and the first task cannot be executed smoothly.
  • the first task is interrupted and suspended, and the main control module reads the second task from the first thread, and executes the second task.
  • the processing of the first task is terminated, other tasks in the thread are processed immediately, the waiting time of the task is reduced, and the technical effect of the timeliness of the operating system is enhanced.
  • the predetermined multiple is preset in the running program, and can be reset and modified through the man-machine interaction interface of the operating system.
  • the method includes: obtaining occupancy rate information of the first thread, the second thread, and the third thread according to the occupancy of the first classification thread;
  • the number of sub-threads of the first thread, the second thread, and the third thread are respectively adjusted.
  • the thread inspection module obtains the first occupancy rate, the second occupancy rate, and the third occupancy rate according to the occupancy frequency of the first thread, the second thread, and the third thread at a fixed frequency, wherein, the first occupancy rate is the current occupancy rate of the first thread, the second occupancy rate is the current occupancy rate of the second thread, and the third occupancy rate is the current occupancy rate of the third thread Occupancy rate.
  • the second predetermined threshold is set in the thread inspection module, and the second predetermined threshold can be modified and set through the human-computer interaction interface of the operating system.
  • the thread inspection module determines whether the first occupancy rate, the second occupancy rate, and the third occupancy rate are greater than the second predetermined threshold, obtains the first determination result, and compares the first determination The result is transmitted to the thread deployment unit.
  • the thread deployment unit deploys the number of subprograms of the first thread, the second thread, and the third thread according to the first judgment result, and the specific deployment method is: when the third occupancy rate is greater than When the second threshold is set, the third thread is allowed to send the first borrow request to the first thread/second thread, and when the first thread/second thread allows the first borrow request, all The tasks in the third thread are deployed to the first thread/second thread; when the second occupancy rate is greater than the second threshold, the second thread is allowed to send a second borrow to the first thread Request, when the first thread allows the second borrowing request, deploy tasks in the second thread to the first thread.
  • the method includes: obtaining a third predetermined threshold
  • the method includes: if the second judgment result is that the occupancy rate information of the second thread does not exceed the third predetermined threshold, obtaining a third execution instruction, the third execution instruction being used to execute all State the first borrowing request;
  • the second judgment result is that the occupancy rate information of the second thread exceeds the third predetermined threshold, a fourth execution instruction is obtained, and the fourth execution instruction is used to prevent the first borrowing request.
  • the third occupancy rate is greater than the second predetermined threshold, and the third thread sends the first borrow request to the second thread
  • the thread deployment module prevents the third thread from sending the first borrowing request to the second thread, so as to prevent the third thread from continuously sending the first borrowing request, reducing the operating system memory usage rate, and speeding up
  • the processing speed of the operating system enhances the technical effect of the timeliness of the operating system.
  • the present invention also provides a thread time management device for embedded real-time operation. As shown in FIG. 2, the device includes:
  • the first obtaining unit 11 is configured to obtain a predetermined time threshold
  • the second obtaining unit 12 is configured to obtain the attribute information of the task information to be executed within the predetermined time threshold
  • the third obtaining unit 13 is configured to classify the to-be-executed tasks according to the priority according to the attribute information of the to-be-executed task information to obtain first-classified task information, and the first classification
  • the task information includes first task information, second task information, and third task information, wherein the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher The priority of the third task information;
  • the fourth obtaining unit 14 is configured to classify threads according to the first classification task information to obtain a first classification thread.
  • the first classification thread includes a first thread, a second thread, and A third thread, wherein the priority of the first thread is higher than the priority of the second thread, and the priority of the second thread is higher than the priority of the third thread;
  • the first allocation unit 15 is configured to allocate the first classification task information to the first classification thread for execution according to the priority.
  • the device includes:
  • a fifth obtaining unit where the fifth obtaining unit is used to obtain the occupancy status of the first classification thread
  • a first sending unit configured to send a first borrowing request to the second thread, the first borrowing request is from the third thread, and the third thread is a thread with waiting tasks , And the second thread is an unoccupied thread;
  • a sixth obtaining unit where the sixth obtaining unit is configured to obtain a first predetermined threshold
  • a first judging unit the first judging unit is configured to judge whether the number of queued tasks in the third thread exceeds the first predetermined threshold
  • a seventh obtaining unit the seventh obtaining unit is configured to obtain a first execution instruction if the number of queued tasks in the third thread exceeds the first predetermined threshold, and the first execution instruction is used to execute the first execution instruction A borrowing request.
  • the device includes:
  • the second sending unit is configured to send the first borrow request to the first thread if the number of queued tasks in the third thread does not exceed the first predetermined threshold, wherein The child threads of the first thread are less than the child threads of the second thread;
  • An eighth obtaining unit configured to obtain first encrypted information according to the first borrowing request, and send the first encrypted information to the third thread;
  • a ninth obtaining unit where the ninth obtaining unit is used by the third thread to decrypt the first encrypted information to obtain the first decrypted information
  • the first determining unit is configured to determine whether to accept the first borrowing request according to the first decryption information.
  • the device includes:
  • a first verification unit where the first verification unit is used to verify whether the first decryption information is correct
  • a tenth obtaining unit the tenth obtaining unit is configured to obtain a second execution instruction if the first decryption information is correct;
  • An eleventh obtaining unit configured to obtain a third execution instruction if the first decryption information is wrong, and the third execution instruction is used to prevent the first borrowing request.
  • the device includes:
  • a twelfth obtaining unit where the twelfth obtaining unit is configured to obtain occupancy rate information of the first thread, the second thread, and the third thread according to the occupancy of the first classification thread;
  • a thirteenth obtaining unit where the thirteenth obtaining unit is configured to obtain a second predetermined threshold
  • a fourteenth obtaining unit the fourteenth obtaining unit is used to determine whether the occupancy rate information of the first thread, the second thread, and the third thread respectively exceed the second predetermined threshold, and obtain the first critical result;
  • the first adjustment unit is configured to adjust the number of sub-threads of the first thread, the second thread, and the third thread according to the first judgment result.
  • the device includes:
  • a fifteenth obtaining unit is configured to obtain a third predetermined threshold
  • a sixteenth obtaining unit the sixteenth obtaining unit is configured to determine whether the occupancy rate information of the second thread exceeds a third predetermined threshold, and obtain a second determination result;
  • the second determining unit is configured to determine whether to accept the first borrowing request according to the second determination result.
  • the device includes:
  • a seventeenth obtaining unit is configured to obtain a third execution instruction if the second judgment result is that the occupancy rate information of the second thread does not exceed the third predetermined threshold. 3.
  • the execution instruction is used to execute the first borrowing request;
  • An eighteenth obtaining unit configured to obtain a fourth execution instruction if the second judgment result is that the occupancy rate information of the second thread exceeds the third predetermined threshold.
  • the execution instruction is used to prevent the first borrowing request.
  • the various variations and specific examples of the thread time management method for embedded real-time operation in the first embodiment of FIG. 1 are also applicable to the thread time management device for embedded real-time operation of this embodiment.
  • the present invention also provides a thread time management device for embedded real-time operation, on which a computer program is stored, and the program is During execution, the steps of any method of the thread time management method for embedded real-time operation described above are realized.
  • the bus architecture (represented by a bus 300), the bus 300 can include any number of interconnected buses and bridges, and the bus 300 will include one or more processors represented by the processor 302 and a memory 304 representing The various circuits of the memory are linked together.
  • the bus 300 may also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, no further description will be given herein.
  • the bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303.
  • the receiver 301 and the transmitter 303 may be the same element, that is, a transceiver, which provides a unit for communicating with various other devices on the transmission medium.
  • the processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used to store data used by the processor 302 when performing operations.
  • the present invention also provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the following is achieved step:
  • the to-be-executed tasks are classified according to their priorities to obtain first classified task information.
  • the first classified task information includes first task information, second task information, and third task information.
  • Task information wherein the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher than the priority of the third task information;
  • the first classification thread includes a first thread, a second thread, and a third thread, wherein the first thread has a high priority Regarding the priority of the second thread, the priority of the second thread is higher than the priority of the third thread;
  • the first classification task information is allocated to the first classification thread for execution.
  • any method step in the first embodiment can also be implemented.
  • the embodiment of the application provides a thread time management method and device for embedded real-time operation.
  • the method includes: obtaining a predetermined time threshold; obtaining attribute information of task information to be executed within the predetermined time threshold; The attribute information of the task information is to classify the tasks to be executed according to the priority to obtain the first classified task information.
  • the first classified task information includes the first task information, the second task information, and the third task information.
  • the priority of the first task information is higher than the priority of the second task information, and the priority of the second task information is higher than the priority of the third task information; according to the first classified task information, Classify threads to obtain a first classified thread, the first classified thread includes a first thread, a second thread, and a third thread, wherein the priority of the first thread is higher than the priority of the second thread , The priority of the second thread is higher than the priority of the third thread; according to the priority, the first classification task information is allocated to the first classification thread for execution.
  • the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种嵌入式实时操作的线程时间管理方法及装置,涉及数据处理技术领域,方法包括:获得预定时间阈值(S110);获得预定时间阈值内待执行任务信息的属性信息(S120);根据待执行任务信息的属性信息,对待执行任务按照优先级进行分类,获得第一分类任务信息,第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息(S130);根据第一分类任务信息,对线程进行分类,获得第一分类线程,第一分类线程包括第一线程、第二线程和第三线程(S140);按照优先级,将第一分类任务信息分配至第一分类线程执行(S150),达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。

Description

一种嵌入式实时操作的线程时间管理方法及装置 技术领域
本申请涉及数据处理技术领域,尤其涉及一种嵌入式实时操作的线程时间管理方法及装置。
背景技术
嵌入式操作系统在生活中应用广泛,如汽车上的电动装置,可视电话,PDA,手机等,因此又被称为“无处不在的计算机”。在军事、航空、尖端工业等关乎国家安全的领域嵌入式系统也在发挥着重要的作用,在关键领域的应用中,嵌入式系统对于实时性有很高的要求。
但本申请发明人在实现本申请实施例中技术方案的过程中,发现上述现有技术至少存在如下技术问题:
随着通信技术的不断发展,各种线程信号处理信号不断增多。目前,大多通过升级芯片,提高处理器频率的方法加快操作系统的处理速度,提高操作系统的时效性,然而升级芯片成本高,提高处理器频率造成操作系统的功耗加大。
技术问题 技术解决方案
本申请实施例通过提供一种嵌入式实时操作的线程时间管理方法及装置,解决了现有技术中提高嵌入式操作系统时效性的方法存在成本高、功耗大的技术问题,达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。
为了解决上述问题,第一方面,本申请实施例提供了一种嵌入式实时操作的线程时间管理方法,所述方法包括:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
优选的,所述方法包括:获得所述第一分类线程的占用情况;向所述第二线程发送第一借用请求,所述第一借用请求来自所述第三线程,其中,所述第三线程为具有等待任务的线程,且所述第二线程为未占用线程;获得第一预定阈值;判断所述第三线程中排队任务的数量是否超过所述第一预定阈值;如果所述第三线程中排队任务的数量超过所述第一预定阈值,获得第一执行指令,所述第一执行指令用于执行所述第一借用请求。
优选的,所述方法包括:如果所述第三线程中排队任务的数量未超过所述第一预定阈值,向所述第一线程发送所述第一借用请求,其中,所述第一线程的子线程少于所述第二线程的子线程;根据所述第一借用请求,获得第一加密信息,将所述第一加密信息发送至所述第三线程;所述第三线程对所述第一加密信息进行解密,获得第一解密信息;根据所述第一解密信息,确定是否接受所述第一借用请求。
优选的,所述方法包括:验证所述第一解密信息是否正确;如果所述第一解密信息正确,获得第二执行指令;如果所述第一解密信息错误,获得第三执行指令,所述第三执行指令用于阻止所述第一借用请求。
优选的,所述方法包括:根据所述第一分类线程的占用情况,获得所述第一线程、所述第二线程和所述第三线程的占用率信息;获得第二预定阈值;分别判断所述第一线程、所述第二线程和所述第三线程的占用率信息是否超过所述第二预定阈值,获得第一判断结果;根据所述第一判断结果,分别调整所述第一线程、所述第二线程和所述第三线程的子线程数量。
优选的,所述向所述第二线程发送第一借用请求之后,包括:获得第三预定阈值;判断所述第二线程的占用率信息是否超过第三预定阈值,获得第二判断结果;根据所述第二判断结果,确定是否接受所述第一借用请求。
优选的,所述方法包括:如果所述第二判断结果为所述第二线程的占用率信息未超过所述第三预定阈值,获得第三执行指令,所述第三执行指令用于执行所述第一借用请求;如果所述第二判断结果为所述第二线程的占用率信息超过所述第三预定阈值,获得第四执行指令,所述第四执行指令用于阻止所述第一借用请求。
第二方面,本申请实施例还提供了一种嵌入式实时操作的线程时间管理装置,所述装置包括:第一获得单元,所述第一获得单元用于获得预定时间阈值;第二获得单元,所述第二获得单元用于获得所述预定时间阈值内待执行任务信息的属性信息;第三获得单元,所述第三获得单元用于根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;第四获得单元,所述第四获得单元用于根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;第一分配单元,所述第一分配单元用于按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
优选的,所述装置包括:第五获得单元,所述第五获得单元用于获得所述第一分类线程的占用情况;第一发送单元,所述第一发送单元用于向所述第二线程发送第一借用请求,所述第一借用请求来自所述第三线程,其中所述第三线程为具有等待任务的线程,且所述第二线程为未占用线程;第六获得单元,所述第六获得单元用于获得第一预定阈值;第一判断单元,所述第一判断单元用于判断所述第三线程中排队任务的数量是否超过所述第一预定阈值;第七获得单元,所述第七获得单元用于如果所述第三线程中排队任务的数量超过所述第一预定阈值,获得第一执行指令,所述第一执行指令用于执行所述第一借用请求。
优选的,所述装置包括:第二发送单元,所述第二发送单元用于如果所述第三线程中排队任务的数量未超过所述第一预定阈值,向所述第一线程发送所述第一借用请求,其中,所述第一线程的子线程少于所述第二线程的子线程;第八获得单元,所述第八获得单元用于根据所述第一借用请求,获得第一加密信息,将所述第一加密信息发送至所述第三线程;第九获得单元,所述第九获得单元用于所述第三线程对所述第一加密信息进行解密,获得第一解密信息;第一确定单元,所述第一确定单元用于根据所述第一解密信息,确定是否接受所述第一借用请求。
优选的,所述装置包括:第一验证单元,所述第一验证单元用于验证所述第一解密信息是否正确;第十获得单元,所述第十获得单元用于如果所述第一解密信息正确,获得第二执行指令;第十一获得单元,所述第十一获得单元用于如果所述第一解密信息错误,获得第三执行指令,所述第三执行指令用于阻止所述第一借用请求。
优选的,所述装置包括:第十二获得单元,所述第十二获得单元用于根据所述第一分类线程的占用情况,获得所述第一线程、所述第二线程和所述第三线程的占用率信息;第十三获得单元,所述第十三获得单元用于获得第二预定阈值;第十四获得单元,所述第十四获得单元用于分别判断所述第一线程、所述第二线程和所述第三线程的占用率信息是否超过所述第二预定阈值,获得第一判断结果;第一调整单元,所述第一调整单元用于根据所述第一判断结果,分别调整所述第一线程、所述第二线程和所述第三线程的子线程数量。
优选的,所述装置包括:第十五获得单元,所述第十五获得单元用于获得第三预定阈值;第十六获得单元,所述第十六获得单元用于判断所述第二线程的占用率信息是否超过第三预定阈值,获得第二判断结果;第二确定单元,所述二确定单元用于根据所述第二判断结果,确定是否接受所述第一借用请求。
优选的,所述装置包括:第十七获得单元,所述第十七获得单元用于如果所述第二判断结果为所述第二线程的占用率信息未超过所述第三预定阈值,获得第三执行指令,所述第三执行指令用于执行所述第一借用请求;第十八获得单元,所述第十八获得单元用于如果所述第二判断结果为所述第二线程的占用率信息超过所述第三预定阈值,获得第四执行指令,所述第四执行指令用于阻止所述第一借用请求。
第三方面,本申请实施例还提供了一种嵌入式实时操作的线程时间管理装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤: 获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
有益效果
本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:本申请实施例通过提供一种嵌入式实时操作的线程时间管理方法及装置,所述方法包括:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。解决了现有技术中提高嵌入式操作系统时效性的方法存在成本高、功耗大的技术问题,达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。
附图说明
图1为本发明实施例中一种嵌入式实时操作的线程时间管理方法的流程示意图;
图2为本发明实施例中一种嵌入式实时操作的线程时间管理装置的结构示意图;
图3为本发明实施例中另一种嵌入式实时操作的线程时间管理装置的结构示意图。
附图标记说明:第一获得单元11,第二获得单元12,第三获得单元13,第四获得单元14,第一分配单元15,总线300,接收器301,处理器302,发送器303,存储器304,总线接口306。
本发明的实施方式
本申请实施例提供了一种嵌入式实时操作的线程时间管理方法及装置,解决了现有技术中提高嵌入式操作系统时效性的方法存在成本高、功耗大的技术问题,达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。
为了解决上述技术问题,本申请提供的技术方案总体思路如下:
一种嵌入式实时操作的线程时间管理方法,所述方法包括:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。解决了现有技术中提高嵌入式操作系统时效性的方法存在成本高、功耗大的技术问题,达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。
下面通过附图以及具体实施例对本申请技术方案做详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互组合。
实施例一
本发明实施例提供的一种嵌入式实时操作的线程时间管理方法,如图1所示,所述方法应用于一嵌入式实时操作系统,所述操作系统包括主控模块、线程巡查模块、线程调配模块,所述主控模块为所述操作系统的主程序执行模块,所述操作系统与PC机通讯连接,所述方法包括:
步骤110:获得预定时间阈值;
具体而言,所述操作系统中设置所述预定时间阈值,用户在所述操作系统的程序中设置所述预定时间阈值,也可在所述操作系统的人机交互界面中对所述预定时间阈值进行修改。所述线程巡查模块以所述预定时间阈值为周期对待执行任务的属性信息进行巡查,所述线程分配模块按照待执行任务的优先级为所述待执行任务分配线程。
步骤120:获得所述预定时间阈值内待执行任务信息的属性信息;
步骤130:根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;
具体而言,所述操作系统支持多任务,每个任务都具有优先级级别,任务越重要,赋予的优先级级别越高。所述待执行任务为所述预定时间阈值时间内,所述PC机请求所述操作系统需要执行的任务。所述属性信息内包含所述待执行任务的优先级,所述优先级分为三个级别,分别为第一优先级、第二优先级、第三优先级,其中所述第一优先级的优先级高于所述第二优先级,所述第二优先级的级别高于所述第三优先级。根据所述待执行任务的优先级级别,将所述待执行任务分为三类,分别为所述第一任务信息、所述第二任务信息、所述第三任务信息,其中,所述第一任务信息的优先级别为所述第一优先级,所述第二任务信息的优先级为所述第二优先级,所述第三任务信息的优先级为第三优先级。
步骤140:根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;
步骤150:按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
具体而言,所述操作系统在执行任务过程中,优先执行所述第一线程内的任务信息,其次执行所述第二线程内的任务信息,最后执行所述第三线程内的任务信息。所述线程调配模块将属于所述第一任务信息的待执行任务分配给所述第一线程,将属于所述第二任务信息的待执行任务分配给所述第二线程,将属于所述第三任务信息的待执行任务分配给所述第三线程,即具有第一优先级的待执行任务在所述第一线程,具有第二优先级的待执行任务在第二线程,具有第三优先级的待执行任务在第三线程。所述操作系统按照所述第一分类线程对所述待执行任务进行执处理,达到根据优先级对所述待执行任务进行线程分配,保证关键任务的优先执行,保证关键任务的实时性的技术效果。本申请实施例无需升级芯片,提高处理器频率,即可达到提高嵌入式操作系统线程管理实效的技术效果。
进一步的,所述方法包括:
获得所述第一分类线程的占用情况;
向所述第二线程发送第一借用请求,所述第一借用请求来自所述第三线程,其中所述第三线程为具有等待任务的线程,且所述第二线程为未占用线程;
获得第一预定阈值;
判断所述第三线程中排队任务的数量是否超过所述第一预定阈值;
如果所述第三线程中排队任务的数量超过所述第一预定阈值,获得第一执行指令,所述第一执行指令用于执行所述第一借用请求。
具体而言,所述第一线程、所述第二线程、所述第三线程内分配的所述待执行任务的数量不同,所述线程巡查模块通过对所述第一分类线程中的各个线程内的任务进行巡查,获得所述第一分类线程的占用情况。
所述线程巡查模块获得所述第一分类线程的占用情况后,当所述第二线程内的任务已全部完成,处于未占用状态,所述第三线程内有等待处理的任务时,所述线程巡查模块允许所述第三线程向所述第二线程发送所述第一借用请求。所述第二线程内设置有所述第一预定阈值,所述第二线程通过所述线程巡查模块获得所述第三线程中的待处理任务的数量,即第一数量,并判断所述第一数量是否大于所述第一预定阈值,当所述第一数量大于所述第一预定阈值时,所述第二线程允许所述第三线程的所述第一借用请求,所述第二线程发出所述第一执行指令,允许所述线程调配模块将所述第三线程的待执行任务调配到所述第二线程中。所述线程调配模块将所述第三线程内的待执行任务分配到所述第二线程内;当所述第一数量小于等于所述第一预定阈值时,所述第二线程拒绝所述第三线程的所述第一借用请求。
进一步的,所述方法包括:如果所述第三线程中排队任务的数量未超过所述第一预定阈值,向所述第一线程发送所述第一借用请求,其中,所述第一线程的子线程少于所述第二线程的子线程;
根据所述第一借用请求,获得第一加密信息,将所述第一加密信息发送至所述第三线程;
所述第三线程对所述第一加密信息进行解密,获得第一解密信息;
根据所述第一解密信息,确定是否接受所述第一借用请求。
进一步的,所述方法包括:验证所述第一解密信息是否正确;
如果所述第一解密信息正确,获得第二执行指令;
如果所述第一解密信息错误,获得第三执行指令,所述第三执行指令用于阻止所述第一借用请求。
具体而言,当所述第一线程内的待处理任务数量小于所述第二线程时,且当所述第二线程拒绝所述第三线程的所述第一借用请求后,所述第三线程可以向所述第一线程发送所述第一借用请求。当所述第三线程向所述第一线程发送所述第一借用请求时,所述第一线程接收到所述第一请求信息后,向所述第三线程发送所述第一加密信息,所述第一加密信息中含有第一秘钥。所述第一加密信息为所述第一线程固有的加密信息。所述第一线程之外的线程若向所述第一线程内调配任务,所述第一线程均向所述第一线程之外的线程发送所述第一加密信息,所述第一线程之外的线程只有破解所述第一加密信息,才可向所述第一线程内调配任务。
所述第三线程接收到所述第一加密信息后,产生所述第一解密信息,所述第一解密信息中包含第二秘钥。当所述第一秘钥与所述第二秘钥相匹配时,所述第一解密信息正确,所述第三线程破解了所述第一加密信息,可向所述第一线程内调配任务,所述第一线程向所述线程调配模块发送所述第二执行指令,所述线程调配模块将所述第三线程内的任务调配到所述第一线程内;当所述第一秘钥与所述第二秘钥不匹配时,所述第一解密信息错误,所述第三线程不可以向所述第一线程内调配任务,所述第一线程向所述线程调配模块发送所述第三执行指令,所述线程调配模块阻止所述第三线程向所述第一线程发送所述第一借用请求。达到根据线程的实际状态进行任务调配,减少任务等待时间,增强所述操作系统的时效性的技术效果。
进一步的,获得第一任务的实际运行时间;
获得第一任务的极限运行时间;
判断所述实际运行时间是否大于所述极限运行时间;
若所述实际运行运行时间大于所述极限运行时间,中断所述第一任务,执行所述第二任务;
其中,所述第一任务、所述第二任务均属于同一线程,所述第二任务在线程中的排序位于所述第一任务之后。
进一步的,获得所述第一任务的预定运行时间;
获得预定倍数;
所述极限运行时间=所述预定运行时间×所述预定倍数。
具体而言,本实施例适合于所述第一线程、所述第二线程、所述第三线程中的任一线程。以所述第一线层为例,所述第一任务、所述第二任务均位于所述第一线程中,所述第二任务的排序在所述第一任务之后。所述主控模块先执行所述第一任务,所述实际运行时间为所述主控模块执行所述第一任务时耗费的时间,所述预定运行时间为所述主控模块顺利执行所述第一任务时耗费的时间,所述极限运行时间是所述操作系统允许的所述主控模块执行所述第一任务耗费的最长时间。当所述实际运行时间超过所述极限运行时间时,说明所述主控模块在执行所述第一任务时出现错误,所述第一任务不能被顺利执行。此时所述第一任务被中断挂起,所述主控模块从所述第一线程中读取所述第二任务,执行所述第二任务。达到在第一任务运行出现错误时,终止对所述第一任务的处理,立即处理线程中的其他任务,缩减任务的等待时间,增强所述操作系统的时效性的技术效果。所述预定倍数预先设置在运行程序中,可通过所述操作系统的人机交互界面进行重新设置和修改。
进一步的,所述方法包括:根据所述第一分类线程的占用情况,获得所述第一线程、所述第二线程和所述第三线程的占用率信息;
获得第二预定阈值;
分别判断所述第一线程、所述第二线程和所述第三线程的占用率信息是否超过所述第二预定阈值,获得第一判断结果;
根据所述第一判断结果,分别调整所述第一线程、所述第二线程和所述第三线程的子线程数量。
具体而言,所述线程巡查模块按照固定频率对所述第一线程、所述第二线程、所述第三线程的占用频率,获得第一占用率、第二占用率、第三占用率,其中,所述第一占用率为所述第一线程当前的占用率,所述第二占用率为所述第二线程当前的占用率,所述第三占用率为所述第三线程当前的占用率。所述线程巡查模块内设置一所述第二预定阈值,所述第二预定阈值可通过所述操作系统的人机交互界面进行修改和设置。所述线程巡查模块判断所述第一占用率、所述第二占用率、所述第三占用率是否大于所述第二预定阈值,获得所述第一判断结果,并将所述第一判断结果传输给所述线程调配单元。所述线程调配单元根据所述第一判断结果对所述第一线程、所述第二线程、所述第三线程的子程序数量进行调配,具体调配方法为:当所述第三占用率大于所述第二阈值时,允许所述第三线程向所述第一线程/第二线程发送第一借用请求,当所述第一线程/第二线程允许所述第一借用请求时,将所述第三线程内的任务调配到所述第一线程/第二线程;当所述第二占用率大于所述第二阈值时,允许所述第二线程向所述第一线程发送第二借用请求,当所述第一线程允许所述第二借用请求时,将所述第二线程内的任务调配到所述第一线程。
进一步的,所述向所述第二线程发送第一借用请求之后,包括:获得第三预定阈值;
判断所述第二线程的占用率信息是否超过第三预定阈值,获得第二判断结果;
根据所述第二判断结果,确定是否接受所述第一借用请求。
进一步的,所述方法包括:如果所述第二判断结果为所述第二线程的占用率信息未超过所述第三预定阈值,获得第三执行指令,所述第三执行指令用于执行所述第一借用请求;
如果所述第二判断结果为所述第二线程的占用率信息超过所述第三预定阈值,获得第四执行指令,所述第四执行指令用于阻止所述第一借用请求。
具体而言,当所述第三占用率大于所述第二预定阈值,且所述第三线程向所述第二线程发送所述第一借用请求后,分为以下三种情况:(1)所述第二占用率≤所述第三预定阈值时,所述第二线程允许执行所述第一借用请求,所述线程调配模块将第二数量的所述第三线程的待执行任务调配到所述第二线程中。调配完成后,所述第二线程的占用率小于所述第二预定阈值;达到将所述第三线程内的任务调配到所述第二线程中,减小所述第三线程内任务的等待时间,加快所述操作系统响应速度的技术效果。(2)所述第二占用率>所述第三预定阈值时,所述第二线程拒绝所述第一借用请求。所述线程调配模块阻止所述第三线程向所述第二线程发送所述第一借用请求,达到阻止所述第三线程不断发送所述第一借用请求,减小操作系统内存使用率,加快所述操作系统处理速度,增强所述操作系统时效性的技术效果。(3)所述第二线程拒绝所述第一借用请求后,所述第三线程向所述第一线程发送所述第一借用请求,当所述第一占用率<第四预定阈值时,其中,所述第四预定阈值小于所述第二预定阈值,所述第一线程允许所述第一借用请求,所述线程调配单元将第三数量的所述第二线程的子程序调配到所述第一线程中。调配完成后,所述第一线程的占用率小于所述第二预定阈值。达到根据各个线程的占用率,将低优先级线程中的任务适当地调配到高优先级线程中,减少低优先级线程中任务的数量,从而减少任务的等待时间,增强所述操作系统的时效性的技术效果。
实施例二
基于与前述实施例中一种嵌入式实时操作的线程时间管理方法同样的发明构思,本发明还提供一种嵌入式实时操作的线程时间管理装置,如图2所示,所述装置包括:
第一获得单元11,所述第一获得单元11用于获得预定时间阈值;
第二获得单元12,所述第二获得单元12用于获得所述预定时间阈值内待执行任务信息的属性信息;
第三获得单元13,所述第三获得单元13用于根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;
第四获得单元14,所述第四获得单元14用于根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;
第一分配单元15,所述第一分配单元15用于按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
优选的,所述装置包括:
    第五获得单元,所述第五获得单元用于获得所述第一分类线程的占用情况;
第一发送单元,所述第一发送单元用于向所述第二线程发送第一借用请求,所述第一借用请求来自所述第三线程,其中所述第三线程为具有等待任务的线程,且所述第二线程为未占用线程;
第六获得单元,所述第六获得单元用于获得第一预定阈值;
第一判断单元,所述第一判断单元用于判断所述第三线程中排队任务的数量是否超过所述第一预定阈值;
第七获得单元,所述第七获得单元用于如果所述第三线程中排队任务的数量超过所述第一预定阈值,获得第一执行指令,所述第一执行指令用于执行所述第一借用请求。
优选的,所述装置包括:
第二发送单元,所述第二发送单元用于如果所述第三线程中排队任务的数量未超过所述第一预定阈值,向所述第一线程发送所述第一借用请求,其中,所述第一线程的子线程少于所述第二线程的子线程;
第八获得单元,所述第八获得单元用于根据所述第一借用请求,获得第一加密信息,将所述第一加密信息发送至所述第三线程;
第九获得单元,所述第九获得单元用于所述第三线程对所述第一加密信息进行解密,获得第一解密信息;
第一确定单元,所述第一确定单元用于根据所述第一解密信息,确定是否接受所述第一借用请求。
优选的,所述装置包括:
第一验证单元,所述第一验证单元用于验证所述第一解密信息是否正确;
第十获得单元,所述第十获得单元用于如果所述第一解密信息正确,获得第二执行指令;
第十一获得单元,所述第十一获得单元用于如果所述第一解密信息错误,获得第三执行指令,所述第三执行指令用于阻止所述第一借用请求。
优选的,所述装置包括:
第十二获得单元,所述第十二获得单元用于根据所述第一分类线程的占用情况,获得所述第一线程、所述第二线程和所述第三线程的占用率信息;
第十三获得单元,所述第十三获得单元用于获得第二预定阈值;
第十四获得单元,所述第十四获得单元用于分别判断所述第一线程、所述第二线程和所述第三线程的占用率信息是否超过所述第二预定阈值,获得第一判断结果;
第一调整单元,所述第一调整单元用于根据所述第一判断结果,分别调整所述第一线程、所述第二线程和所述第三线程的子线程数量。
优选的,所述装置包括:
第十五获得单元,所述第十五获得单元用于获得第三预定阈值;
第十六获得单元,所述第十六获得单元用于判断所述第二线程的占用率信息是否超过第三预定阈值,获得第二判断结果;
第二确定单元,所述二确定单元用于根据所述第二判断结果,确定是否接受所述第一借用请求。
优选的,所述装置包括:
第十七获得单元,所述第十七获得单元用于如果所述第二判断结果为所述第二线程的占用率信息未超过所述第三预定阈值,获得第三执行指令,所述第三执行指令用于执行所述第一借用请求;
第十八获得单元,所述第十八获得单元用于如果所述第二判断结果为所述第二线程的占用率信息超过所述第三预定阈值,获得第四执行指令,所述第四执行指令用于阻止所述第一借用请求。
前述图1实施例一中的一种嵌入式实时操作的线程时间管理方法的各种变化方式和具体实例同样适用于本实施例的一种嵌入式实时操作的线程时间管理装置,通过前述对一种嵌入式实时操作的线程时间管理方法的详细描述,本领域技术人员可以清楚的知道本实施例中一种嵌入式实时操作的线程时间管理装置的实施方法,所以为了说明书的简洁,在此不再详述。
实施例三
基于与前述实施例中一种嵌入式实时操作的线程时间管理方法同样的发明构思,本发明还提供一种嵌入式实时操作的线程时间管理装置,其上存储有计算机程序,该程序被处理器执行时实现前文所述一种嵌入式实时操作的线程时间管理方法的任一方法的步骤。
其中,在图3中,总线架构(用总线300来代表),总线300可以包括任意数量的互联的总线和桥,总线300将包括由处理器302代表的一个或多个处理器和存储器304代表的存储器的各种电路链接在一起。总线300还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口306在总线300和接收器301和发送器303之间提供接口。接收器301和发送器303可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。
处理器302负责管理总线300和通常的处理,而存储器304可以被用于存储处理器302在执行操作时所使用的数据。
实施例四
基于与前述实施例中一种嵌入式实时操作的线程时间管理方法同样的发明构思,本发明还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:
获得预定时间阈值;
获得所述预定时间阈值内待执行任务信息的属性信息;
根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;
根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;
按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
在具体实施过程中,该程序被处理器执行时,还可以实现实施例一中的任一方法步骤。
本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:
本申请实施例通过提供一种嵌入式实时操作的线程时间管理方法及装置,所述方法包括:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。解决了现有技术中提高嵌入式操作系统时效性的方法存在成本高、功耗大的技术问题,达到了通过对线程进行管理的方法提高嵌入式操作系统的时效性,不增加成本,不提高功耗的技术效果。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (10)

  1. 一种嵌入式实时操作的线程时间管理方法,其中,所述方法包括:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
  2. 如权利要求1所述的方法,其中,所述方法包括:获得所述第一分类线程的占用情况;向所述第二线程发送第一借用请求,所述第一借用请求来自所述第三线程,其中所述第三线程为具有等待任务的线程,且所述第二线程为未占用线程;获得第一预定阈值;判断所述第三线程中排队任务的数量是否超过所述第一预定阈值;如果所述第三线程中排队任务的数量超过所述第一预定阈值,获得第一执行指令,所述第一执行指令用于执行所述第一借用请求。
  3. 如权利要求2所述的方法,其中,所述方法包括:如果所述第三线程中排队任务的数量未超过所述第一预定阈值,向所述第一线程发送所述第一借用请求,其中,所述第一线程的子线程少于所述第二线程的子线程;根据所述第一借用请求,获得第一加密信息,将所述第一加密信息发送至所述第三线程;所述第三线程对所述第一加密信息进行解密,获得第一解密信息;根据所述第一解密信息,确定是否接受所述第一借用请求。
  4. 如权利要求3所述的方法,其中,所述方法包括:验证所述第一解密信息是否正确;如果所述第一解密信息正确,获得第二执行指令;如果所述第一解密信息错误,获得第三执行指令,所述第三执行指令用于阻止所述第一借用请求。
  5. 如权利要求2所述的方法,其中,所述方法包括:根据所述第一分类线程的占用情况,获得所述第一线程、所述第二线程和所述第三线程的占用率信息;获得第二预定阈值;分别判断所述第一线程、所述第二线程和所述第三线程的占用率信息是否超过所述第二预定阈值,获得第一判断结果;根据所述第一判断结果,分别调整所述第一线程、所述第二线程和所述第三线程的子线程数量。
  6. 如权利要求5所述的方法,其中,所述向所述第二线程发送第一借用请求之后,包括:获得第三预定阈值;判断所述第二线程的占用率信息是否超过第三预定阈值,获得第二判断结果;根据所述第二判断结果,确定是否接受所述第一借用请求。
  7. 如权利要求6所述的方法,其中,所述方法包括:如果所述第二判断结果为所述第二线程的占用率信息未超过所述第三预定阈值,获得第三执行指令,所述第三执行指令用于执行所述第一借用请求;如果所述第二判断结果为所述第二线程的占用率信息超过所述第三预定阈值,获得第四执行指令,所述第四执行指令用于阻止所述第一借用请求。
  8. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现以下步骤:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
  9. 一种嵌入式实时操作的线程时间管理装置,其中,所述装置包括:第一获得单元,所述第一获得单元用于获得预定时间阈值;第二获得单元,所述第二获得单元用于获得所述预定时间阈值内待执行任务信息的属性信息;第三获得单元,所述第三获得单元用于根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;第四获得单元,所述第四获得单元用于根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;第一分配单元,所述第一分配单元用于按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
  10. 一种嵌入式实时操作的线程时间管理装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤:获得预定时间阈值;获得所述预定时间阈值内待执行任务信息的属性信息;根据所述待执行任务信息的属性信息,对所述待执行任务按照优先级进行分类,获得第一分类任务信息,所述第一分类任务信息包括第一任务信息、第二任务信息和第三任务信息,其中所述第一任务信息的优先级高于所述第二任务信息的优先级,所述第二任务信息的优先级高于所述第三任务信息的优先级;根据所述第一分类任务信息,对线程进行分类,获得第一分类线程,所述第一分类线程包括第一线程、第二线程和第三线程,其中,所述第一线程的优先级高于所述第二线程的优先级,所述第二线程的优先级高于所述第三线程的优先级;按照所述优先级,将所述第一分类任务信息分配至所述第一分类线程执行。
PCT/CN2020/135533 2020-05-28 2020-12-11 一种嵌入式实时操作的线程时间管理方法及装置 WO2021238153A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010466868.6A CN111651272B (zh) 2020-05-28 2020-05-28 一种嵌入式实时操作的线程时间管理方法及装置
CN202010466868.6 2020-05-28

Publications (1)

Publication Number Publication Date
WO2021238153A1 true WO2021238153A1 (zh) 2021-12-02

Family

ID=72350963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/135533 WO2021238153A1 (zh) 2020-05-28 2020-12-11 一种嵌入式实时操作的线程时间管理方法及装置

Country Status (2)

Country Link
CN (1) CN111651272B (zh)
WO (1) WO2021238153A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651272B (zh) * 2020-05-28 2023-02-03 苏州大学 一种嵌入式实时操作的线程时间管理方法及装置
CN116700818B (zh) * 2022-12-05 2024-04-12 荣耀终端有限公司 应用程序运行的方法及电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541653A (zh) * 2010-12-24 2012-07-04 新奥特(北京)视频技术有限公司 一种多任务线程池调度方法和系统
US20130042251A1 (en) * 2010-02-22 2013-02-14 Ali Nader Technique of Scheduling Tasks in a System
CN108255589A (zh) * 2017-08-29 2018-07-06 平安科技(深圳)有限公司 任务调度方法及服务器
CN109815007A (zh) * 2018-12-15 2019-05-28 平安科技(深圳)有限公司 基于云监控的线程控制方法、装置、电子设备及存储介质
CN110046038A (zh) * 2019-03-12 2019-07-23 平安普惠企业管理有限公司 一种基于线程池的任务处理方法及装置
WO2020010321A1 (en) * 2018-07-06 2020-01-09 Apple Inc. System for scheduling threads for execution
CN110837401A (zh) * 2018-08-16 2020-02-25 苏宁易购集团股份有限公司 一种java线程池分级处理方法和装置
CN111651272A (zh) * 2020-05-28 2020-09-11 苏州大学 一种嵌入式实时操作的线程时间管理方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996099A (zh) * 2010-11-17 2011-03-30 山东中创软件工程股份有限公司 一种消息处理方法及系统
CN110502320B (zh) * 2018-05-18 2022-03-04 杭州海康威视数字技术股份有限公司 线程优先级调整方法、装置、电子设备及存储介质
CN109388485B (zh) * 2018-09-26 2021-01-22 广州虎牙信息科技有限公司 一种任务执行线程的处理方法、装置、设备及存储介质
CN109766171B (zh) * 2018-12-06 2021-03-30 斑马网络技术有限公司 任务处理方法、装置、设备以及存储介质
CN109783229A (zh) * 2018-12-17 2019-05-21 平安普惠企业管理有限公司 线程资源分配的方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130042251A1 (en) * 2010-02-22 2013-02-14 Ali Nader Technique of Scheduling Tasks in a System
CN102541653A (zh) * 2010-12-24 2012-07-04 新奥特(北京)视频技术有限公司 一种多任务线程池调度方法和系统
CN108255589A (zh) * 2017-08-29 2018-07-06 平安科技(深圳)有限公司 任务调度方法及服务器
WO2020010321A1 (en) * 2018-07-06 2020-01-09 Apple Inc. System for scheduling threads for execution
CN110837401A (zh) * 2018-08-16 2020-02-25 苏宁易购集团股份有限公司 一种java线程池分级处理方法和装置
CN109815007A (zh) * 2018-12-15 2019-05-28 平安科技(深圳)有限公司 基于云监控的线程控制方法、装置、电子设备及存储介质
CN110046038A (zh) * 2019-03-12 2019-07-23 平安普惠企业管理有限公司 一种基于线程池的任务处理方法及装置
CN111651272A (zh) * 2020-05-28 2020-09-11 苏州大学 一种嵌入式实时操作的线程时间管理方法及装置

Also Published As

Publication number Publication date
CN111651272B (zh) 2023-02-03
CN111651272A (zh) 2020-09-11

Similar Documents

Publication Publication Date Title
CN107977268B (zh) 人工智能的异构硬件的任务调度方法、装置及可读介质
CN107534653B (zh) 基于云的跨设备的数字笔配对
WO2021238153A1 (zh) 一种嵌入式实时操作的线程时间管理方法及装置
US8424007B1 (en) Prioritizing tasks from virtual machines
US20110302587A1 (en) Information processing device and information processing method
US20160210174A1 (en) Hybrid Scheduler and Power Manager
WO2022111453A1 (zh) 任务处理方法及装置、任务分配方法、电子设备、介质
CN111078436B (zh) 数据处理的方法、装置、设备及存储介质
CN112905342B (zh) 资源调度方法、装置、设备及计算机可读存储介质
WO2012103231A1 (en) Computing platform with resource constraint negotiation
CN109788325B (zh) 视频任务分配方法及服务器
CN114371926B (zh) 一种精细化资源分配方法、装置、电子设备及介质
CN114579285A (zh) 一种任务运行系统、方法及计算设备
CN106293917A (zh) 一种IO调度cfq算法的优化方法及系统
CN113296874A (zh) 一种任务的调度方法、计算设备及存储介质
US7565464B2 (en) Programmable transaction initiator architecture for systems with secure and non-secure modes
Golchin et al. Tuned pipes: end-to-end throughput and delay guarantees for USB devices
WO2001029880A2 (en) Method for utilizing resource characterizations to optimize performance in an electronic device
CN112988355B (zh) 程序任务的调度方法、装置、终端设备及可读存储介质
CN104040477A (zh) 一种存储资源调度方法及终端
CN114675954A (zh) 任务调度方法及装置
JP2002318700A (ja) 仮想計算機システムの運用管理情報提供制御方法および仮想計算機システム
CN116724294A (zh) 一种任务分配方法及装置
CN114546630A (zh) 任务处理方法及分配方法、装置、电子设备、介质
CN110691099A (zh) 一种微服务架构下实现级联授权的系统及方法

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: 20938013

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: 20938013

Country of ref document: EP

Kind code of ref document: A1