当前位置: 动力学知识库 > 问答 > 编程问答 >

Question reg. durable duplex and parallelism in workflow foundation 4

问题描述:

I've two workflows hosted as services and from workflow-1 I'm invoking the other one workflow-2 through durable duplex. The workflow-1 sends two requests two workflow-2 creating two instances and keeps on running. When workflow-2 instances done with their job they call back the same workflow-1 instance that is running through correlation. My question is what happens if the two workflow-2 instances invoke the workflow-1 at the same time. Will the calls executed one by one in a queue fashion or they get executed in different threads at the same time?

网友答案:

There is no multi threaded execution of a single workflow instance. The second call will be scheduled when it is received and start processing as soon as the scheduler gets to is.

分享给朋友:
您可能感兴趣的文章:
随机阅读: