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

Inter-process communication method and device

A communication method and technology for a communication device, which are applied in the field of inter-process communication methods and devices, can solve the problems of reducing inter-process communication efficiency, high TLB missing rate, increasing inter-process communication overhead, etc., and achieve the effect of improving communication performance

Active Publication Date: 2015-04-29
HONOR DEVICE CO LTD
View PDF4 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Compared with the switched process, all the entries saved in the TLB are invalid, which leads to a high TLB missing rate of the switched process in the early stage of operation, requiring multiple accesses to the main memory page table, which increases the overhead of inter-process communication , reducing the efficiency of inter-process communication

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
  • Inter-process communication method and device
  • Inter-process communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to enable those skilled in the art to better understand the solution of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings and implementation manners.

[0048] The application scenarios of the embodiments of the present invention are firstly explained below.

[0049]All programs running in the computer need to be executed through the main memory. If the executed program takes up a large amount of main memory, the main memory will be exhausted. In order to allow more programs to share the main memory with limited capacity, the prior art proposes virtual memory technology, which establishes a virtual memory outside the physical memory such as main memory and cache memory Cache, and divides the program into several program blocks and stores them in As auxiliary storage on the virtual memory. When the program is running, the program block to be used must be transfe...

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

An embodiment of the invention provides an inter-process communication method and device. The inter-process communication method includes establishing a first mapping relation between a shared memory address and a preset address of a first process, with the shared memory being obtained by applying by the first process; saving the first mapping relation to a TLB (translation lookside buffer) and a first page table corresponding to the first process, and locking the first mapping relation; controlling the first process to send mapping information containing the shared memory address to a second process so as to establish a first mapping relation between the shared memory address and a preset address of the second process, then saving the second mapping relation to the TLB and a second page table corresponding to the second process, and locking the second mapping relation, with the preset address of the second process being equal to that of the first process. In this way, after the context of the process is switched by the operation system kernel, the virtual address still can be correctly translated as the physical address according to the locking mapping relations, and the communication is achieved with improved performance.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to an inter-process communication method and device. Background technique [0002] In virtual memory technology, the page table is stored in the main memory, and the cost of querying the page table is relatively high. In order to solve this problem, a special cache is also used in the virtual memory solution, that is, the translation detection buffer TLB (Translation lookaside buffer), some entries of the page table are saved in the TLB. After a virtual address is given, the processor first queries the TLB. If the page table entry corresponding to the virtual address is stored in the TLB (called a TLB hit), the memory physical address corresponding to the virtual address can be obtained directly from the TLB, and then The corresponding page can be read from the memory according to the physical address; if the page table entry corresponding to the virtual address is no...

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 Applications(China)
IPC IPC(8): G06F9/54
Inventor 吴小科王伟蔡毅
Owner HONOR DEVICE CO LTD
Features
  • Generate Ideas
  • 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