不过,您应当注意到,在模拟运行期间,当某个路径到达了停止节点时,其他并行的路径可能尚未结束。
You should be aware, however, that some parallel paths may not have finished when the stop node is reached during a simulation run.
当使用并行路径时,每个路径必须合并或结束。
利用一个join节点重新联接并行分支,然后放置一个结束或停止节点,而不是分别结束每个并行分支。
Rejoin parallel branches with a join node and then place a single end or stop node, instead of ending parallel branches individually.
这两个并行分支在join处再次联接,从而结束并行执行。
The parallel branches are joined again in a join, which ends the parallel execution.
在不存在并行的情况下,停止节点与结束节点的效果完全一样,也就是说,它将终止到达它的分支。
Without parallelism, the stop node has exactly the same effect as the end node, i.e., it ends the single branch through which it was reached.
因为在单元测试中的并行任务通常很小同时也很少,在调度程序切换线程之前它们通常一直运行到结束,除非强迫它(也就是通过wait )。
Because concurrent tasks in unit tests are usually small and few, they usually run to completion before the scheduler switches the thread, unless it is forced to (say, by wait ).
在两个额外任务的并行网关执行之后,在通过一个结束事件完成流程之前,把书籍发送给客户,并通知客户到货的日期。
After the parallel gateway two additional tasks are executed that ship the book to the customer and inform the customer about the arrival date before the process is completed by an end event.
如何结束第一异步并行任务的节点?
所谓的并发是在需要第2代收集时,我们可以选择让第2代收集并行地执行或者暂停应用程序的所有线程直到收集结束。
The concurrent is that we can choose whether we do concurrent collection when it is gen 2 collection or suspend all the threads of application until the collection finish.
所谓的并发是在需要第2代收集时,我们可以选择让第2代收集并行地执行或者暂停应用程序的所有线程直到收集结束。
The concurrent is that we can choose whether we do concurrent collection when it is gen 2 collection or suspend all the threads of application until the collection finish.
应用推荐