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

Task tracking thread scheduling switching method, system and equipment and storage medium

A technology for tracking tasks and threads, applied in the field of data processing, can solve problems such as inability to obtain thread switching information, and achieve the effect of task execution and optimized task scheduling

Pending Publication Date: 2022-03-29
武汉斗鱼鱼乐网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a method, system, device and storage medium for thread scheduling switching of tracking tasks, to solve the problem that switching information between threads cannot be obtained in the existing thread scheduling process, and the adopted technical scheme is as follows:

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 tracking thread scheduling switching method, system and equipment and storage medium
  • Task tracking thread scheduling switching method, system and equipment and storage medium
  • Task tracking thread scheduling switching method, system and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0074] The present invention provides a method, system, device and storage medium for thread scheduling switching of tracking tasks, to solve the problem that switching information between threads cannot be obtained in the existing thread scheduling process, and the adopted technical scheme is as follows:

[0075] Embodiments of the present invention propose a method, system, device and storage medium for tracking task thread scheduling switching, such as figure 1 As shown, the method for thread scheduling switching of the tracking task includes:

[0076] Step 1, encapsulating a thread creation interface createThread, using the thread creation interface to create a ...

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 tracking thread scheduling switching method, system and device and a storage medium, and the method comprises the steps: packaging a thread creation interface, and creating a thread by using the thread creation interface; setting a thread name for the thread created by the creation interface by using a map memory and a mode of setting a thread lock; detecting whether a developer performs thread establishment by utilizing the thread establishment interface or not; setting a basic class with a thread data recording function, and determining whether the thread of the current task needs to be switched or not; and setting execution of the asynchronous task and thread delivery, and automatically finishing thread switching statistics by utilizing the execution of the asynchronous task. The system comprises modules corresponding to the steps of the method. The apparatus includes a processor and a memory.

Description

technical field [0001] The invention provides a method, system, device and storage medium for thread scheduling and switching of tracking tasks, belonging to the technical field of data processing. Background technique [0002] For existing programs, asynchronous tasks are used as much as possible, and multithreading or thread pools are used to schedule the execution of tasks. As the scheduling of thread pools and asynchronous tasks becomes more complicated, often a task will experience those threads during the execution process, so This leads to various switches between threads that can be difficult to figure out tasks. However, a task needs to consume certain resources to switch different threads, and thread switching needs to perform thread context switching. Therefore, there needs to be a way to know which threads have been executed by a task from the beginning to the end, and to know which thread to switch from which thread. After obtaining such thread switching inform...

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
IPC IPC(8): G06F9/48G06F9/52G06F16/22
CPCG06F9/4881G06F9/524G06F16/2282
Inventor 周志刚
Owner 武汉斗鱼鱼乐网络科技有限公司
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