Self-adaptive admission control policies for resource-sharing systems