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

Linux interprocess communication method and apparatus, and process exit monitoring method

A technology of inter-process communication and monitoring method, which is applied in the field of Linux platform, can solve problems such as unreliability, increased design complexity, and small amount of information carried by signals, so as to achieve the effects of ensuring reliability, enhancing stability, and saving resources

Active Publication Date: 2017-01-04
SHANGHAI INFOTM MICROELECTRONICS
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] In the above-mentioned existing process communication methods, pipes need names and kinship, and can only carry unformatted byte streams and buffer sizes are limited, while signals have the disadvantages of carrying small amounts of information and unreliable limitations. Shared memory needs to consider process The synchronization and mutual exclusion between them increase the complexity of the design

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
  • Linux interprocess communication method and apparatus, and process exit monitoring method
  • Linux interprocess communication method and apparatus, and process exit monitoring method
  • Linux interprocess communication method and apparatus, and process exit monitoring method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation manners of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other accompanying drawings based on these drawings and obtain other implementations.

[0036]In order to make the drawing concise, each drawing only schematically shows the parts related to the present invention, and they do not represent the actual structure of the product. In addition, to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. Herein, "a" not only means "only one", but also means "more than one".

[0037] Under Linux...

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 Linux interprocess communication method, comprising the following steps: S11: polling a message in a message queue in a core process; S12: analyzing the message in the core process and determining whether the message is event information of a registered event; S13: when determining that the message is the event information of the registered event, searching for an event management link table according to the event information, and obtaining all process numbers for monitoring the registered event; and S14: awakening all processes for monitoring the registered event according to the process number in the core process, and invoking an event processing function corresponding to the registered event in each process according to the event processing function link table. The invention realizes Linux system interprocess lightweight communication by using the event broadcast mechanism, and saves resources of the system while increasing stability of the system.

Description

technical field [0001] The invention relates to the technical field of Linux platforms, in particular to a communication method and device between Linux processes, and a process exit monitoring method. Background technique [0002] Linux is a free and open source Unix-like operating system that can be installed on a variety of computer hardware devices, such as mobile phones, tablets, routers, video game consoles, desktop computers, mainframes and supercomputers. The Linux system is a leading operating system, and the 10 fastest supercomputers in the world all run the Linux operating system. [0003] Brief introduction to the main means of centralized process communication under Linux: [0004] Pipe (pipe) and named pipe (named pipe): Pipes can be used for communication between processes with kinship relationships. Named pipes overcome the limitation that pipes have no names. Therefore, in addition to the functions that pipes have, it also allows unrelated Communication be...

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/54
Inventor 陈金华皮小军王大岁
Owner SHANGHAI INFOTM MICROELECTRONICS
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