Modeling and Algorithms for Scalable and Energy Efficient Execution on Multicore Systems