Task scheduling system based on thread pool

A task scheduling and thread pool technology, applied in the field of thread pools, can solve problems such as limited data volume, save memory space and improve scanning efficiency.

Pending Publication Date: 2021-12-17
WUHAN HONGXIN TECH SERVICE CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The amount of data stored by a single machine is related to the memory size of the machine itself, that is to say, the amount of data stored by redis is limited, and redis has the problem of double-write consistency between memory and database

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 system based on thread pool
  • Task scheduling system based on thread pool
  • Task scheduling system based on thread pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] In one embodiment, such as figure 1 As shown, a thread pool-based task scheduling system provided by the present invention includes: a task storage module, a task scanning module and a task execution module;

[0031] Wherein, the task storage module includes at least one redis sharding cluster unit and at least one mysql data unit; each of the redis sharding cluster units stores a plu...

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 provides a task scheduling system based on a thread pool, and the system comprises a task storage module which comprises a redis fragment cluster unit and a mysql data unit; wherein the redis fragment cluster unit stores a plurality of numerical pairs < key, value >, wherein the key is a main key, and the value is a trigger condition; the mysql data unit stores a primary key and a corresponding task class; a task scanning module that scans and obtains the task class from the task storage module, and transmits the task class to a task execution module; and the task execution module that executes a preset task according to the task class. A plurality of value pairs < key and value > is stored by redis, data needing to be scanned in real time are only stored in a memory, the memory space is fully utilized and saved, and reading speed is increased; the data is stored in redis and mysql data units, so that task data stored in the system is maximized; the triggering condition and the task type data are associated through the primary key, and the working efficiency of the system is improved.

Description

technical field [0001] The invention relates to the technical field of thread pools, in particular to a thread pool-based task scheduling system. Background technique [0002] At present, most open source task scheduling frameworks, such as the professional framework quartz and the system task module of activiti, have the function of task scheduling. The above frameworks are based on the thread pool to scan and execute tasks; when the amount of task data is small, save the task data in the memory to scan quickly; when the amount of task data increases, in order to avoid memory overflow, most of the tasks The data is saved to the database, so it is less efficient to scan the data. Since all task data needs to be scanned, a full table scan is required, the scanning efficiency is low, and there are also high requirements for the performance of the machine. [0003] With the gradual rise and widespread application of nosql databases such as redis, data storage is no longer lim...

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/48
CPCG06F9/4843
Inventor 郑平宇李浩邱伟平钟卫为黄晓艳
Owner WUHAN HONGXIN TECH SERVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products