Operating system integrated energy aware scratchpad allocation strategies for multiprocess applications