Added processing rw semaphores