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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com