The invention provides a multi-core processor
cache coherence communication
system based on FreeRTOS, and relates to the field of computer embedded systems, and the
system comprises an
application layer which comprises a plurality of tasks and is used for completing cross-core data interaction; the
cache consistency communication layer is in communication connection with the
application layer and the kernel layer; the
cache consistency communication layer comprises a
shared memory management module, a cache synchronization strategy scheduling module and a communication component synchronization
adaptation module; the
shared memory management module is used for tracking the cache state of the
shared memory; the cache synchronization strategy scheduling module is used for selecting an optimal cache synchronization strategy according to the task and is linked with the task scheduler; the communication component synchronization
adaptation module is used for identifying a corresponding shared
memory block; the kernel layer comprises a memory manager, a task scheduler and a communication component; the communication component comprises queues, semaphores and event groups. According to the scheme, the problem of cache inconsistency is solved, and the
correctness of cross-core data is ensured.