Hi Navi,
Actually as far as i know you can synchronize a variable. U can do that placing the 'volatile' keyword before a variable's name. This is often used with variables of size bigger then a CPU
word size. For example normal PIII word size is 32bits, but variables of type long and double are 64bit vars. So when one
thread loads a part of a long var to the cpu(first 32bits), another thread should not be able to access that variable.