Executing background tasks in Asp.Net

When the call is blocking i.e. doesn't participate in the async process it doesn't make sense to start an async task.

What you can do is starting an independent thread. See:

https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread?view=net-5.0
https://www.tutorialspoint.com/asp.net/asp.net_multi_threading.htm

You need to take care of shared resources. And you need to wait for all started threads to end at least at the end of the program.
Topic archived. No new replies allowed.