WO2013007087A1 - 一种异步操作方法及异步操作管理装置 - Google Patents

一种异步操作方法及异步操作管理装置 Download PDF

Info

Publication number
WO2013007087A1
WO2013007087A1 PCT/CN2011/084170 CN2011084170W WO2013007087A1 WO 2013007087 A1 WO2013007087 A1 WO 2013007087A1 CN 2011084170 W CN2011084170 W CN 2011084170W WO 2013007087 A1 WO2013007087 A1 WO 2013007087A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
executed
priority
list
asynchronous operation
Prior art date
Application number
PCT/CN2011/084170
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 WO2013007087A1 publication Critical patent/WO2013007087A1/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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present invention relates to the field of computer electronics, and in particular, to an asynchronous operation method and an asynchronous operation management apparatus. Background technique
  • Network-access, compute-intensive, or 10-intensive software typically requires the design of many asynchronous operations that are used to implement network communication responses, background task processing, and input and output interrupt mechanisms.
  • the concept of asynchronous is relative to synchronization.
  • the caller cannot get the result immediately.
  • the component that actually handles this asynchronous operation upon completion, notifies the caller via status, notifications, and callbacks.
  • the two sides of the asynchronous operation do not need a common clock, that is, the receiver does not know when the sender sends the message. Therefore, in the transmitted message, there is a message prompting the receiver to start receiving, such as a start bit, and a stop bit at the end.
  • the technical problem to be solved by the embodiments of the present invention is to provide an asynchronous operation method and an asynchronous operation management apparatus, which can provide a relatively efficient, convenient, and safe processing process for asynchronous operations, and support asynchronous operation of conventional software.
  • the asynchronous operation method and the asynchronous operation management device provided have the advantages of high efficiency, practicality and security.
  • an embodiment of the present invention provides an asynchronous operation method, including: according to a priority of a task to be executed, writing the to-be-executed task into a task set has a corresponding priority In the task list of the level; the task to be executed is a task that needs to be executed asynchronously;
  • the tasks to be executed are sequentially taken out; the tasks to be executed taken from the task list are run, and the running thread of the task is managed.
  • the method further includes:
  • a priority model for determining a priority of the task to be executed is established, and the priority class of the priority model corresponds to a priority of each task list in the task set.
  • the task to be executed is written in the task list with the corresponding priority according to the priority of the task to be executed, and includes:
  • the task is written to the task list having the corresponding priority in the task set according to the priority of the task to be executed, and includes: submitting the task to be executed for the task to be executed with the same priority The time is arranged in the corresponding task list;
  • the tasks to be executed are sequentially extracted according to the priority order of the task list in the task set, and the tasks to be executed in the same task list are sequentially taken out according to the submission time of the tasks to be executed.
  • the embodiment of the present invention further provides an asynchronous operation management apparatus, including:
  • a task set management module configured to write the to-be-executed task into a task list having a corresponding priority in the task set according to a priority of the task to be executed; the task to be executed is a task that needs to be executed asynchronously;
  • the task thread management module is configured to sequentially retrieve the to-be-executed task according to the priority order of the task list in the task set, and manage the running thread of the task.
  • the asynchronous operation management apparatus further includes:
  • the task priority management module is configured to establish a priority model for determining a priority of the task to be executed, and determine a priority for the task to be executed according to the priority model.
  • a model management unit configured to establish a priority model for determining a priority of the task to be executed;
  • the priority class of the priority model has a one-to-one correspondence with the priority of each task list in the task set;
  • an operation encapsulating unit configured to encapsulate priority information of the task to be executed in the to-be-executed task, and send the to-be-executed task with priority information to the task set management module.
  • the task set management module includes:
  • a task classification unit configured to write, according to a priority of the task to be executed, the task to be executed into a task list having a corresponding priority in the task set; for the task to be executed having the same priority, according to the list management unit,
  • the task classification unit needs to write the to-be-executed task into the task set, and there is no task list corresponding to the priority in the task set, a task list having a corresponding priority is created in the task set.
  • the task thread management module includes:
  • the task extracting unit is configured to take out the tasks to be executed in sequence according to the priority order of the task list in the task set; and to perform the tasks to be executed in the same task list according to the submission time of the tasks to be executed;
  • a thread management unit configured to preset a task running thread, and manage a running thread of the task to be executed taken by the task extracting unit;
  • the preset task running thread includes: initializing a preset, resource release configuration, and resource release pre- Set.
  • the task thread management module further includes:
  • a task set monitoring module configured to monitor a state of the task list in the task set, and when all task lists are vacant, control the task thread management module to enter a sleep state; until a new task to be executed in the task list of the task set When the task is written, the task thread management module is woken up.
  • the asynchronous operation method and the asynchronous operation management apparatus provided by the embodiments of the present invention can provide a relatively efficient, convenient, and secure processing procedure for the asynchronous operation, and support the asynchronous operation of the conventional software.
  • the asynchronous operation method and the asynchronous method provided by the embodiments of the present invention are asynchronous.
  • the operation management device has the advantages of high efficiency, practicality and safety.
  • FIG. 1 is a schematic flow chart of a first embodiment of an asynchronous operation method provided by the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of an asynchronous operation method provided by the present invention.
  • FIG. 3 is a schematic diagram of a task set provided by the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of an asynchronous operation management apparatus according to the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of an asynchronous operation management apparatus according to the present invention. detailed description
  • the asynchronous operation method and the asynchronous operation management apparatus provided by the embodiments of the present invention can provide a relatively efficient, convenient, and secure processing procedure for the asynchronous operation, and support the asynchronous operation of the conventional software.
  • the asynchronous operation method and the asynchronous method provided by the embodiments of the present invention are asynchronous.
  • the operation management device has the advantages of high efficiency, practicality and safety.
  • FIG. 1 it is a schematic flowchart of a first embodiment of an asynchronous operation method provided by the present invention, as shown in FIG. 1 :
  • step S100 the to-be-executed task is written into the task list having the corresponding priority in the task set according to the priority of the task to be executed; the task to be executed is a task that needs to be executed asynchronously.
  • step S101 the tasks to be executed are sequentially taken out according to the priority order of the task list in the task set.
  • step S102 the task to be executed taken out from the task list is run, and the running thread of the task is managed.
  • the asynchronous operation method provided by the embodiment of the present invention classifies asynchronous operations according to priorities, and provides a relatively efficient, convenient, and safe processing process for asynchronous operations.
  • the asynchronous operation method provided in this embodiment supports the asynchronous operation of the conventional software, and has the advantages of high efficiency, practicality, and security.
  • FIG. 2 it is a schematic flowchart of a second embodiment of an asynchronous operation method according to the present invention.
  • a flow of the asynchronous operation method will be described in more detail.
  • the lower task set may be empty, and task lists of different priorities are created according to the priority of the task to be executed each time, and the tasks to be executed of different priorities are written in the task list of the corresponding priority. That is, each task list has a pending task with the same priority. In this way, in this embodiment, the task list can be flexibly added and deleted as needed, which is convenient for management.
  • a priority model for determining the priority of the task to be executed is also required, and the priority class of the priority model corresponds to the priority of each task list in the task set.
  • the priority of the task to be executed is as follows: high, medium, and low.
  • the priority of the tasks to be executed can be arranged in any ordered list, such as numbers, and is not necessarily classified as "high”, “medium”, or “low”.
  • the high, medium and low priority classes are taken as an example (as shown in Fig. 3) to help the public better understand the present invention.
  • Three task lists are created in the task set. The priority of the three task lists is high, medium, and low.
  • a task list with a high priority is used to write a task to be executed with a higher priority; a task list with a priority of one is used to write a task to be executed with the same priority; a task with a low priority The list is used to write pending tasks with a lower priority.
  • the priority model may classify the task to be executed into three categories: high, medium, and low, according to the type of the task to be executed, and the task concentration.
  • the priority of each task list corresponds.
  • the classification of priorities can be set more systematically. In a simple system, the classification of priorities can be less (for example, two types); in a complex system, the classification of priorities can be more (for example, six categories).
  • the present embodiment is described by taking the priority classes of the high, the medium and the low as an example, which is intended to help the public to better understand the present invention and cannot limit the scope of the present invention.
  • a priority is determined for the task to be executed according to the preset priority model.
  • the task to be executed may be triggered during the running of the software, or may be triggered when the system calls a program.
  • the to-be-executed task is a task that needs to be performed asynchronously.
  • step S201 the priority information of the task to be executed is encapsulated in the to-be-executed task, and the to-be-executed task with priority information is sent to the task set.
  • the task set and the thread pool in this embodiment are combined and encapsulated, which is equivalent to a black box to the outside world, and only needs to write asynchronous tasks inward.
  • the asynchronous task needs to encapsulate the priority information according to the preset priority model, generate a task to be executed carrying the priority information, and then write to the task set.
  • the priority of the asynchronous task, the task content, and the input and output of the task execution can be completely customized and extended, which increases the scalability and customization flexibility of the asynchronous operation of the program.
  • step S202 according to the priority of the task to be executed, it is written into the task list having the corresponding priority in the task set. More specifically, if the priority of a pending task is "high”, it is written to the task list whose priority is also "high” in the task set. For the tasks to be executed with the same priority, the tasks to be executed are arranged in the corresponding task list according to the submission time of the tasks to be executed, and the tasks to be executed are first written in the task list first, and in the subsequent steps, the previous tasks to be executed are executed. Will be taken out first.
  • step S203 according to the priority order of the task list in the task set, the tasks to be executed are sequentially taken out and run. More specifically, the thread pool sequentially fetches and executes the tasks according to the priority of the task list in the task set from high to low. For the tasks to be executed in the same task list, they are taken out according to the submission time of the tasks to be executed.
  • the thread pool first retrieves the pending task from the task list with the priority "High” and runs it; after all the pending tasks in the task list with the priority "High” are completed, the priority is "Medium”. Remove the pending task from the task list and run it, and so on, until all task lists in the task set are vacant.
  • the thread pool's thread sleeps until the task to be executed is written to the task set, and the wake-up thread takes the task execution from the task list from high to low.
  • the specification and centralized processing are performed on all the asynchronous operations, so that the program quickly multiplexes the asynchronous operations, which greatly reduces the improper quality processing of the asynchronous operations in the prior art, often brings serious quality risks to the software, and has high efficiency. Practical and safe advantages.
  • the thread pool manages the running thread of the task. More specifically, in this embodiment, the thread pool is pre-initialized, which avoids the need to perform thread initialization, resource release, and final thread cancellation for each asynchronous task in the prior art, and the thread pool management performs tasks.
  • the running thread, the thread pool of the thread pool sleeps when the task set is vacant, waiting for a new task to be pushed in, before the process is launched (ie before the application closes), the thread is not canceled.
  • the asynchronous operation method provided by the embodiment of the present invention classifies asynchronous tasks according to priorities, and provides a relatively efficient, convenient, and secure process for asynchronous tasks.
  • the priority of the asynchronous task, the task content, and the input and output of the task execution can be completely customized and extended, and the scalability and customization flexibility of the asynchronous operation of the program are increased.
  • the asynchronous operation management device performs standard and centralized processing on all asynchronous operations, so that the program quickly multiplexes the asynchronous operation management device; at the same time, the asynchronous processing of the asynchronous operation in the prior art is greatly reduced, and the software is often brought strictly. Heavy quality risks, with high efficiency, practicality and safety.
  • the asynchronous operation management apparatus includes: a task set management module 1 and a task thread management module 2.
  • the task set management module 1 is configured to write the to-be-executed task into a task list having a corresponding priority in the task set according to the priority of the task to be executed; the task to be executed is a task that needs to be executed asynchronously.
  • the task thread management module 2 is configured to sequentially retrieve the to-be-executed task according to the priority order of the task list in the task set, and manage the running thread of the task.
  • the asynchronous operation management apparatus provided by the embodiment of the present invention classifies asynchronous operations according to priorities, and provides a relatively efficient, convenient, and secure processing process for asynchronous operations.
  • the asynchronous operation method provided in this embodiment supports the asynchronous operation of the conventional software, and has the advantages of high efficiency, practicality, and security.
  • the asynchronous operation management apparatus includes: a task set management module 1, a task thread management module 2, and a task priority management module 3.
  • the task priority management module 3 is configured to establish a priority model for determining a priority of the task to be executed, and determine a priority for the task to be executed according to the priority model. More specifically, the task priority management module 3 includes:
  • a model management unit 31 configured to establish a priority model for determining a priority of the task to be executed; the priority class of the priority model is corresponding to a priority of each task list in the task set- .
  • the priority of the task to be executed is as follows: high, medium, and low.
  • the priority of the tasks to be executed can be arranged in any ordered list, such as numbers, and is not necessarily classified as "high", “medium”, or "low”.
  • the high, medium and low priority classes are taken as an example (as shown in FIG. 3) to help the public better understand the present invention.
  • the model management unit 31 establishes a priority model, and the model can divide the tasks to be executed into high, medium and low according to the type of tasks to be executed. Class, corresponding to the priority of each task list in the task set.
  • the operation encapsulating unit 32 is configured to encapsulate the priority information of the task to be executed in the to-be-executed task, and send the to-be-executed task with the priority information to the task set management module 1. More specifically, the asynchronous operation management device in this embodiment is combined and packaged, which is equivalent to the outside world. A black box, just write asynchronous tasks to it.
  • the operation encapsulating unit 32 needs to encapsulate the priority information for the asynchronous task according to the preset priority model, generate the to-be-executed task carrying the priority information, and then write to the task set management module 1.
  • the priority of the task to be executed is determined or set in advance by the external device. In this embodiment, the priority of the asynchronous task, the task content, and the input and output of the task execution can be completely customized and extended, which increases the scalability and customization flexibility of the asynchronous operation of the program.
  • the task set management module 1 is configured to write the to-be-executed task into a task list having a corresponding priority in the task set according to the priority of the task to be executed; the task to be executed is a task that needs to be executed asynchronously. More specific task set management module 1 includes:
  • the task classification unit 11 is configured to write the to-be-executed task into the task list having the corresponding priority in the task set according to the priority of the task to be executed;
  • the submission time of the tasks is arranged in the corresponding task list. More specifically, if the priority of a task to be executed is "high", the task classification unit 11 writes it into the task list in the task set whose priority is also "high".
  • the task classification unit 11 arranges the tasks to be executed in the corresponding task list according to the submission time of the tasks to be executed, and the tasks to be executed are first written in the task list first, and the previous tasks to be executed are The back task thread management module 2 is first taken out and executed.
  • a list management unit 12 configured to create a corresponding task in the task set when the task classification unit 11 needs to write the to-be-executed task into the task set, and the task set does not have a task list corresponding to the priority Priority task list.
  • the task set may be empty, and the list management unit 12 stores the tasks to be executed having the same priority in the task columns of different priorities according to the priority of the task to be executed each time.
  • the list management unit 12 can flexibly add and delete task lists as needed, which is convenient for management.
  • the task thread management module 2 is configured to sequentially retrieve the to-be-executed task according to the priority order of the task list in the task set, and manage the running thread of the task. More specifically, the task thread management module 2 includes:
  • the task extracting unit 21 is configured to sequentially retrieve the tasks to be executed according to the priority order of the task list in the task set; and perform the tasks to be executed in the same task list according to the submitting time of the tasks to be executed.
  • the task extraction unit 21 first takes out the task to be executed and runs from the task list with the priority "high”; runs all the tasks to be executed in the task list with the priority "high”. When finished, take the pending task from the task list with priority "Medium” and run it, and so on, until all task lists in the task set are vacant.
  • the task extracting unit 21 performs normalized and centralized processing on all asynchronous operations, so that the program quickly multiplexes the asynchronous operation management device; at the same time, the asynchronous processing of the asynchronous operation in the prior art is greatly reduced, which often brings serious software. The quality risks are efficient, practical and safe.
  • the thread management unit 22 is configured to preset a task running thread, and manage a running thread of the task to be executed taken by the task extracting unit.
  • the preset task running thread includes: initializing preset, resource release configuration, and resource release Preset. More specifically, in this embodiment, the thread management unit 22 pre-initializes the thread pool, which avoids the need for thread initialization, resource release, and final thread cancellation for each asynchronous task in the prior art.
  • the pool manages the running thread of the task. When the task set is vacant, the thread pool sleeps, waiting for a new task to be pushed in. Before the process is launched (that is, before the application is closed), the thread is not canceled.
  • the task thread management module 2 further includes:
  • the task set monitoring module 23 is configured to monitor a state of the task list in the task set, and when all task lists are vacant, control the task thread management module 2 to enter a sleep state (mainly the task extracting unit 21 and the thread management unit 22 enter Sleep state); The task set monitoring module 23 wakes up the task thread management module 2 until a new task to be executed is written in the task list of the task set.
  • the asynchronous operation management apparatus classifies asynchronous tasks according to priorities, and provides a relatively efficient, convenient, and secure processing process for asynchronous tasks.
  • the priority of the asynchronous task, the task content, the input and output of the task execution can be completely customized and extended, and the scalability and customization flexibility of the asynchronous operation of the program are increased.
  • the asynchronous operation management device performs standard and centralized processing on all asynchronous operations, so that the program quickly multiplexes the asynchronous operation management device; at the same time, the asynchronous operation of the asynchronous operation in the prior art is greatly reduced, which often brings serious quality risks to the software, Efficient, practical and safe.
  • 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)
  • Debugging And Monitoring (AREA)

Abstract

提供了一种异步操作方法及异步操作管理装置。所述方法包括:根据待执行任务的优先级,将所述待执行任务写入任务集内具有对应优先级的任务列表中;所述待执行任务为需要异步执行的任务;按照所述任务集内任务列表的优先级顺序,依次取出待执行任务;运行从任务列表中取出的待执行任务,并管理该任务的运行线程。所述异步操作方法及异步操作管理装置可以给异步操作提供一个相对高效和安全的处理过程,支持常规软件的异步操作。

Description

一种异步操作方法及异步操作管理装置
本申请要求于 2011年 7月 13 日提交中国专利局、申请号为 2011101956803 , 发明名称为 "一种异步操作方法及异步操作管理装置" 的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及计算机电子领域, 尤其涉及一种异步操作方法及异步操作管理 装置。 背景技术
网络访问型、 计算密集型或 10密集型的软件通常需要设计很多异步操作, 这些异步操作用来实现网络通信响应、 后台任务处理和输入输出中断机制等。 异步的概念和同步相对, 当一个异步操作任务发出后, 调用者不能立刻得到结 果。 实际处理这个异步操作的部件在完成后, 通过状态、 通知和回调来通知调 用者。 异步操作的双方不需要共同的时钟, 也就是接收方不知道发送方什么时 候发送, 所以在发送的信息中就要有提示接收方开始接收的信息, 如开始位, 结束时有停止位。
但是, 本发明人在实施本发明的过程中发现, 目前在软件开发中所釆用的 异步操作缺乏有限的管理, 简单的按照发出异步操作的时间顺序完成对应的认 为, 使得软件对重要的任务响应较慢, 影响使用者的体验。 同时, 异步操作通 常会使软件结构变得更复杂, 并且异步操作处理不当经常给软件带来严重的质 量风险。 发明内容
本发明实施例所要解决的技术问题在于, 提供一种异步操作方法及异步操 作管理装置, 可以给异步操作提供一个相对高效、 便捷和安全的处理过程, 支 持常规软件的异步操作, 本发明实施例提供的异步操作方法及异步操作管理装 置具有高效、 实用和安全等优点。
为了解决上述技术问题, 本发明实施例提供了一种异步操作方法, 包括: 根据待执行任务的优先级, 将所述待执行任务写入任务集内具有对应优先 级的任务列表中; 所述待执行任务为需要异步执行的任务;
按照所述任务集内任务列表的优先级顺序, 依次取出待执行任务; 运行从任务列表中取出的待执行任务, 并管理该任务的运行线程。
其中, 所述根据待执行任务的优先级, 将所述待执行任务写入任务集内具 有对应优先级的任务列表中之前, 还包括:
建立用于为待执行任务确定其优先级的优先級模型, 所述优先级模型对所 述待执行任务的优先级分类与所述任务集中各任务列表的优先级一一对应。
其中, 所述根据待执行任务的优先级, 将所述待执行任务写入任务集中具 有对应优先级的任务列表中, 包括:
根据预置的优先级模型 , 为待执行任务确定优先级;
将待执行任务的优先级信息封装在所述待执行任务中;
将所述带有优先级信息的待执行任务发送至任务集;
根据所述待执行任务的优先级, 将其写入所述任务集内具有对应优先级的 任务列表中。
其中, 所述根据所述待执行任务的优先级, 将其写入所述任务集内具有对 应优先级的任务列表中, 包括: 对于具有相同优先级的待执行任务, 按照待执 行任务的提交时间在对应的任务列表中进行排列;
所述按照所述任务集内任务列表的优先级顺序, 依次取出待执行任务, 包 括: 对于同一任务列表内的待执行任务, 按照待执行任务的提交时间依次取出。
相应的, 本发明实施例还提供一种异步操作管理装置, 包括:
任务集管理模块, 用于根据待执行任务的优先级, 将所述待执行任务写入 任务集内具有对应优先级的任务列表中; 所述待执行任务为需要异步执行的任 务;
任务线程管理模块, 用于按照所述任务集内任务列表的优先级顺序, 依次 取出待执行任务, 并管理该任务的运行线程。
其中, 所述异步操作管理装置还包括:
任务优先级管理模块, 用于建立为待执行任务确定其优先级的优先级模型; 并根据所述优先级模型, 为待执行任务确定优先级。
其中, 所述任务优先级管理模块包括:
模型管理单元, 用于建立为待执行任务确定其优先級的优先级模型; 所述 优先级模型对所述待执行任务的优先级分类与所述任务集中各任务列表的优先 级一一对应;
操作封装单元, 用于将待执行任务的优先级信息封装在所述待执行任务中 , 并将所述带有优先级信息的待执行任务发送至所述任务集管理模块。
其中, 所述任务集管理模块包括:
任务分类单元, 用于根据待执行任务的优先級, 将所述待执行任务写入任 务集内具有对应优先级的任务列表中; 对于具有相同优先级的待执行任务, 按 列表管理单元, 用于在所述任务分类单元需要将所述待执行任务写入任务 集内, 而所述任务集内没有对应优先级的任务列表时, 在所述任务集中创建具 有对应优先级的任务列表。
其中, 所述任务线程管理模块包括:
任务提取单元, 用于按照所述任务集中任务列表的优先级顺序, 依次取出 待执行任务; 对于同一任务列表中待执行任务, 按照所述待执行任务的提交时 间依次取出;
线程管理单元, 用于预置任务运行线程, 并管理被所述任务提取单元取出 的待执行任务的运行线程; 所述预置任务运行线程包括: 初始化预置、 资源释 分配置、 资源释放预置。
其中, 所述任务线程管理模块还包括:
任务集监控模块, 用于监控所述任务集中任务列表的状态, 当所有任务列 表都空置时, 控制所述任务线程管理模块进入睡眠状态; 直至所述任务集的任 务列表中有新的待执行任务写入时, 唤醒所述任务线程管理模块。
本发明实施例所提供的异步操作方法及异步操作管理装置, 可以给异步操 作提供一个相对高效、 便捷和安全的处理过程, 支持常规软件的异步操作, 本 发明实施例提供的异步操作方法及异步操作管理装置具有高效、 实用和安全等 优点。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明提供的异步操作方法第一实施例流程示意图;
图 2为本发明提供的异步操作方法第二实施例流程示意图;
图 3为本发明提供的任务集示意图;
图 4为本发明提供的异步操作管理装置第一实施例结构示意图;
图 5为本发明提供的异步操作管理装置第二实施例结构示意图。 具体实施方式
本发明实施例所提供的异步操作方法及异步操作管理装置, 可以给异步操 作提供一个相对高效、 便捷和安全的处理过程, 支持常规软件的异步操作, 本 发明实施例提供的异步操作方法及异步操作管理装置具有高效、 实用和安全等 优点。
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
参见图 1 , 为本发明提供的异步操作方法第一实施例流程示意图, 如图 1所 示:
在步骤 S100, 根据待执行任务的优先级, 将所述待执行任务写入任务集内 具有对应优先级的任务列表中; 所述待执行任务为需要异步执行的任务。
在步骤 S101 , 按照所述任务集内任务列表的优先级顺序, 依次取出待执行 任务。
在步驟 S102, 运行从任务列表中取出的待执行任务, 并管理该任务的运行 线程。
本发明实施例所提供的异步操作方法, 按照优先级对异步操作进行分类, 给异步操作提供一个相对高效、 便捷和安全的处理过程。 本实施例提供的异步 操作方法支持常规软件的异步操作, 具有高效、 实用和安全等优点。
参见图 2, 为本发明提供的异步操作方法第二实施例流程示意图, 在本实施 例中, 将更为详细的描述该异步操作方法的流程。 需要说明的是, 在初始状态 下任务集可以为空, 根据每次写入的待执行任务的优先级创建不同优先级的任 务列表, 不同优先级的待执行任务写入对应优先级的任务列表中。 即每个任务 列表内存放具有相同优先级的待执行任务。 这样, 在本实施例中, 任务列表可 根据需要灵活增删, 便于管理。 同时, 还需要建立用于为待执行任务确定其优 先级的优先级模型, 所述优先级模型对所述待执行任务的优先级分类与所述任 务集中各任务列表的优先级一一对应。
在本实施例中, 以待执行任务的优先级有高、 中、 低三类为例进行说明。 在实际应用中, 待执行任务的优先级可以用任何有序列表编排, 如数字, 并不 一定以 "高"、 "中"、 "低" 分类。 在本实施例中, 以高、 中、 低三类优先级为 例进行说明 (如图 3所示), 旨在帮助公众更好的理解本发明。 在任务集内建立 三个任务列表, 三个任务列表的优先级分别为高、 中、 低三类。 优先级为高的 任务列表用于写入优先级为同样为高的待执行任务; 优先级为中的任务列表用 于写入优先级为同样为中的待执行任务; 优先级为低的任务列表用于写入优先 级为同样为低的待执行任务。
同时, 还需要建立用于为待执行任务确定其优先级的优先级模型, 所述优 先级模型可以根据待执行任务的类型, 将待执行任务分为高、 中、 低三类, 与 任务集中各任务列表的优先级对应。
当然, 可以更具系统的实际情况设置优先级的分类。 在简单的系统中, 对 于优先级的分类可以更少 (例如两类); 在复杂的系统中, 对于优先级的分类可 以更多 (例如六类)。 本实施例以高、 中、 低三类优先级为例进行说明, 旨在帮 助公众更好的理解本发明, 不能以此限定本发明的保护范围。
本实施例提供的异步操作方法流程如图 2所示:
在步骤 S200, 根据预置的优先级模型, 为待执行任务确定优先级。 该待执 行任务可以是在软件运行过程中触发的, 也可以是系统调用某程序时触发了。 在本发明实施例中, 所述待执行任务为需要异步执行的任务。
在步驟 S201 , 将待执行任务的优先级信息封装在所述待执行任务中, 并将 所述带有优先级信息的待执行任务发送至任务集。 更为具体的, 本实施例中的 任务集和线程池是组合封装好的, 对外界来说相当于一个黑匣子, 只需往里写 入异步任务即可。 该异步任务需要按照预置的优先级模型进行优先级信息的封 装, 生成携带有优先级信息的待执行任务, 然后写入到任务集中。 在本实施例 中, 异步任务的优先级、 任务内容、 任务执行的输入和输出完全可以自定义和 扩展, 增加了程序异步操作的扩展性和自定义的灵活性。
在步骤 S202, 根据待执行任务的优先级, 将其写入所述任务集内具有对应 优先级的任务列表中。 更为具体的, 若某待执行任务的优先级为 "高", 则将其 写入任务集内优先级也为 "高" 的任务列表中。 对于具有相同优先级的待执行 任务, 则按照待执行任务的提交时间在对应的任务列表中进行排列, 先写入任 务列表的待执行任务在先, 在后续步骤中, 在先的待执行任务将先被取出执行。
在步骤 S203 , 按照所述任务集内任务列表的优先级顺序, 依次取出待执行 任务并运行。 更为具体的, 线程池按照任务集内任务列表的优先级从高到低的 顺序依次取出待执行任务并运行。 对于同一任务列表内的待执行任务, 按照待 执行任务的提交时间依次取出。
续前例, 线程池首先从优先级为 "高" 的任务列表中取出待执行任务并运 行; 在优先级为 "高" 的任务列表中所有待执行任务运行完成后, 从优先级为 "中" 的任务列表中取出待执行任务并运行, 以此类推, 直至任务集内所有任 务列表空置。 在任务集空置时线程池的线程睡眠, 直至有待执行任务写入任务 集时, 在唤醒线程从任务集由高到低的任务列表中取出任务执行。
在本实施例中, 对所有异步操作进行规范、 集中的处理, 使程序快速复用 该异步操作, 大大降低了现有技术中异步操作处理不当经常给软件带来严重的 质量风险, 具有高效、 实用和安全等优点。
在步骤 S204, 线程池管理该任务的运行线程。 更为具体的, 在本实施例中, 将预先初始化好线程池, 避免了现有技术中需要对每一个异步任务进行线程的 初始化、 资源释放以及最后的线程取消等操作, 线程池管理执行任务的运行线 程, 任务集空置时线程池的线程睡眠, 等待新的任务推入, 进程推出前 (即应 用程序关闭前) 不进行线程的取消。
本发明实施例所提供的异步操作方法, 按照优先级对异步任务进行分类, 给异步任务提供一个相对高效、 便捷和安全的处理过程。 实施本实施例提供的 异步操作方法, 异步任务的优先级、 任务内容、 任务执行的输入和输出完全可 以自定义和扩展, 增加了程序异步操作的扩展性和自定义的灵活性。 该异步操 作管理装置对所有异步操作进行规范、 集中的处理, 使程序快速复用该异步操 作管理装置; 同时大大降低了现有技术中异步操作处理不当经常给软件带来严 重的质量风险, 具有高效、 实用和安全等优点。
参见图 4, 为本发明提供的异步操作管理装置第一实施例结构示意图, 如图 4所示, 该异步操作管理装置包括: 任务集管理模块 1和任务线程管理模块 2。
任务集管理模块 1 , 用于根据待执行任务的优先级, 将所述待执行任务写入 任务集内具有对应优先级的任务列表中; 所述待执行任务为需要异步执行的任 务。
任务线程管理模块 2, 用于按照所述任务集内任务列表的优先级顺序, 依次 取出待执行任务, 并管理该任务的运行线程。
本发明实施例所提供的异步操作管理装置, 按照优先级对异步操作进行分 类, 给异步操作提供一个相对高效、 便捷和安全的处理过程。 本实施例提供的 异步操作方法支持常规软件的异步操作, 具有高效、 实用和安全等优点。
参见图 5 , 为本发明提供的异步操作管理装置第二实施例结构示意图, 在本 实施例中, 将更为详细的描述该异步操作管理装置的结构和各模块的功能。 如 图 5所示, 该异步操作管理装置包括: 任务集管理模块 1、 任务线程管理模块 2 以及任务优先级管理模块 3。
任务优先级管理模块 3用于建立为待执行任务确定其优先级的优先级模型; 并根据所述优先级模型, 为待执行任务确定优先级。 更为具体的, 该任务优先 级管理模块 3包括:
模型管理单元 31 , 用于建立为待执行任务确定其优先级的优先级模型; 所 述优先级模型对所述待执行任务的优先级分类与所述任务集中各任务列表的优 先级——对应。 在本实施例中, 以待执行任务的优先级有高、 中、 低三类为例 进行说明。 在实际应用中, 待执行任务的优先级可以用任何有序列表编排, 如 数字, 并不一定以 "高"、 "中"、 "低" 分类。 在本实施例中, 以高、 中、 低三 类优先级为例进行说明 (如图 3所示), 旨在帮助公众更好的理解本发明。
在需要将待执行任务分为高、 中、 低三类的前提下, 模型管理单元 31建立 优先级模型, 该模型可以根据待执行任务的类型, 将待执行任务分为高、 中、 低三类, 与任务集中各任务列表的优先级对应。
操作封装单元 32, 用于将待执行任务的优先级信息封装在所述待执行任务 中, 并将所述带有优先级信息的待执行任务发送至所述任务集管理模块 1。 更为 具体的, 本实施例中的异步操作管理装置是组合封装好的, 对外界来说相当于 一个黑匣子, 只需往里写入异步任务即可。 操作封装单元 32按照预置的优先级 模型对异步任务需要进行优先级信息的封装, 生成携带有优先级信息的待执行 任务, 然后写入到任务集管理模块 1 中。 待执行任务的优先级是由外部设备预 先已经判定或设置好的。 在本实施例中, 异步任务的优先级、 任务内容、 任务 执行的输入和输出完全可以自定义和扩展, 增加了程序异步操作的扩展性和自 定义的灵活性。
任务集管理模块 1 , 用于根据待执行任务的优先级, 将所述待执行任务写入 任务集内具有对应优先级的任务列表中; 所述待执行任务为需要异步执行的任 务。 更为具体的该任务集管理模块 1包括:
任务分类单元 11 , 用于根据待执行任务的优先级, 将所述待执行任务写入 任务集内具有对应优先级的任务列表中; 对于具有相同优先级的待执行任务, 按照所述待执行任务的提交时间在对应的任务列表中排列。 更为具体的, 若某 待执行任务的优先级为 "高", 则任务分类单元 11 将其写入任务集内优先级也 为 "高" 的任务列表中。 对于具有相同优先级的待执行任务, 任务分类单元 11 则按照待执行任务的提交时间在对应的任务列表中进行排列, 先写入任务列表 的待执行任务在先, 在先的待执行任务将背任务线程管理模块 2先被取出执行。
列表管理单元 12,用于在所述任务分类单元 11需要将所述待执行任务写入 任务集内, 而所述任务集内没有对应优先级的任务列表时, 在所述任务集中创 建具有对应优先级的任务列表。 需要说明的是, 在初始状态下任务集可以为空, 列表管理单元 12根据每次写入的待执行任务的优先级创建不同优先级的任务列 内存放具有相同优先级的待执行任务。 这样, 在本实施例中, 列表管理单元 12 可根据需要灵活增删任务列表, 便于管理
任务线程管理模块 2, 用于按照所述任务集内任务列表的优先级顺序, 依次 取出待执行任务, 并管理该任务的运行线程。 更为具体的, 该任务线程管理模 块 2包括:
任务提取单元 21 , 用于按照所述任务集中任务列表的优先级顺序, 依次取 出待执行任务; 对于同一任务列表中待执行任务, 按照所述待执行任务的提交 时间依次取出。 续前例, 任务提取单元 21首先从优先级为 "高" 的任务列表中 取出待执行任务并运行; 在优先级为 "高" 的任务列表中所有待执行任务运行 完成后, 从优先级为 "中" 的任务列表中取出待执行任务并运行, 以此类推, 直至任务集内所有任务列表空置。 在本实施例中, 任务提取单元 21对所有异步 操作进行规范、 集中的处理, 使程序快速复用该异步操作管理装置; 同时大大 降低了现有技术中异步操作处理不当经常给软件带来严重的质量风险, 具有高 效、 实用和安全等优点。
线程管理单元 22, 用于预置任务运行线程, 并管理被所述任务提取单元取 出的待执行任务的运行线程; 所述预置任务运行线程包括: 初始化预置、 资源 释分配置、 资源释放预置。 更为具体的, 在本实施例中, 线程管理单元 22将预 先初始化好线程池, 避免了现有技术中需要对每一个异步任务进行线程的初始 化、 资源释放以及最后的线程取消等操作, 线程池管理执行任务的运行线程, 任务集空置时线程池的线程睡眠, 等待新的任务推入, 进程推出前(即应用程 序关闭前) 不进行线程的取消。
优选的, 该任务线程管理模块 2还包括:
任务集监控模块 23, 用于监控所述任务集中任务列表的状态, 当所有任务 列表都空置时, 控制所述任务线程管理模块 2进入睡眠状态 (主要是任务提取 单元 21和线程管理单元 22进入睡眠状态); 直至所述任务集的任务列表中有新 的待执行任务写入时, 任务集监控模块 23唤醒所述任务线程管理模块 2。
本发明实施例所提供的异步操作管理装置, 按照优先级对异步任务进行分 类, 给异步任务提供一个相对高效、 便捷和安全的处理过程。 实施本实施例提 供的异步操作管理装置, 异步任务的优先级、 任务内容、 任务执行的输入和输 出完全可以自定义和扩展, 增加了程序异步操作的扩展性和自定义的灵活性。 该异步操作管理装置对所有异步操作进行规范、 集中的处理, 使程序快速复用 该异步操作管理装置; 同时大大降低了现有技术中异步操作处理不当经常给软 件带来严重的质量风险, 具有高效、 实用和安全等优点。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM ) 或随机存储记忆体(Random Access Memory, RAM ) 等。
以上所揭露的仅为本发明一种较佳实施例而已, 当然不能以此来限定本发 明之权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的 范围。

Claims

权 利 要 求
1、 一种异步操作方法, 其特征在于, 包括:
根据待执行任务的优先级, 将所述待执行任务写入任务集内具有对应优先 级的任务列表中; 所述待执行任务为需要异步执行的任务;
按照所述任务集内任务列表的优先级顺序, 依次取出待执行任务; 运行从任务列表中取出的待执行任务, 并管理该任务的运行线程。
2、 如权利要求 1所述的异步操作方法, 其特征在于, 所述根据待执行任务 的优先级, 将所述待执行任务写入任务集内具有对应优先级的任务列表中之前, 还包括:
建立用于为待执行任务确定其优先级的优先级模型, 所述优先级模型对所 述待执行任务的优先级分类与所述任务集中各任务列表的优先级一一对应。
3、 如权利要求 2所述的异步操作方法, 其特征在于, 所述根据待执行任务 的优先级, 将所述待执行任务写入任务集中具有对应优先级的任务列表中, 包 括:
根据预置的优先级模型, 为待执行任务确定优先级;
将待执行任务的优先级信息封装在所述待执行任务中;
将所述带有优先级信息的待执行任务发送至任务集;
根据所述待执行任务的优先级, 将其写入所述任务集内具有对应优先级的 任务列表中。
4、 如权利要求 3所述的异步操作方法, 其特征在于, 所述根据所述待执行 任务的优先级, 将其写入所述任务集内具有对应优先级的任务列表中, 包括: 对于具有相同优先级的待执行任务, 按照待执行任务的提交时间在对应的任务 列表中进行排列;
所述按照所述任务集内任务列表的优先级顺序, 依次取出待执行任务, 包 括: 对于同一任务列表内的待执行任务, 按照待执行任务的提交时间依次取出。
5、 一种异步操作管理装置, 其特征在于, 包括:
任务集管理模块, 用于根据待执行任务的优先级, 将所述待执行任务写入 任务集内具有对应优先级的任务列表中; 所述待执行任务为需要异步执行的任 务; 任务线程管理模块, 用于按照所述任务集内任务列表的优先级顺序, 依次 取出待执行任务, 并管理该任务的运行线程。
6、 如权利要求 5所述的异步操作管理装置, 其特征在于, 所述异步操作管 理装置还包括:
任务优先级管理模块, 用于建立为待执行任务确定其优先级的优先级模型; 并根据所述优先级模型, 为待执行任务确定优先级。
7、 如权利要求 6所述的异步操作管理装置, 其特征在于, 所述任务优先级 管理模块包括:
模型管理单元, 用于建立为待执行任务确定其优先级的优先级模型; 所述 优先级模型对所述待执行任务的优先级分类与所述任务集中各任务列表的优先 级——对应;
操作封装单元, 用于将待执行任务的优先级信息封装在所述待执行任务中, 并将所述带有优先级信息的待执行任务发送至所述任务集管理模块。
8、 如权利要求 7所述的异步操作管理装置, 其特征在于, 所述任务集管理 模块包括:
任务分类单元, 用于根据待执行任务的优先级, 将所述待执行任务写入任 务集内具有对应优先级的任务列表中; 对于具有相同优先级的待执行任务, 按 照所述待执行任务的提交时间在对应的任务列表中排列;
列表管理单元, 用于在所述任务分类单元需要将所述待执行任务写入任务 集内, 而所述任务集内没有对应优先级的任务列表时, 在所述任务集中创建具 有对应优先级的任务列表。
9、 如权利要求 8所述的异步操作管理装置, 其特征在于, 所述任务线程管 理模块包括:
任务提取单元, 用于按照所述任务集中任务列表的优先級顺序, 依次取出 待执行任务; 对于同一任务列表中待执行任务, 按照所述待执行任务的提交时 间依次取出;
线程管理单元, 用于预置任务运行线程, 并管理被所述任务提取单元取出 的待执行任务的运行线程; 所述预置任务运行线程包括: 初始化预置、 资源释 分配置、 资源释放预置。
10、 如权利要求 9 所述的异步操作管理装置, 其特征在于, 所述任务线程 管理模块还包括:
任务集监控模块, 用于监控所述任务集中任务列表的状态, 当所有任务列 表都空置时, 控制所述任务线程管理模块进入睡眠状态; 直至所述任务集的任 务列表中有新的待执行任务写入时, 唤醒所述任务线程管理模块。
PCT/CN2011/084170 2011-07-13 2011-12-17 一种异步操作方法及异步操作管理装置 WO2013007087A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110195680.3 2011-07-13
CN2011101956803A CN102253860A (zh) 2011-07-13 2011-07-13 一种异步操作方法及异步操作管理装置

Publications (1)

Publication Number Publication Date
WO2013007087A1 true WO2013007087A1 (zh) 2013-01-17

Family

ID=44981140

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084170 WO2013007087A1 (zh) 2011-07-13 2011-12-17 一种异步操作方法及异步操作管理装置

Country Status (2)

Country Link
CN (1) CN102253860A (zh)
WO (1) WO2013007087A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253860A (zh) * 2011-07-13 2011-11-23 深圳市万兴软件有限公司 一种异步操作方法及异步操作管理装置
US10528385B2 (en) 2012-12-13 2020-01-07 Microsoft Technology Licensing, Llc Task completion through inter-application communication
US9313162B2 (en) 2012-12-13 2016-04-12 Microsoft Technology Licensing, Llc Task completion in email using third party app
US20140173602A1 (en) * 2012-12-14 2014-06-19 Microsoft Corporation Matching Opportunity to Context
CN104346185B (zh) * 2013-08-01 2019-08-13 腾讯科技(深圳)有限公司 应用对象属性更新方法、装置及应用平台
CN106648847A (zh) * 2016-10-14 2017-05-10 郑州云海信息技术有限公司 一种云计算操作系统中异步任务管理方法及装置
CN106506389A (zh) * 2016-10-19 2017-03-15 广州华多网络科技有限公司 网络请求异步处理方法及装置
US11107021B2 (en) 2016-11-06 2021-08-31 Microsoft Technology Licensing, Llc Presenting and manipulating task items
CN106802826B (zh) * 2016-12-23 2021-06-18 中国银联股份有限公司 一种基于线程池的业务处理方法及装置
CN108363617B (zh) * 2018-01-04 2021-06-22 郑州云海信息技术有限公司 一种ssr上的离线清单异步导入方法
CN110096344A (zh) * 2018-01-29 2019-08-06 北京京东尚科信息技术有限公司 任务管理方法、系统、服务器集群和计算机可读介质
CN113535369A (zh) * 2021-09-15 2021-10-22 中建电子商务有限责任公司 一种调度任务的方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940612A (en) * 1995-09-27 1999-08-17 International Business Machines Corporation System and method for queuing of tasks in a multiprocessing system
US20050289552A1 (en) * 2004-06-29 2005-12-29 Cavallo Joseph S Techniques to improve task switching efficiency
CN101221483A (zh) * 2006-12-08 2008-07-16 国际商业机器公司 改善连续串行小型机系统接口存储设备性能的系统和方法
CN101261592A (zh) * 2007-03-07 2008-09-10 国际商业机器公司 用于对任务请求进行调度的方法和设备
CN102253860A (zh) * 2011-07-13 2011-11-23 深圳市万兴软件有限公司 一种异步操作方法及异步操作管理装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561768A (zh) * 2008-04-18 2009-10-21 北京闻言科技有限公司 一种通用的调度多个任务的方法
CN101290668B (zh) * 2008-06-16 2011-08-17 中国移动通信集团湖北有限公司 一种分时作业动态调度方法和装置
CN102063336B (zh) * 2011-01-12 2013-02-27 国网电力科学研究院 一种分布式计算多应用功能异步并发调度方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940612A (en) * 1995-09-27 1999-08-17 International Business Machines Corporation System and method for queuing of tasks in a multiprocessing system
US20050289552A1 (en) * 2004-06-29 2005-12-29 Cavallo Joseph S Techniques to improve task switching efficiency
CN101221483A (zh) * 2006-12-08 2008-07-16 国际商业机器公司 改善连续串行小型机系统接口存储设备性能的系统和方法
CN101261592A (zh) * 2007-03-07 2008-09-10 国际商业机器公司 用于对任务请求进行调度的方法和设备
CN102253860A (zh) * 2011-07-13 2011-11-23 深圳市万兴软件有限公司 一种异步操作方法及异步操作管理装置

Also Published As

Publication number Publication date
CN102253860A (zh) 2011-11-23

Similar Documents

Publication Publication Date Title
WO2013007087A1 (zh) 一种异步操作方法及异步操作管理装置
US9501319B2 (en) Method and apparatus for scheduling blocking tasks
WO2021237829A1 (zh) 一种实现代码仓库与计算服务整合的方法及系统
CN110531987A (zh) 基于Kubernetes集群的管理方法、装置及计算机可读存储介质
WO2015074585A1 (zh) 智能电视中的账户信息管理方法及装置
CN103765342B (zh) 用于连接待机的进程的挂起和/或节制
CN101281480B (zh) 一种嵌入式系统中实现睡眠功能的方法
CN107491346A (zh) 一种应用的任务处理方法、装置及系统
CN106686243A (zh) 语音控制方法和装置
CN103019837A (zh) 资源调度方法、装置及终端设备
CN110971700B (zh) 分布式锁的实现方法及装置
CN104899274A (zh) 一种内存数据库高效远程访问方法
CN103444236A (zh) 管理入口应用程序
WO2015176359A1 (zh) 基于安卓系统的多用户管理方法、装置及计算机存储介质
WO2015172283A1 (zh) 一种降低功耗的方法、装置及移动终端
CN110912990B (zh) 一种共识周期的更新方法及相关设备
US8055806B2 (en) Autonomic threading model switch based on input/output request type
CN115248692A (zh) 一种支持多种深度学习框架模型云端部署的装置及方法
WO2011089223A2 (en) Efficient multi-core processing of events
CN110333916A (zh) 请求消息处理方法、装置、计算机系统及可读存储介质
CN107479900A (zh) 一种适用于实时操作系统的热插拔软件方案
CN116540973A (zh) 一种跨域音频处理方法、装置、电子设备和存储介质
WO2019109922A1 (zh) 资源处理方法及系统、存储介质、电子设备
CN114697194A (zh) 阻塞式事件通知方法及装置
WO2015184902A1 (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: 11869217

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

Country of ref document: EP

Kind code of ref document: A1