Unlock instant, AI-driven research and patent intelligence for your innovation.

A custom multi-threaded control communication method

A communication method and multi-threading technology, applied in the directions of inter-program communication, multi-programming device, program control design, etc., can solve the problems of non-simple code encapsulation, high consumption of kernel resources, poor real-time performance, etc., and achieve simple and real-time code encapsulation. Good performance and low latency

Active Publication Date: 2019-02-05
杭州马尔科夫技术有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to overcome the shortcomings of the existing multi-thread control communication methods, such as large kernel resource consumption, unsimplified code packaging, and poor real-time performance, the present invention provides an automatic communication method that reduces kernel resource consumption, simple code packaging, and good real-time performance. Defined communication methods for multi-thread control

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
  • A custom multi-threaded control communication method
  • A custom multi-threaded control communication method
  • A custom multi-threaded control communication method

Examples

Experimental program
Comparison scheme
Effect test

example

[0037] Example: A method prototype implemented in C pseudocode, where the child thread is a thread that resides in memory for a long time, where the parent thread code

[0038]

[0039]

[0040]

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 self-defined multi-thread management control communication method. The method comprises the following steps of 1) designing a parameter structure object, embedded business parameters of the parameter structure object and two command pointer items for an entrance function of a son thread, wherein the embedded business parameters are required by a normal business design function, and the command pointer items are designed for control management of father and son threads; 2) defining and initializing two local variables in the father thread, taking addresses of the two local variables as pointers of uplink and downlink command parameters, and starting the son thread; 3) changing the values of the local variables in the father thread, wherein the local variables include the downlink command parameter, and the value change causes change of executive logic of the son thread; and 4) obtaining an introduction pointer in the son thread and changing the value of the uplink command parameter, wherein the value change causes change of code execution logic in the father thread. According to the method, the kernel resource consumption is reduced, the code packaging is relatively simple, and the real-time property is good.

Description

technical field [0001] The invention belongs to a program communication method, in particular to a multi-thread control communication method. Background technique [0002] Multithreaded programming is a software design method generally supported by various operating systems such as Windows / Linux / vxWorks, and it is also a design method supported by various development language platforms such as C / C++, Java, and C#. Management control and data communication between threads on various operating systems at the C / C++ level have similar concepts and methods, such as mutual exclusion, locking, synchronization, and waiting. In JAVA, due to the language-level multi-thread API support, the multi-thread design becomes simpler. The granularity of JAVA multi-thread control management is coarser than that of C / C++, so the flexibility is not as good as the latter. [0003] On various operating systems, use C / C++ for multi-thread programming thread control methods, especially the synchroni...

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 Patents(China)
IPC IPC(8): G06F9/54
CPCG06F9/546
Inventor 陆成刚徐利光王定江
Owner 杭州马尔科夫技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More