The maximum amount of time that a thread can start?

I have a web service that creates a thread to process some data in the background. I saw the message "System.Threading.ThreadAbortException: Thread was aborted" in one of my logs where the thread was killed. I currently assume that the thread will run as long as it needs to complete the tasks it is working on, however, after searching googling exeception, I saw several messages mentioning an increase in the ExecutionTimeOut property of the application on the Internet. configuration file. My question is:

What is the maximum thread execution time in ASP.NET? Is this timeout unlimited or still associated with the application's ExecutionTimeOut property?

+3
source share
1 answer

This is a similar question.

How to find out who kills my threads

You can run it while the pool is running . If the pool that supports the thread reboots, it waits until all the threads exit, but the web service to start the pages stops working at the moment, and you have problems. Also, if you configured your pool, then overwrite the pool, if the thread does not stop after a while, it kills it.

In my program, one index thread worked for more than 26 hours, doing hard work with the database, and was included in a static function.

+3
source

Source: https://habr.com/ru/post/1744811/


All Articles