Method and system for scheduling multitasking thread pools

A scheduling method and scheduling system technology, applied in the field of video processing, can solve problems such as memory consumption, and achieve the effect of avoiding resource waste and improving utilization.

Inactive Publication Date: 2012-07-04
CHINA DIGITAL VIDEO BEIJING
View PDF4 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the creation and destruction of threads requires a cost. The time to create a new thread probably takes several hundred milliseconds of the system, and it also consumes other resources such as memory. In short, it is unfavorable to repeatedly create and destroy 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
  • Method and system for scheduling multitasking thread pools
  • Method and system for scheduling multitasking thread pools
  • Method and system for scheduling multitasking thread pools

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0028] Such as figure 1 As shown, it is a structural diagram of a multi-task thread pool scheduling system of the present invention, including the following devices:

[0029] Task classification device 11: used to classify tasks according to the different purposes of task algorithms, and set the priority of task threads;

[0030] Thread pool creating device 12: used for setting up the thread pool according to the priority of the task thread;

[0031] Thread pool selection device 13: used to select the thread pool corresponding to the priority according to the priority of the task thread to be executed;

[0032] Task executing device 14: for associating task algorithms with threads, and starting thread scheduling algorithms to execute tasks.

[0033] Wherein, the task execution device 14 includes a thread selection module, and the thread select...

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 a method and a system for scheduling multitasking thread pools, which create task threads according to the number of real central processing units (CPUs) of a computer, set up the thread pools according to priority of the task threads, choose threads in the thread pools corresponding to priority according to the priority of the task threads to be executed, finally relate task algorithm to the threads and start thread scheduling algorithm to execute the tasks. By adopting the method and the system for scheduling multitasking thread pools, users can create the thread pools according to the priority of the task threads and classify and manage the threads. Due to a thread creating and recovering device of threads arranged in the method and the system, utilization ratio of the threads is improved, and resource waste is avoided.

Description

technical field [0001] The invention belongs to the technical field of video processing, and in particular relates to a multi-task thread pool scheduling method and system. Background technique [0002] In the post-processing of images / videos, due to the complexity of algorithms, the efficiency of program production will be low. However, with the continuous improvement of the computer level, computers with multi-core CPUs are becoming more and more popular, which provides hardware support for improving the real-time performance of the system during post-processing of images / videos. In order to make full use of existing hardware resources, a feasible way is to start as many threads as possible to let the CPUs work, but the actual situation is not that the more CPUs started, the better. When the number of threads reaches a certain value, as With the addition of new threads, the response time of the system to a single task is getting longer and slower, and if it continues to i...

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/50G06T1/20
Inventor 郑鹏程徐进见良刘铁华
Owner CHINA DIGITAL VIDEO BEIJING
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