Vipul Kandivalikar
Vipul Kandivalikar

Reputation: 33

How do I show the same set of sequences spawned parallely in a sequence diagram?

Imagine that a program spawns multiple threads to do the same kind of sequences interacting with different versions of objects. How do I model this in a sequence diagram?

Say a thread is being replicated n number of times and this thread then performs some operations with objects A,B and C n number of times. How does one show it in a sequence diagram?

Upvotes: 2

Views: 313

Answers (1)

qwerty_so
qwerty_so

Reputation: 36313

Simply show the spawning of the sub-processes and nothing else in a first diagram. Then create a 2nd diagram showing the details for what happens in one of the threads. Now you only need some textual description (a note) which links both diagrams. Alternatively you can drop the detail diagram as Interaction Occurence onto the lifelines of the single threads.

enter image description here

Upvotes: 4

Related Questions