Pergunta de entrevista da empresa Airspan

Q: How would you guard shared memory in multi-tasking environment?