Description: I have multiple threads (4-32). These threads can all access an array: int resources. Resources array contains different values (0-1023). There can only be one instance of a single resource(int). Each thread requires different number of resources, which are at some point returned back to the array. Threads can ask for resources more than ..