Cache Model

Notation

The notation OP(t,f,c) is defined to be the OP operation, performed by thread t on a field f which lies in cache line c. OP can be R (read), W (write) or A (access; read or write). A star (*) replacing any of t, f or c means any thread, field or cache line, respectively.
Unless otherwise noted, different names represent distinct elements. For example, W(t1,*,*) and W(t2,*,*) respectively represent a write by thread t1 and a write by thread t2, where t1 and t2 are distinct threads. Conversely, if two names are the same, they refer to the same element (thread, field or cache line).

True Sharing

Let r = R(t1,f,c) and consider the most recent W(t2,f,c) that happened before r (call it w). w is considered truly shared if there is no W(t1,f,c) between it and r.

False Sharing