UML Course

par, seq, and critical fragments

Go back

You can use the fragments par, seq, and critical to indicate blocks of code that are working differently than usual.

  • par (parallel) executes all blocs at the same time,
  • seq execute one block at a time,
  • and critical (sequence) is used to wrap blocs of code that must be run without errors, otherwise the program can't continue running.

Here is an example