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

Software bus program concurrence resource distribution method

A technology of resource allocation and soft bus, which is applied in the field of data processing, can solve problems such as the decline of system processing capacity and the improvement of data transmission efficiency, and achieve the effects of eliminating excessive dependence, improving overall efficiency, and improving data forwarding efficiency

Inactive Publication Date: 2015-12-23
SHANDONG ZHIYANG ELECTRIC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Although the above two methods can solve the problem of data forwarding speed to a certain extent, they will reduce the popularization and application of software products if they rely too much on external conditions (such as hardware configuration), making software products a special application; The number of processes is used to solve this problem. In addition to the strong hardware dependence, the system processing capacity decreases instead, which affects the improvement of data transmission efficiency.

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
  • Software bus program concurrence resource distribution method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] like figure 1 As shown, the soft bus program concurrent resource allocation method of the present invention comprises the following steps:

[0024] The first step is to establish an application-level thread pool and start several worker threads in advance. n (n=1,2,...,N, where N takes an integer greater than 2) and a manager thread M;

[0025] In the second step, for each worker thread W n Define a send buffer, the manager thread M will allocate and write the send data in the send buffer, and the worker thread W will n Read and forward the sent data in the send buffer.

[0026] Wherein, the specific definition method of the sending buffer is as follows:

[0027] Define the CBuf class, which contains a member variable m_CRec[5000] of type CRec, a read pointer m_nRead of type int, and a write pointer m_nWrite of type int. M and worker thread W n Used together, the read pointer m_nRead records which record has been sent in the sending buffer, and is determined by th...

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 belongs to a data processing method, and particularly to a software bus program concurrence resource distribution method. The software bus program concurrence resource distribution method includes the following steps of S1. establishing an application thread pool, and starting a plurality of worker threads Wn (n=1,2,...,N, wherein N represents an integer larger than 2) and one manager thread M; S2. defining one send buffer area for each worker thread Wn, deploying and writing send data in the send buffer area by the manager thread M, and reading and forwarding the send data in the send buffer area by the worker thread Wn. By adopting the software bus program concurrence resource distribution method, the data forwarding efficiency can be raised, over dependence on conditions of hardware and the quantity of threads can be eliminated, a deploying and processing method for send tasks from the manager thread M is simple and easy to use, the number of sent threads can be controlled within the range, from 5 to 8, which can meet requirement, the send tasks can be reasonably distributed via calculation of carrying capacity, and the data forwarding efficiency can be raised.

Description

technical field [0001] The invention belongs to a data processing method, in particular to a soft bus program concurrent resource allocation method. Background technique [0002] The soft bus program is mainly used in the network communication system to realize the data communication function between modules, and it is a channel to realize cross-process communication between modules. The efficiency of data transmission is an important index to measure the channel. For the soft bus, it is a service module. There are several client modules communicating at the same time. It is important to ensure that each module can receive information in a timely and accurate manner. The primary consideration of the soft bus. [0003] To solve this problem, there are currently two solutions. One is to rely on hardware expansion, such as increasing computer memory, increasing the main frequency of the computer, etc., so as to improve hardware processing capabilities; Concurrency efficiency ...

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/48
Inventor 刘国永徐传伦张宪强张万征
Owner SHANDONG ZHIYANG ELECTRIC
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