title: Running long-time background task in a separate background thread vs process
body: <p>I'm building a ASP.NET Core web application and I need to run some complex tasks that takes quite some time to finish up, from seconds to minutes. The user don't have to wait till the complete task runs but someway I need to update the UI with the progress of the task. I'm thinking of two ways to handle this in the ASP.NET server: one is using a background thread and another is using a separate process. I don't want the long running task hamper the web application in any way. Is using a thread is a safe option compared to a process? or running these tasks in a separate process is a better and efficient way?</p>