摘要 |
<p>Disclosed are a method and device for realizing the cache consistency among multiple cores. The method comprises: a certain processor core initiating a consistency request to a cache processing unit corresponding thereto; when a query result of the cache processing unit is missing or is required to be sent to other processor cores, querying the cache processing units of other processor cores through a consistency bus unit; according to a type of the consistency request and the query result corresponding to the cache processing units of other processor cores, sending the consistency request to a corresponding processor core; and triggering the corresponding processor core to execute the consistency request, and returning a response to the processor core which initiates the consistency request after the execution is completed. By initiating the consistency request to other processor cores before the processor core executes an operation, after data or a response returned by the corresponding processor core is obtained, the operation is executed, thereby effectively avoiding the problem of Cache inconsistency among multiple cores.</p> |