问题描述
如何在顺序图或类似图中清楚地说明执行的多个线程?
How can you clearly illustrate multiple threads of execution in a sequence diagram or similar diagram?
我找不到任何清晰的例子.我看到的所有图表都用于说明单个线程.
I haven't been able to find any clear examples. All diagrams I see are used to illustrate a single thread.
更新:可以接受的答案是我所见过的最好的例子,但确实有很多不足之处.我最终在单独的序列图中说明了线程.我不确定序列图是否一定适用于多个线程.
Update: The accepted answer was the best example I saw but it does leave a fair bit to be desired. I ended up illustrating the threads in separate sequence diagrams. I'm not sure if the sequence diagram necessarily works for multiple threads.
推荐答案
下面是一个可能有用的图表,在左侧可以看到以下说明: http://sdedit.sourceforge.net/multithreading/example/index.html
Here is one diagram that may be useful, and on the left-hand side you can see the explanation:http://sdedit.sourceforge.net/multithreading/example/index.html
这篇关于如何在顺序图中说明多个线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!