Domanda di colloquio di Ciena

How would you code a watchdog timer?