Write a Java program as follows:1. Prompt the user on which action they want to take:a. Convert cubic feet to U.S. bushelsb. Convert miles to kilometersc. Determine graduation with honors titled. Exit program2. Programs at a minimum must have the following methods:a. Convert cubic feet method that gets cubic feet and returns U.S. bushels.b. Convert to kilometers method that gets miles and returns kilometersc. Determine graduation with honors title method that gets GPA and returnshonors title value (category)
Mutex locks and semaphores, as discussed in class, are different techniques to solve the race condition and to ensure an efficient synchronization
Mutex locks and semaphores, as discussed in class, are different techniques to solve the race condition and to ensure an efficient synchronization between cooperating threads and processes. you will use semaphores to solve a number of synchronization problems between cooperating threads. important to note that: • Semaphore, in literature, uses