Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Task processing method and device based on multi-thread environment

A task processing and multi-threading technology, applied in the field of data processing, to achieve the effect of improving execution efficiency

Active Publication Date: 2020-12-25
PING AN TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a task processing method and device based on a multi-thread environment, the main purpose of which is to solve the technical problem in the prior art that the same scheduling task is repeatedly executed by multiple threads

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 processing method and device based on multi-thread environment
  • Task processing method and device based on multi-thread environment
  • Task processing method and device based on multi-thread environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] The invention provides a task processing method based on a multi-thread environment. refer to figure 1 As shown, it is a flow chart of the first embodiment of the task processing method based on the multi-thread environment of the present invention.

[0043] In this embodiment, the task processing method based on the multi-thread environment includes:

[0044] Step S10, in the process of executing the scheduled task in the task list based on the multi-thread environment, when it is detected that a thread starts the scheduled task, read the preset business key for the started scheduled task.

[0045] Step S20, putting the read business primary key into the established lock table;

[0046] In step S30, the task object of the scheduling task is acquired according to the read business primary key, and the thread...

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 multi-thread environment-based task processing method. The method comprises the steps of reading a business main key preset for a started scheduling task when it is detectedthat a thread starts the scheduling task in a process of executing the scheduling task in a task list based on a multi-thread environment; putting the read business main key into an established lock table; and according to the read business main key, obtaining a task object of the scheduling task, and executing the scheduling task based on the task object by the thread. The invention furthermore provides a multi-thread environment-based task processing apparatus. The technical problem that the same scheduling task is repeatedly executed by multiple threads in the prior art is solved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a task processing method and device based on a multi-thread environment. Background technique [0002] Since most businesses in industries such as insurance and finance have the characteristics of a large amount of data, they often use multi-threaded concurrent business processing. In the existing multi-threaded environment, after the thread executes the scheduling task, it will The status is marked as executed, but for businesses with a large amount of data, there may be many task objects in a scheduling task, or the processing period of a scheduling task is long, causing the thread to fail when the scheduling task has not been executed. The scheduled task is executed repeatedly by other threads. [0003] For example, generally after the underwriting is completed, it is necessary to send notification information to the insured based on the contact information in the ins...

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 Patents(China)
IPC IPC(8): G06F9/48
CPCG06F9/4881
Inventor 凌剑姜云鹏吴海波马向东丁杰
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products