Previous | Next --- Slide 50 of 64
Back to Lecture Thumbnails
aznshodan

Can someone explain to me what a machine word granularity and object granularity mean? This is what i have so far:

  1. Cache line granularity: If two threads are accessing the same cache line and if there is write-write/read-write conflict then abort one of them. otherwise move on.

  2. Machine word Granularity: If two threads are accessing the same mem address(?) and if there is write-write/read-write conflict then abort; otherwise continue.

  3. object granularity: ??

afa4

@aznshodan I think if two threads are accessing (read-write / write-write) a huge array (object) but different elements of it, an object granularity based conflict detection will result in aborting one of the transaction (false-sharing)

I have the same understanding of cache-line and machine-word granularities as yours.