#18 implementing a semaphore like fucntion in tu=omasulo and applying it to RSs