摘要 |
<p>A consistency processing method and device based on a multi-core processor. According to the number of second cores which share target shared data in a multi-core processor, consistency processing is performed on the target shared data by using a directory protocol or a snooping protocol, so that the consistency processing can be performed on the target shared data by using an appropriate protocol. In addition, because using the same protocol to perform the consistency processing on all the target shared data in the multi-core processor is avoided, one part of the shared data uses the snooping protocol, and the other part of the shared data uses the directory protocol, so that not only the directory entry occupied by the shared data which uses the directory protocol in a sparse directory is saved, but also broadcast messages produced by the shared data which uses the directory protocol when performing the consistency processing is saved compared with the prior art, thus the consistency processing efficiency is improved.</p> |