Pre- and post-scheduling memory allocation strategies on MPSoCs