implementing atomic shared memories among multiple mobile phones