VxWorks multitask synchronization and communication method

A communication method and multi-task technology, which is applied in the field of VxWorks operating system, can solve problems such as large number of message queues, difficult multi-task cooperation, complex algorithms for mutually exclusive access to shared data, etc., and achieve the effect of reducing difficulty

Active Publication Date: 2012-12-26
山东中创软件商用中间件股份有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides a kind of VxWorks multi-task synchronization and communication method, to solve the problem in the prior art, when there are many tasks that need to be synchronized and communicate with each other, due to the complexity of the algorithm of mutual exclusive access to shared data or the message queue The number is very large, resulting in a difficult multi-task collaboration problem, the technical solution is as follows:

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
  • VxWorks multitask synchronization and communication method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The embodiment of the present invention aims at the difficult problem of multi-task cooperation existing in the prior art, and proposes a multi-task synchronization and communication method, the method includes: creating a MTLInitialize object to initialize the multi-task running environment; creating a MTLThread object to Encapsulate multitasking operations; create MTLMutex objects and MTLRecursiveMutex objects to encapsulate semaphores, create MTLMonitor objects to encapsulate message queues, and create MTLSynchronized objects to manage semaphores and message queues in a unified manner, providing users with unified interfaces and usages; The synchronization and communication of multiple tasks are realized by using the unified interface and usage.

[0033] The multi-task synchronization and communication method provided by the embodiment of the present invention uses the method of C++ class encapsulation to encapsulate the message queue and semaphore of VxWorks, combine...

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 VxWorks multitask synchronization and communication method which comprises the following steps of: creating an MTLInitialize object to initialize a multitask operation environment; creating an MTLThread object to package the multitask operation; creating an MTLMutex object and an MTLRecursiveMutex object to package the semaphore, creating an MTLMonitor object to package a message queue, creating an MTLSynchronized object to carry out centralized management on the semaphore and the message queue, and providing uniform interface and usage for users; and realizing the multitask synchronization and communication by utilizing the united interface and usage. The invention realizes the synchronization and the communication among a plurality of tasks freely by carrying out the packaging on the message queue and the semaphore of VxWorks by utilizing a C++ class packaging method, thereby greatly reducing the multitask cooperation difficulty.

Description

technical field [0001] The invention relates to the technical field of VxWorks operating system, in particular to a VxWorks multi-task synchronization and communication method. Background technique [0002] The VxWorks operating system is an embedded real-time operating system that allows multiple tasks to run simultaneously. When multiple tasks are running at the same time, synchronization and communication between tasks is very necessary. [0003] Sharing data is one of the ways for VxWorks operating system to realize multi-task synchronization and communication. When shared data is used, the semaphore provided by VxWorks is usually used to ensure mutually exclusive access to shared data. However, when there are many tasks that need to be synchronized and communicated with each other, the algorithm for mutually exclusive access to shared data will be very complicated, which increases much Difficulty of task collaboration. [0004] In addition, the VxWorks operating syst...

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/52G06F9/54
Inventor 王凯刘江宁
Owner 山东中创软件商用中间件股份有限公司
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