I have a GUI window in my application, where user does his stuff, and in this window he can trigger a function which will start converting couple of files. Since this conversion takes eons, I can't simply execute it in the same thread, since the the entire window would be frozen, until the conversion code let's it go, after it finishes.
What is the best solution here? Should I just execute the conversion code in a separate thread?
Something like TaskFactory.StartNew? Is that the best path to follow? (I like this solution, but it would be nice, if I could set the task priority to low so other apps in the PC won't lag during the conversion)