Q:

Does the Workflow Invoke method use thread pool?

I am comparing the performance of pure C# code and WF(Workflow). I use the WorkflowInvoker.Invoke(new MyWorkflow(), ...);
I want to know if Invoke() uses the thread pool.
I guess pure C# code should in any sense be faster than Workflow, right? How is the workflow actually implemented? Still by C# code behind?

A:

I believe that behind the scenes it using a thread pool. The threading and execution are all managed by the Workflow Scheduler. It executes synchronously by default, but you can use BeginInvoke to run it asynchronously.

