Method for processing multiprogress message and method for processing multiprogress talk ticket

A bill processing and message processing technology, applied in telephone communication, monitoring/monitoring/test arrangement, electrical components, etc., can solve problems such as slow performance, limited application program interface, load imbalance, etc. Real-time business, quick and easy calculation effect

Active Publication Date: 2006-06-14
DATANG SOFTWARE TECH
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the application program interface (API) of the message queue is limited, and the subsequent processing process cannot know the backlog of data in the queue; in addition, this mechanism has limited performance and cannot adapt to a large amount of data exchange
[0007] To sum up, with the existing technology, the stagnation of tasks in the subsequent processing link will cause the waiting of the pre-processing link, and then the pre-processing link cannot schedule other tasks, which will cause some processes to be busy while other processes are in a waiting state. Load imbalance between processes
Although the existing message queue mechanism has a buffering effect, the inter-process communication (IPC) does not provide an application program interface (API) to access the state of the queue
Moreover, in the prior art, if the process is abnormal, the operating system will reclaim the memory used by the process, resulting in the loss of data in the block of memory
The performance of the mechanism adopted by the existing technology is relatively slow, which cannot meet the needs of real-time business

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 multiprogress message and method for processing multiprogress talk ticket
  • Method for processing multiprogress message and method for processing multiprogress talk ticket
  • Method for processing multiprogress message and method for processing multiprogress talk ticket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The invention provides a multi-process message processing method. The core of the method is: 1) allocate a piece of shared memory for each process; 2) the process reads the message from the allocated shared memory block for processing; The block is currently occupied, and the pending messages are stored in the determined shared memory block according to the preset load balancing rules.

[0027] refer to figure 1 , specifying a preferred embodiment of the method.

[0028] Step 11: Allocate a piece of shared memory for each process and identify it with a unique name.

[0029] The system stipulates that each process is assigned a unique identifier (such as 1, 2, 3...n); set the queue name according to the identifier, such as tmp / BILL_0, / tmp / BILL_1, ... / tmp / BILL_xxx; use the ftok function (Used to convert the file name into a key value) to get a unique key value, according to the key value, combined with the parameters provided by the system (such as memory size, read an...

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

This invention relates to a multi-process information process method and a multi-process ticket process method, in which the ticket process method used in parallel process to tickets in the charge system includes 1, setting up a shared memory for every process, 2, the process fetches the tickets for processing in the shared memory block, 3, distributing the tickets and storing them in the shared memory according to the preset load balance rule based on the current occupation situation of the memory block and storing the tickets with the same charged numbers in a same shared memory.

Description

technical field [0001] The invention relates to a multi-process message processing method, in particular to a load balancing method for multi-process message processing. The invention also relates to a real-time billing method, in particular to a multi-process bill processing method. Background technique [0002] The existing multi-process message processing method is to distribute data to the components for processing through the agreed inter-process communication (IPC) mechanism (such as pipes, sockets, message queues) or directory files among the components. [0003] .Taking sockets (pipelines) as an example, a connection is established between the pre-processing process and the subsequent processing process (in the pipeline mechanism, one reads and one writes two pipelines), one process writes data, and the other The process reads data from it; the process of the subsequent processing link periodically feeds back the processing speed to the process of the pre-processing...

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): H04M15/00H04M3/36
Inventor 周训波
Owner DATANG SOFTWARE TECH
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