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

Method and device for thread processing

A thread processing and threading technology, which is applied in the computer field, can solve problems that affect the normal operation of other businesses, and the service platform cannot provide business services normally and stably, so as to achieve the effect of optimizing the thread processing method and ensuring stability

Inactive Publication Date: 2018-11-20
ZHEJIANG KOUBEI NETWORK TECH CO LTD
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in some specific cases, a problem in one business will affect the normal operation of other businesses. For example, the number of pending requests corresponding to a certain business is too large, or an external platform needs to be called to process pending requests, and the external platform fails. The current service platform The threads in the physical thread pool are likely to be taken out, and there are no idle threads available in the physical thread pool, which makes the service platform unable to provide business services normally and stably

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 device for thread processing
  • Method and device for thread processing
  • Method and device for thread processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0064] figure 1 Shows a schematic flowchart of a thread processing method according to an embodiment of the present invention, as figure 1 As shown, the method includes the following steps:

[0065] Step S100, according to the total number of threads in the physical thread pool, set the number of threads in at least two business thread pools for providing execution services to at least two businesses and the number of threads in t...

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 discloses a method and a device for thread processing. The thread processing method comprises: according to total number of threads of physical thread pools, setting the number of threads of at least two service thread pools for providing execution services to at least two services respectively and the number of threads of a shared thread pool for providing execution services to allservices; determining a service thread pool corresponding to a to-be-processed request according to the to-be-processed request; processing the to-be-processed request according to thread occupation situation of the service thread pool corresponding to the to-be-processed request, the thread occupation situation of the shared thread pool, and / or the thread occupation situation of other service thread pools. According to the technical scheme provided by the invention, effective distribution of threads in the physical thread pool is realized, stability of business service is effectively ensured,a problem that one service in a service platform goes wrong and normal operation of other services is affected is prevented, and a thread processing mode is optimized.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a thread processing method and device. Background technique [0002] Most service platforms use threads to process users' pending requests so that users can obtain corresponding business services. A general service platform can provide users with various services. In order to support concurrent processing, the service platform usually maintains a physical thread pool internally. The physical thread pool includes a certain number of threads to reduce resource overhead caused by frequent creation and destruction of threads. Among them, all businesses can share a physical thread pool. When a pending request is received, a thread is directly taken out from the physical thread pool to process the pending request, and after the pending request is processed, the thread is put back into the physical thread pool. However, in some specific cases, a problem in one business will affect ...

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): G06Q10/10G06F9/50
CPCG06F9/5061G06Q10/103
Inventor 陈刚汪大锋
Owner ZHEJIANG KOUBEI NETWORK TECH 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