Can you recommend a good series of articles or, preferably, a book on how to get started with threads in general and in C # in particular? First of all, I am looking for the use of threads in console applications and in ASP.Net applications.
I understand only the very basics of flows and I know that "here are dragons", so I want to get a good grounding before I start using them.
Things that interest me are things like the concept of a thread, how you control its size, how you choose for things that need to be queued until the thread is available, in addition to starting a new thread etc. In addition, I understand that IIS has many built-in threads, so everything that explains how to work with threads in ASP.Net in IIS and how it differs from stream processing in the C # applicationicaion console is interesting.
My intended use includes things like:
The user does something on the ASP.Net page, because of which my server-side code must connect to another system and perform lengthy operations, so I want to quickly return control to the user, activating this action to another thread. The user can follow the progress through AJAX or just leave - the Internet does not have statelessness in the end :)
Using Fire and Forget patterns (there are a lot of code examples there, I want to learn more about how they work)
thanks
Frans
source share