Efficient Thermal Management For Multiprocessor Systems