CPC G06F 13/28 (2013.01) [G06F 2213/28 (2013.01)] | 4 Claims |
1. An inter-core communication method for a multi-core processing system, the method being applied in a receiving core and comprising:
reading from a shared memory a message written by a transmitting core, and parsing the message to obtain a source address of and a data length of data to be transmitted;
performing storage space allocation based on the data length to obtain a destination address of the data to be transmitted; and
transmitting the data to be transmitted from a storage space corresponding to the source address to a storage space corresponding to the destination address by means of Direct Memory Access (DMA), based on the source address, the data length, and the destination address;
wherein the method further comprising:
subsequent to reading from the shared memory the message written by the transmitting core:
recording second position information of a message currently being read from the shared memory, such that the transmitting core writes a message into the shared memory based on the second position information and first position information of a message currently being written into the shared memory.
|