javamultithreadingumldiagramsequence-diagram

about sequence diagram for multi-threads java application


I want to draw sequence diagram for a multi-threads java application. Do you think a sequence diagram is Ok for a multi-threads java application(If so, I don't know how to do that as of now, any tutorials?)? Or should I draw multi-diagrams for multi-threads: one seqeunce diagram ties to a thread?


Solution

  • I'd say to draw a sequence diagram per thread.

    Trying to get multiple threads into a single sequence diagram doesn't make a whole lot of sense since events are occurring in parallel, not in sequence.