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

Method for accomplishing multi-instance and thread serialized affair processing

A transaction processing and multi-instance technology, applied in the direction of multi-programming devices, etc., can solve the problems of operating system scheduling waste, business failure, low efficiency, etc., and achieve the effect of improving scheduling utilization and ensuring correct implementation

Inactive Publication Date: 2009-07-22
ZTE CORP
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, thread A sends a series of messages to multi-instance thread family B, and these messages are distributed to multiple instances of thread family B B1...Bn, and these thread instances may be scheduled by the operating system to different CPUs in parallel Running, so there may be out of order message processing, leading to business failure
If you want to use the response mechanism on a multi-core system, the efficiency is very low. Using the traditional serial number plus cache technology can not actually take advantage of the advantages of multi-instance threads running in parallel. scheduling waste
[0005] Therefore, the current technical solution has the problem of service failure caused by out-of-order message processing, and there is also the problem of operating system scheduling waste

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 accomplishing multi-instance and thread serialized affair processing
  • Method for accomplishing multi-instance and thread serialized affair processing
  • Method for accomplishing multi-instance and thread serialized affair processing

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0025] In this embodiment, a method for implementing multi-instance thread serialized transaction processing is provided. Such as image 3 As shown, the method includes the following steps: step S302, the business thread initiates a serialized transaction to a multi-instance business thread family, wherein the serialized transaction includes a plurality of ordered messages; step S304, the business thread sets a sequence on the multiple messages The serialized transaction ID number and the serialized transaction status flag; step S306, the proxy function of the multi-instance business thread family detects the serialized transaction status flag, and performs related operations on the serialized transaction mapping table according to the detected serialized transaction status flag.

[0026] Wherein, in step S304, the serialized transaction ID number may be a global number of the entire system, or may be independently numbered by each process or thread, and each transaction inclu...

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 for realizing serialized transaction processing of multi-instance threads, which includes the following steps: step S302, the business thread initiates a serialized transaction to the multi-instance business thread family, wherein the serialized transaction includes a plurality of ordered messages; Step S304, the business thread sets the serialized transaction ID number and the serialized transaction status flag on multiple messages; Step S306, the proxy function of the multi-instance business thread family detects the serialized transaction status flag, and according to the detected serialized transaction status Flags to perform operations related to the serialized transaction mapping table. Through the technical method of the present invention, the following beneficial effects are achieved: the advantages of multi-instance thread parallel operation are applied, the scheduling utilization rate of the operating system is improved, and the out-of-order processing of serialized transactions does not occur, thereby ensuring the correctness of the business accomplish.

Description

technical field [0001] The present invention relates to the fields of operating system, parallel processing, and business support, and more particularly, relates to a method for realizing multi-instance thread serialized transaction processing under the SMP (Symmetric MultiProcessor, symmetric multiprocessor) architecture. Background technique [0002] In the SMP architecture, in order to take full advantage of the advantages of multi-core parallel processing, it is often necessary to instantiate the key business processes with heavy processing load as much as possible. However, after multi-thread instantiation, many problems will be caused, which need to be solved one by one. Among them, how to implement serialized transaction processing after multi-thread instantiation is an urgent problem to be solved. [0003] In a software system, usually some threads (such as thread A) send messages to other threads (such as thread B) to trigger B to complete certain functions. as att...

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 Patents(China)
IPC IPC(8): G06F9/46
Inventor 钟卫东李翌朱佐亮蒋鲲鹏谢世波
Owner ZTE CORP
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