A thread resource grouping method and device

A resource and thread technology, applied in the computer field, can solve problems such as poor flexibility, low applicability, and unfavorable resource management, and achieve the effect of high applicability and detailed resource management.

Pending Publication Date: 2019-05-03
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method still has the disadvantages of poor flexibility, not conducive to resource management and low applicability

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
  • A thread resource grouping method and device
  • A thread resource grouping method and device
  • A thread resource grouping method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0058] In order to facilitate the understanding of the thread resource grouping method and related devices provided in the embodiments of the present application, the following briefly introduces multithreading first.

[0059] A thread is the smallest unit that an operating system can perform operation scheduling. It is included in a process and is the actual operating unit in the process. The thread pool is a form of multi-thread processing. It uses existing thread resources to continue to...

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 embodiment of the invention discloses a thread resource grouping method and device, and the method is suitable for business process optimization, and comprises the steps: determining the total concurrent thread number of a resource thread pool, and dividing the resource thread pool into a plurality of sub-resource thread pools; when a task processing request triggered by a target service is received, determining a target sub-resource thread pool corresponding to the target task from the plurality of sub-resource thread pools; determining whether the number of threads concurrently executedin the target sub-resource thread pool is smaller than a concurrence thread threshold; and if the number of the threads concurrently executed in the target sub-resource thread pool is not smaller thanthe concurrency thread threshold, increasing the number of the concurrency threads in the target sub-resource thread pool so as to obtain thread resources used for executing the target task from thetarget sub-resource thread pool. By adopting the embodiment of the invention, the use condition of the thread resources can be monitored, flexible adjustment and detailed resource management of the resource groups can be realized, and the applicability is high.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for grouping thread resources. Background technique [0002] With the development of science and technology and the comprehensive popularization of network technology, people's demand for various businesses is becoming more and more vigorous, and the processing level of computers is also higher and higher. In the client / server-based model, in order to make full use of existing hardware resources, people propose multi-threading technology to solve the problem of concurrent execution of multiple threads. However, if there are a large number of concurrent threads, and each thread ends after executing a short task, frequent creation of threads will greatly reduce the efficiency of the system, because frequent creation and destruction of threads takes time. Based on this, in order to reduce the thread creation time and destruction time, people have pro...

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/50
Inventor 柳芊
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT 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