I met two cases in final exam. First case memory fetch information from location like: 0x101,0x102,0x101,0x102,0x101,0x102,0x101,0x102.
Second case memory fetch information from location like: 0x101,0x101,0x101,0x101,0x111,0x109,0x102,0x100.
The question is in which case it use temporal locality.
Here is my point: In the first case. I think in reality when we access 0x101,the memory will also access 0x102 into cache. Then in the following six fetch, there will be no penalty. That means in this case we only have one cache miss. Here I think we benefit from both temporal locality and spatial locality. while in the second case in the first four step we benefit from temporal locality but in the following step we do not have temporal locality. Actually this leads to more cache miss than first choice. I think both are right but we can only have one answer so I feel confused.