cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Executing background tasks in Asp.Net
Executing background tasks in Asp.Net
Feb 23, 2021 at 11:38am UTC
coder777
(8444)
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.