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

Task scheduling method and device, storage medium and server

A task scheduling and task technology, applied in the computer field, can solve problems such as delayed processing and delay

Pending Publication Date: 2019-11-12
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, using this method will cause the following problems: if a request executed earlier is interrupted, after the request is interrupted and returned, it needs to be reassigned to the thread pool for queuing, resulting in the request being delayed and causing delays

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, storage medium and server
  • Task scheduling method and device, storage medium and server
  • Task scheduling method and device, storage medium and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The embodiment of the present invention provides a task scheduling method, device, storage medium and server, which can make the request executed first be processed first after the interrupt returns, without reassigning to the thread pool for queuing, and avoiding delay phenomenon.

[0022] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] see figure 1 , an embodiment of a task s...

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 relates to the technical field of computers, and provides a task scheduling method and device, a storage medium and a server. The method comprises the following steps: acquiring each request sent by a client, and recording the time for acquiring each request; respectively obtaining each task contained in each request by using a functional programming-based single sub-unit; in combination with the time when each request is obtained, allocating the same timestamp to each task contained in each request; and setting a task scheduler, and sequentially executing each task contained ineach request according to a sequence of timestamps from small to large. Through the setting, the timestamp of the task contained in the first-executed request is smaller than the timestamp of the taskcontained in the second-executed request, so that the first-executed request can be preferentially processed after interruption and return, the first-executed request does not need to be reallocatedto a thread pool for queuing, and a delay phenomenon is avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a task scheduling method, device, storage medium and server. Background technique [0002] At present, in a microservice environment, an asynchronous programming style plus a thread pool is usually used instead of the traditional request-thread model to improve CPU utilization. However, using this method will cause the following problems: if a request executed earlier generates an interruption, it needs to be reassigned to the thread pool for queuing after the request is interrupted and returned, causing the request to be processed later, resulting in a delay. Contents of the invention [0003] In view of this, the embodiments of the present invention provide a task scheduling method, device, storage medium and server, which can make the request executed first be processed first after the interrupt returns, without reassigning to the thread pool for queuing, and avoid...

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/5038
Inventor 王宸
Owner CHINA PING AN PROPERTY INSURANCE 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