Pregunta de entrevista de Amazon

how to control shared memory access problem?