5. Can you give an example of a common use case for semaphores in resource allocation or process synchronization?
a. Give your understanding of applying semaphores in practical scenarios such as managing access to limited resources or ensuring process synchronization.