Interprocess function invocation method and device based on shared memory

A shared memory and inter-process technology, applied in the computer field, can solve problems such as high system performance consumption

Inactive Publication Date: 2017-12-19
SHANDONG INSPUR COMML SYST CO LTD
View PDF8 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In this process, it is necessary to obtain the registration information of the process to be called from different servers, t

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
  • Interprocess function invocation method and device based on shared memory
  • Interprocess function invocation method and device based on shared memory
  • Interprocess function invocation method and device based on shared memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0064] Such as figure 1 As shown, the embodiment of the present invention provides a shared memory-based inter-process function call method, the method may include the following steps:

[0065] Step 101: pre-set service process and client process;

[0066] Step 102: Start the service process, and use the started service process to create a shared memo...

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 interprocess function invocation method and device based on a shared memory. The method includes the steps of setting a service process and a client process in advance; starting the service process, and using the started service process to establish the shared memory; using a monitoring thread in the service process to monitor the shared memory; receiving a data processing request, wherein the data processing request carries to-be-processed data and the identification information of a to-be-invoked processing function; using the client process to store the to-be-processed data into the shared memory; when the monitoring thread monitors that the data is stored in the shared memory, invoking the target function corresponding to the identification information; processing the to-be-processed data stored in the shared memory by using the invoked target function, and outputting the processed data. According to the scheme, the performance consumption of a system can be reduced, and the method and device are especially suitable for embedded equipment with limited performances.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for invoking inter-process functions based on shared memory. Background technique [0002] A process is the basic unit for resource allocation and scheduling in the system. When each process is running, it needs to use some functions of other processes, so the function call between processes is very important. [0003] At present, each process generally registers with different servers before running. When a function is called during the running of the process, it is necessary to obtain the corresponding registration information from the server corresponding to the process to be called, and then call the relevant functions of the process to be called according to the obtained registration information. [0004] During this process, the registration information of the process to be called needs to be obtained from different servers, that is, a large amount of...

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/50
CPCG06F9/5016G06F9/542G06F9/544
Inventor 解双福
Owner SHANDONG INSPUR COMML SYST CO LTD
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