An efficient on-line task allocation algorithm for QoS and energy efficiency in multicore multimedia platforms