Next-generation safety-critical systems using COTS based homogeneous multi-core processors and heterogeneous MPSoCS