Using Multicore Architectures in Cyber-Physical Systems