How to synchronize access to a global variable with very frequent reads / very rare writes? How to synchronize access to a global variable with very frequent reads / very rare writes? windows windows