Airspan interview question

Q: There are 2 asynchronous RT processes accessing shared memory. How would you guard that memory?