Method for processing business application through multiple threads

A business application, multi-threading technology, applied in the field of computer communication, can solve the problems of low multi-thread processing performance, extreme expansion of processed data, and consumption, etc., to achieve the effect of improving business scalability, shortening development cycle, and reducing memory copying

Active Publication Date: 2015-08-12
BEIJING VRV SOFTWARE CO LTD
View PDF8 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In engineering applications, multi-threading technology is often used to improve the operating efficiency of software systems. Although with the advancement of hardware technology, multi-processors and hardware with large memory are rapidly popularized, the business to be processed by software systems is also increasing. It is changeable and complex, and the processed data is extremely inflated. How to make full use of hardware and system resources to process complex and changeable business under the premise of high efficiency and stability has become a hot topic.
[0004] However, the use of multi-threading technology will face the following problems. If it is not handled properly, the efficiency of multi-threaded business processing will drop significantly, and sometimes it will be lower than that of single-threaded business processing: (1) In a multi-threaded environment Under the circumstances, public resources or codes need to be synchronized and mutually exclusive to ensure the safe operation of the system. They are usually protected by means of critical sections, mutexes or semaphores. At this time, there will be a large overhead. If not handled properly, The performance of multi-thread processing will be greatly reduced; (2) In actual system applications, in some cases, the demand for certain types of business processing in multi-thread processing services will be greater than that of other types of business processing. Resources are redistributed, and more resources are allocated to businesses with large resource requirements to maximize the operating efficiency of the entire system; (3) In a multi-threaded environment, sometimes a large number of messages need to be transmitted between threads, which will Causes excessive data copying, consumes more system resources, and reduces the business processing efficiency of the entire system

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 for processing business application through multiple threads
  • Method for processing business application through multiple threads
  • Method for processing business application through multiple threads

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] figure 1 For the application model of the present invention, the present invention first creates threads in the main thread, including business dispatching threads and cyclic service driving threads; the business dispatching thread receives the business processing message or business type registration message sent by the external message source TCP transceiver module, and returns The business processing message or scheduling performance message is sent to the TCP transceiver module; the business scheduling thread sends a cyclic business registration message to the cyclic business driving thread, and the cyclic business driving thread returns the business processing message to the business scheduling thread according to the business processing result; the business scheduling thread is created and activated The cycle business drives threads to schedule multiple processing threads of different types, such as business types 1-N.

[0034] Specific process such as figure 2 ...

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 for processing business application through multiple threads. The method simply includes the steps of creating a business scheduling thread, creating an activation circulating business drive thread, registering a scheduling state detection task, starting a default or assigned processing thread number for business processing types, distributing a lockless queue for each business processing thread, selecting the business processing thread which is not busy relatively, obtaining business processing information from the lockless queue of the selected business processing thread for processing, setting the reference count of a data area in the business processing information to be zero through the business processing thread, and feeding back the information when the business scheduling thread receives the information indicating that processing is finished. The method has the advantages that according to current processing capacity, the concurrence number of the threads is controlled, unnecessary memory copy is reduced, use of a system lock is reduced, new business processing types can be added in the running period, business expansibility of a system is improved, system operation efficiency is improved, resource utilization flexibility of the system is improved, and the development period of the business system is shortened.

Description

technical field [0001] The invention relates to a scheduling technology using multi-thread business processing in information technology, in particular to a method for using multi-thread processing business applications, which belongs to the field of computer communication. Background technique [0002] Multi-threading refers to the technology that realizes the concurrent execution of multiple threads from software or hardware. In a program, these independently running program fragments are called "threads", and the concept of programming using it is called "multithreading". [0003] In engineering applications, multi-threading technology is often used to improve the operating efficiency of software systems. Although with the advancement of hardware technology, multi-processors and hardware with large memory are rapidly popularized, the business to be processed by software systems is also increasing. With the changeable and complex data and the extreme expansion of processe...

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/38
Inventor 林皓杨华杨厂普
Owner BEIJING VRV SOFTWARE 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