Efficient Resource Allocation for Parallel and Distributed Systems