Main thread's execution context
<p>I need ideas on the following -</p>

<p>In the main thread at some point of execution say Point A(sequential logic), I need to remember the state of execution and delegate the execution of some other logic onto another thread, and let the main thread handle the UI events etc. When the delegated logic completes on the other thread then the flow of execution should continue from the point A and should recollect the entire execution context and proceed as if it never paused there.</p>

<p>Regards,
Sunil Phani Manne</p>
