Book a Demo

Author Topic: Multiple Threads Model  (Read 6880 times)

Wen

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Multiple Threads Model
« on: September 15, 2005, 12:35:28 pm »
How do the EA 5.0 support the Multiple Threads Modelling?

Including
- Thread creating/suspend/resume/terminate
- Timeline to indicate the lifecycle of thread
- The relationship between multiple threads interaction, such as mutex, semaphore, event


Thanks

Wen

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Multiple Threads Model
« Reply #1 on: September 16, 2005, 07:31:22 am »
A couple of minutes' thoughts - no doubt others will weigh in with better comments ...

The Fork/Join bar indicates forking and rejoining of the flow of control in Analysis and Activity diagrams.

Any single thread only has a single flow of control, and so is representable in a standard Sequence diagram.

A mutex may be shown as a guard on a transition.
You may also use one of the interaction operators (e.g. 'critical') to show exclusive access on a Sequence diagram.

An event can be shown per se in Analysis and Activity (and State) diagrams (Send and Receive elements), and as a message in a sequence diagram.

A semaphore is just an implementation mechanism.

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Multiple Threads Model
« Reply #2 on: October 04, 2005, 08:23:07 am »
I don't know if this is a better comment  :-/ but it is another comment. :)

Threads and thread owners could be modeled on a structure diagram using the Sub-activity_of meronymy (i.e.; part/whole relationship).
Verbal Use Cases aren't worth the paper they are written upon.