Power-awareness and smart-resource management in embedded computing systems