Re: Launching a process from a thread.
What benefit does option #1 provide that option #2 doesn't? i.e. If the real work is done via a new process, then there is no benefit IMHO to create a separate thread in the first place, unless there's some other reason you didn't state above.
My recommendation is to use the simplest design that meets your requirements. Threads are overused/misused by lots of people and serve no purpose other than to create hard to find bugs when not implemented properly.
Hope that helps.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks