Added sempahore to shared memory updates