Is there an inituitive UML approach to depict threads

后端 未结 8 1337
独厮守ぢ
独厮守ぢ 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:52

    I don't know of a way, but using a sequence diagram does not seem entirely inappropriate, considering that a thread is in many languages implemented as a Thread (or similar) class.

    The most UML-compatible way would probably be to add an annotation of some sort indicating that the 'object' represents a thread.

提交回复
热议问题