Is there an inituitive UML approach to depict threads

后端 未结 8 1364
独厮守ぢ
独厮守ぢ 2020-12-23 02:09

I\'m fond of using UML diagrams to describe my software. In the majority of cases the diagrams are for my own use and I use them for more involved pieces of code, interactio

8条回答
  •  太阳男子
    2020-12-23 02:46

    UML strongest point is depicting the static structure. If you use short-lived threads, I also don't see any easy way of diagramming them. Maybe you can find a solution by turning things around a bit: why do you use/need threads? What's the functionality they provide? If they interact with each other and follow some (message passing) API, drawing them as components might make sense.

提交回复
热议问题