implementing atomic shared memories among mobile phones