X here need to be declared as private, else each thread are sharing the same variable which... well.... don't work well .. :/
X here need to be declared as private, else each thread are sharing the same variable which... well.... don't work well .. :/