Microsoft announced the Visual Studio Async CTP today (October 28, 2010) that introduces the async
and await
keywords into C#/VB for asynchronous m
How can I have an operation executed in parallel on the same thread?
You can't. Asynchrony is not "parallelism" or "concurrency". Asynchrony might be implemented with parallelism, or it might not be. It might be implemented by breaking up the work into small chunks, putting each chunk of work on a queue, and then executing each chunk of work whenever the thread happens to be not doing anything else.
I've got a whole series of articles on my blog about how all this stuff works; the one directly germane to this question will probably go up Thursday of next week. Watch
http://blogs.msdn.com/b/ericlippert/archive/tags/async/
for details.