Automating Resource Allocation for the Cm* Multiprocessor