How are these addresses assigned to variables in code themselves? And how do L1/L2/L3 caches work in terms of updating the caches? If a particular variable is stored within each cache, would it take a sum of time to update them? Or are they able to update in sync? In addition to this, does each thread have it's own cache?
How are these addresses assigned to variables in code themselves? And how do L1/L2/L3 caches work in terms of updating the caches? If a particular variable is stored within each cache, would it take a sum of time to update them? Or are they able to update in sync? In addition to this, does each thread have it's own cache?