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

Method for accomplishing multi-instance and thread serialized affair processing method

A transaction processing and multi-instance technology, applied in the direction of multi-programming devices, etc., can solve problems such as business failure, operating system scheduling waste, and the inability to apply multi-instance threads to run in parallel, so as to ensure correct implementation and improve scheduling utilization.

Inactive Publication Date: 2008-07-09
ZTE CORP
View PDF0 Cites 9 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
  • Method for accomplishing multi-instance and thread serialized affair processing method
  • Method for accomplishing multi-instance and thread serialized affair processing method

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 multiple-instance thread serializing transaction processing. The method includes the following steps: in step S302, an operation thread initiates serializing transaction to multiple-instance operation thread sort, wherein the serializing transaction comprises multiple sequential messages; in step S304, the operation thread sets a serializing transaction ID number and a serializing transaction status flag in the multiple messages; in step S 306, a substitutional function of the multiple-instance operation thread sort detects the serializing transaction status flag, and acts the relative operation in a serializing transaction mapping table according to the detected serializing transaction status flag. By adopting the technical proposal, the invention has the following advantages that: the parallel running advantage of the multiple-instance thread is applied, the scheduling utility ratio of the operating system is improved, and the scrambled process for the serializing transaction is not occurred, thereby ensuring the accurate realization of the operation.

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 Applications(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