Scratchpad Memory Management For Multicore Real-Time Embedded Systems