P-SOCRATES: A parallel software framework for time-critical many-core systems