![]() When a processor wants to modify a data block in its cache it has to confirm that it is an exclusive owner of that data block.Initially, the memory is the owner of all the data blocks and it retains that ownership when a processor reads a data block and sites its copy in its cache.This protocol permits the processor to modify a data block only if it acquires ownership. The processor modifying the data block broadcast request to other processors present in the system to invalidate the copies of the same data block in their caches.Whenever a processor modifies a data block present in its cache memory, it immediately updates the same data block in the main memory.Now, let us see the second version where the inconsistent copies in other processors caches are invalidated. If yes, the content of that data block is modified as specified in broadcasted data else the broadcasted data is discarded. When the other processors in the system receive the broadcasted modified data they verify whether they have the same data block present in their cache.So the processor that has modified the shared data block, broadcast the modified data to all the other processors in the system. Now other processors with the same data block present in their cache will have inconsistent data. ![]() Whenever a processor modifies a shared data block in its cache, it immediately updates the same data block in the main memory. ![]() Let us understand the first version where the inconsistent copies of shared data are updated in other caches. The write-through protocols have two versions and those are: So, the main memory here always has consistent data. In write-through protocol when a processor modifies a data block in its cache, it immediately updates the main memory with the new copy of the same data block. If it wants to read or write/modify this data block it has to send a request to the owner of the same data block.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |