Mission-oriented replication of periodic tasks in real-time distributed systems