Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2020-07-10
WEBANK (CHINA)
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a task scheduling method and device, which solves the problem in the prior art that the application instances on each host device cannot have high execution efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task scheduling method and device
  • Task scheduling method and device
  • Task scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a task scheduling method and device. The method comprises the steps that host equipment competes for a first task in a task list through a first application example, wherein each task in the task list is registered by each application instance and is used for common competition of each application instance, the first application instance is any application instance in the application instances, and the first task is at least one task in the task list; if the host equipment competes for the first task through the first application instance, the first task is scheduled through the first application instance. When the method is applied to financial science and technology (Fintech), resources of the host equipment where all the application instances are located can be fully mobilized, so all the application instances have high execution efficiency.

Description

technical field [0001] The present invention relates to the field of task scheduling in the field of financial technology (Fintech), in particular to a task scheduling method and device. Background technique [0002] With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually transforming into Fintech. However, due to the security and real-time requirements of the financial industry, higher requirements are placed on technology. requirements. At present, financial institutions have to deal with a large amount of data and a large number of tasks every day. [0003] Generally speaking, a task scheduling system for a financial institution is deployed on multiple hardware devices, and there are multiple running application instances. However, currently each application instance processes tasks independently, and tasks are only executed on the triggered application instance. Thi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5027
Inventor 刘建波夏勇
Owner WEBANK (CHINA)