views:

130

answers:

2

What does phrase "synchronization with main memory" mean?

+5  A: 

When you have multiple threads each thread may keep a local copy of a variable's value. However the "official copy" of the value is kept in main memory. So what that phrase means is that any local copy of a variable's value will be made consistent with main memory (either reading to check for updates, or writing to publish updates made to the local copy).

M. Jessup