In my sequence diagram I am using par2 to show the parallel execution of 2 loops in different CPU cores, but the 2 loop boxes are overlapping, and the graphical result is poor, and hard to read:
@startuml
box "group 1" #lightblue
Participant P1
Participant P2
end box
' I would like to insert an horizontal minimu space constraint here
box "group 2" #lightgreen
Participant P3
Participant P4
end box
par2
loop forever
P1 -> P2
P2 --> P1
end
else
loop forever
P3 -> P4
P4 --> P3
end
end
@enduml