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

Inter-process communication method and device based on shared memory and electronic equipment

A technology of inter-process communication and shared memory, which is applied in the field of inter-process communication based on shared memory and electronic equipment, can solve the problems of low system communication efficiency and excessive system resources, and achieve the effect of improving communication efficiency

Pending Publication Date: 2022-01-21
AUTOMOTIVE INTELLIGENCE & CONTROL OF CHINA CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present application provides an inter-process communication method, device and electronic equipment based on shared memory, which are used to solve the problems in the related art that the process communication occupies more system resources and the system communication efficiency is lower

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
  • Inter-process communication method and device based on shared memory and electronic equipment
  • Inter-process communication method and device based on shared memory and electronic equipment
  • Inter-process communication method and device based on shared memory and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application.

[0051] At present, when different processes need to communicate, if the storage space of the message queue corresponding to a process is full, other processes that need to send messages to the process at this time cannot send messages successfully. In a possible implementation manner, other processes may cyclically determine the status of the storage space of the process that needs to communicate until the storage space ...

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 provides an inter-process communication method and device based on a shared memory and electronic equipment. The method comprises the steps of providing a first interface, and enabling the first interface to execute the following operations in response to a first call request of a first process: if a write judgment condition in the first call request is not met, adding 1 to a first reference count, unlocking, carrying out P operation on a first semaphore, and entering a write waiting state; during waiting, if it is judged that the writable available amount of the message queue interval is greater than 0 based on the first semaphore and a write judgment condition in the first call request is met, exiting; and providing a second interface, and enabling the second interface to execute the following operation in response to a second calling request of the second process: conducting V operation on the first semaphore of the message queue interval of the second process based on the value of the first reference count so as to enable other processes in the waiting state to be awakened. Therefore, the waiting process releases the system resources, then the waiting process is awakened through the V operation of the first semaphore, and the communication efficiency of the system is improved.

Description

technical field [0001] The present application relates to the communication field, and in particular to an inter-process communication method, device and electronic equipment based on shared memory. Background technique [0002] At present, when different processes need to communicate, if the storage space of the message queue corresponding to a process is full, other processes that need to send messages to the process at this time cannot send messages successfully. [0003] In the related technology, other processes may cyclically judge the status of the storage space of the process that needs to communicate until the storage space is not full, then the other processes may send a notification to the process at this time. [0004] However, the above-mentioned continuous loop judgment will occupy more system resources, and the system communication efficiency is low. Contents of the invention [0005] The present application provides an inter-process communication method, d...

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): G06F9/54G06F9/4401
CPCG06F9/544G06F9/546G06F9/4418
Inventor 丁善超孟宪刚
Owner AUTOMOTIVE INTELLIGENCE & CONTROL OF CHINA CO LTD
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