Do the following exercises from the textbook: 6.7 (10 points) 6.10 (20 points) 6.17 (20 points) 6.18 (20 points) Write your solution using semaphores.