Is it possible to make a copy of a thread in .Net? Kind of like a fork() but on just a thread instead of the whole process?
I have a recursive algorithm, and for testing purposes I wan’t to evaluate several different branches that the code can take. The easiest way would be to clone the thread at the decision point in the code and let each thread continue in a different branch.
My research didn’t turn up any answers, and the lack of responses here leads me to the conclusion that it can’t be done.
So no, there is no method to copy/fork a thread in .Net.