ASP.NET Multithreadthing and timing out long-running operations -
I have a web service that needs to call for a database operation if the operation takes longer than 10 seconds So I need to get out of Operation and Rollback, I understand that it can only be done by preparing a thread to complete a long process and then it can end the thread if it takes longer is. Can you suggest how it can be done or I can be pointing to instances where such a situation is being managed. Formatting between asp.net and desktop applications is similar, can I use the threading concepts of a desktop application and apply it to a web service or there is no difference in it.
Thanks
I can tell you that this can be a serious headache . Finishing threads without your cooperation can create all types of undetermined and unpredictable behavior.
But if you really want to do this, then starting a background thread in ASP.NET is like a net desktop application. The meaning of John is about threading not being similar to a desktop application, how only ASPNET engine handles requests internally. You do not have to worry about that aspect (unless you have requested every request But do not stop).
Comments
Post a Comment