Concurrent method for treating calling events

A processing method and event technology, applied in the direction of electrical components, selection devices, etc., can solve problems such as multi-thread concurrency control difficulties, and achieve the effect of solving concurrency control problems, ensuring resource utilization, and ensuring system performance.

Inactive Publication Date: 2006-12-06
HUAWEI TECH CO LTD
View PDF0 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a call event concurrency processing method, which is used to

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
  • Concurrent method for treating calling events
  • Concurrent method for treating calling events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The invention solves the concurrency control problem of calls under the multi-thread environment through the control of the event queue and the thread queue.

[0032] In the method of the present invention, the system provides multiple event queues and multiple corresponding event execution threads, that is, each event queue is specially responsible for monitoring and taking out event execution by an event execution thread, and the event queue and event execution thread are one-to-one relation. The invention serializes the events of each call, and puts the events belonging to the same call into the same event queue for sequential execution, but multiple calls can share one event queue, and different call events can be put into multiple different events In this way, the entire business system is multi-threaded, and each call is single-threaded.

[0033] The relationship between calls, event queues, and threads is as follows figure 1 shown. The present invention uses a...

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 method is designed for use in the multithreading service system and comprises: building multi event queues in a service system, and setting each event queue corresponding to an event execution threading. After the service system receives a calling event, it executes following steps: a) allocating same calling event into a same event queue, and sequentially saving it into the event queue according to its receiving sequence; b) the event execution threading sequentially reads out the event from the event queue according to the inputting sequence, and calls the relevant service logic to execute.

Description

technical field [0001] The invention relates to a multi-thread service system, in particular to a method for concurrently processing call events. Background technique [0002] Multi-threading technology provides convenience for business in resource sharing, but multi-threaded resource sharing leads to concurrency control has always been a difficulty in the industry. For business systems in a multi-threaded execution environment, the events of each call come from multiple threads, and there is a problem of resource competition between threads. [0003] In the prior art, multi-thread control is generally performed through resource locking. The basic principle is: list all shared resources in the system, when a thread is using a certain resource, lock the resource until the thread finishes using the resource, release the lock so that other threads can use the resource again . [0004] This method of resource locking is easy to miss some shared resources, resulting in disorde...

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
IPC IPC(8): H04Q3/64
Inventor 沈庆春袁磊苗彩霞张文阁尚万军陈晓东
Owner HUAWEI TECH 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