views:

44

answers:

1

What type of design diagram is recommended for capturing the high level/concept design of an application that has multiple threads? Any examples?

In my specific case (C# WPF app) I have a application that has:

  • a UI project & some class libraries (util classes broken out for reuse)
  • classes within (both UI and class library)
  • but also about 5 different threads (including UI thread) handling various things
+3  A: 

The UML Distilled book, which is a summary of the Booch/Rumbaugh/Jacobson book, says to use UML Activity Diagrams to model parallel tasks. At the end of Chapter 9: Activity Diagrams, the summary says:

The great strength of activity diagrams lies in the fact that they support and encourage parallel behavior. This makes them a great tool for workflow modeling and, in principle, for multithreaded programming.

Matt Davis