Task scheduling method and device
A task scheduling and task technology, applied in the direction of multi-program device, program startup/switching, resource allocation, etc., can solve problems such as high execution efficiency of application instances, and achieve the effect of reducing competition and improving execution efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0072] An optional implementation manner of step 101 is as follows:
[0073] Step (1-1): The host device submits a lock-grabbing transaction according to a preset period through the polling thread of the first application instance.
[0074] Step (1-2): If the host device successfully submits the lock-grabbing transaction through the polling thread, select at least one task as the first task according to the priorities of the tasks in the task list. A task to compete for the first task in the task list.
[0075] In step (1-1) to step (1-2), the lock-grabbing transaction is used to seize the mutex of the task list. The mutex can be implemented based on the pessimistic lock of the database. But in fact, the mutex can also be implemented based on the optimistic lock of the database, and based on the distributed cache (such as Redis, Memcached, etc.), as long as the purpose of mutual exclusion can be achieved. When the task is defined through Spring Batch, the table definition o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


