How to illustrate an interrupt-driven process?

前端 未结 3 1397
梦如初夏
梦如初夏 2021-02-15 16:53

This question is related to diagraming a software process. As an electrical engineer, much of the software I do is for embedded micro-controllers. In school, we learned to illus

3条回答
  •  盖世英雄少女心
    2021-02-15 17:00

    Use UML class diagrams for showing data structures. Use sequence diagrams to show interactions between classes and interrupt service routines (showing function calls only). Use activity diagrams to show how interrupts interact with processes (signals are good for this). An activity diagram can also be used to show the process of receiving data, parsing it, and dispatching it. This can also be represented in a static view by a package diagram where the command handler is in one package and the command parser is in another, connected by a dependency line. Use cases are good for a high level view of functionality.

    The main point is that UML supports many different views (static, dynamic, logical, deployment) into your system. Don't try to express everything at once.

    The diagram below shows an example of an interrupt to a process.

    Example interrupt (UML Signal)

提交回复
热议问题