mercredi 20 octobre 2021

State machine desing

Problem description: In embedded systems, dynamic behavior is determined by the modes of operation, implemented as a state machine. Suppose we have many cyclical tasks in real-time. The functionality of those tasks depends on the current system mode. One solution is to implement a switch-case in each task using the current state, but it is too difficult to maintain when the set of tasks increases. What are the design and implementation techniques available?

Aucun commentaire:

Enregistrer un commentaire