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

Multi-thread concurrency monitoring method, device and apparatus and storage medium

A multi-threading and sub-threading technology, applied in multi-programming devices, program control design, hardware monitoring, etc., can solve problems such as inability to monitor execution information and abnormal status in real time, server memory overflow, and impact on server stability.

Pending Publication Date: 2020-08-04
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when using this locking tool, it is impossible to monitor the execution information and abnormal status of each thread in real time after multi-thread synchronous execution, which leads to problems such as server memory overflow and slow response, which will affect the stability of server operation in severe cases

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
  • Multi-thread concurrency monitoring method, device and apparatus and storage medium
  • Multi-thread concurrency monitoring method, device and apparatus and storage medium
  • Multi-thread concurrency monitoring method, device and apparatus and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] High concurrency generally refers to ensuring that the system can process many requests in parallel at the same time through the design of the Internet system architecture. This invention takes the application field of loan risk control as an example. Loan applicants need to be approved according to specific business needs. During the approval process, multiple Other external systems query the data related to loan applicants that can be used for risk judgment. These data come from different systems. Considering the timeliness of the service and the need to obtain the data with the fastest efficiency, the server needs to open multiple threads Concurrently request dozens or even hundreds of external data interfaces, and wait for all interfaces to respond to return data before further data processing and integration. It can be seen that multiple threads are involved in concurrent synchronization when dealing with high concurrency in the loan approval process. At present, th...

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 the technical field of server high-concurrency processing, and discloses a multi-thread concurrency monitoring method, device and apparatus and a storage medium, which are used for preventing the conditions of memory overflow and too slow response of a server and improving the running stability of the server. The method comprises the steps of creating tasks in batches andsubmitting the tasks to a task queue, and an original value of a task timer of a locking tool is initialized to be the total number of the tasks of sub-threads; traversing the sub-thread tasks and recording the number of to-be-executed tasks; judging whether the task number exceeds a preset threshold value or not; if the preset threshold value is not exceeded, judging whether a queue is full or not; if the queue is not full, submitting the sub-thread task to the sub-thread and blocking the main thread; recording running result information of each task; after the task operation of each sub-thread is finished, subtracting one from the value of a task timer of the locking tool and returning task operation result information to a main thread; and when the value of the task timer is 0, recovering the main thread to execute the corresponding main thread task.

Description

technical field [0001] The present invention relates to the technical field of high concurrency processing of servers, in particular to a multi-thread concurrency monitoring method, device, equipment and storage medium. Background technique [0002] When the server handles high concurrency, it needs to open multiple threads to request dozens or even hundreds of external data interfaces concurrently, and wait for all interfaces to respond to return data before further data processing and integration. Therefore, the server involves thread synchronization in the process of processing high concurrency. Currently, Use the blocking tool CountDownLatch in the Java software development kit to realize concurrent synchronization of multiple threads. However, when using this locking tool, it is impossible to monitor the execution information and abnormal status of each thread in real time after multi-thread synchronous execution, which leads to problems such as server memory overflow a...

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): G06F11/30G06F9/48G06F9/50G06F9/52
CPCG06F9/4881G06F9/5016G06F9/524G06F11/3017G06F11/3051G06F2209/5011G06F2209/5018
Inventor 张纵月
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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