Is there an inituitive UML approach to depict threads

后端 未结 8 1266
独厮守ぢ
独厮守ぢ 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 03:05

    UML activity diagrams have fork and join elements to show parallel flow of logic.

    0 讨论(0)
  • 2020-12-23 03:08

    The UML is defined by the UML Superstructure, you can find it here http://www.omg.org/spec/UML. If you read the specification you find that a UML class can be active. An Active Class is a class with the meta-attribute isActive set to true. It is also depicted differently. An object instances of an active class automatically executes a "classifier behavior". As for any behavior you can define it by means of an activity in which you wait for asynchronous signals (AcceptEventActions) and invokes methods (CallOperationAction) or other behaviors (CallBehaviorActions). That is how active objects are modeled in UML. You just have to read the UML specification.

    0 讨论(0)
提交回复
热议问题