I have an assignment in which I have 2 threads that use a shared singleton class instance the stores a list of resources. when a thread receives an event he tries to acquire