Inter-core communication method based on AMP system, terminal and storage medium
A communication method and communication technology, applied in various digital computer combinations, instruments, electrical digital data processing and other directions, can solve the problem of inappropriate communication methods, avoid memory copying, and meet the effect of inter-core communication
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] In the traditional system kernel communication method, the following two methods are mainly used:
[0050] Method 1, the master core and the slave core share memory, that is, allocate a piece of memory to the master core and the slave core, and both the master core and the slave core can access the memory; figure 2 As shown, one of the cores writes the data to be communicated into the memory, and the other core reads the data from the memory.
[0051] The second method is to communicate between cores with the help of network protocols; image 3 As shown, the master core and the slave core communicate with each other as independent network nodes. Both the master core system and the slave core system can create sockets for communication. If one party needs to send a message to the other party, it needs to send a message to the The socket writes data, and the other party can receive the sent message through its own socket.
[0052] The above two communication methods bo...
Embodiment 2
[0113] Such as Figure 8 As shown, this embodiment provides a terminal, which includes a processor 10, and a memory 20 connected to the processor 10, the memory 20 stores an inter-core communication program based on the AMP system, and the AMP-based system When the inter-core communication program is executed by the processor 10, it is used to realize the operation of the method for inter-core communication based on the AMP system as described in Embodiment 1; the details are as described above.
Embodiment 3
[0115] This embodiment provides a storage medium, wherein the storage medium stores an inter-core communication program based on the AMP system, and when the inter-core communication program based on the AMP system is executed by a processor, it is used to implement the The operation of the inter-core communication method based on the AMP system; the details are as described above.
[0116] In summary, the present invention enables the data sent by the physical network port to be received by itself by setting the physical network port of the CPU as a loopback mode; The receiving buffer of the port reads data, realizes the communication between the system cores, avoids the process of memory copy in the inter-core communication, and thus meets the requirements of the inter-core communication of the high-performance system.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


