Does the .NET service have thread flexibility?

In connection with questions such as this and this about ASP.NET thread adaptability: can a Windows service write in C # demonstrate the same thread flexibility behavior as ASP.NET? Or is this thread flexibility more than an IIS feature than .NET?

Indeed, what I need, can I be sure that the flow control in the Windows service is completely dependent on the service itself? Or can .NET threads be in long-term maintenance if he wants to do this?

+4
source share
3 answers

No. Windows is not managed by the IIS pipeline, and any threads created must be created by the service code itself.

+5
source

IIS. Windows .

+3

Thread flexibility is a property of the interaction of the thread pool mechanism with asynchronous I / O. You can implement a similar mechanism yourself, but this is not automatic behavior.

+2
source

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


All Articles