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

Blocked task scheduling method and device

A task scheduling and task technology, applied in the computer field, can solve problems such as high overhead, busy application framework, and decreased number of concurrent system I/O, so as to increase the number of concurrent tasks and reduce the complexity of development and maintenance

Active Publication Date: 2014-11-12
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, due to the high cost of creating and managing threads by the operating system, when the application framework is busy with business and creates many threads, the number of context switches of the operating system will increase exponentially, and due to the limitation of system performance, the system The number of concurrent I / O drops

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
  • Blocked task scheduling method and device
  • Blocked task scheduling method and device
  • Blocked task scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0024] Unless the context clearly states otherwise, the number of elements and components in the present invention can exist in a single form or in multiple forms, and the present invention is not limited thereto. Although the steps in the present invention are arranged with labels, they are not used to limit the order of the steps. Unless the order of the steps is clearly stated or the execution of a certain step requires other steps as a basis, the relative order of the steps can be adjusted. It can be understood that the term "and / or" used herein refers to and covers any and all possible combina...

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 blocked task scheduling method. The method comprises the steps as follows: allocating coroutines for task functions, and calling the task functions in the coroutines; when calling of the task functions is blocked, suspending the coroutines, and setting the coroutines to be in suspended states; monitoring system I / O (input / output) events, finding the coroutines corresponding to the system I / O events, and setting the coroutines to be in running states; finding out the coroutines in the running states, resuming the found coroutines, and correspondingly processing the system I / O events. Besides, the invention further provides a blocked task scheduling device. By the aid of the blocked task scheduling method and device, the concurrency amount of a system can be increased.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a blocking task scheduling method and device. Background technique [0002] When an application framework in existing computer technology executes a task requiring I / O (input / output), it usually enters a pause state due to waiting for input data. For example, when the socket function is called to monitor the port and wait to receive the data sent by the remote server, or when the input stream corresponding to the system input event is monitored, it will enter the pause state, so that the program process cannot continue to execute. [0003] In order to prevent the program from entering the suspended state due to waiting for I / O, the existing application framework usually executes blocking tasks in units of threads, that is, executes the program in a multi-threaded manner. When blocked, it can be switched to other threads for asynchronous execution under the scheduling of the op...

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/485G06F13/364
Inventor 许家滔陈国敏李方源
Owner TENCENT 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