Solving the Reader/Writer problem using semaphores in XINU Operating System