The difference between Server OS and Windows 10 for thread handling.

Nariyuki Takahashi 1 Reputation point
2021-07-27T10:38:30.513+00:00

I have Windows Service application built by C# on .NET 2.0 running on both Windows Server 2012 and Windows10 1909.
This Windows Service creates thread for launching other application like notepad for instance every hour.

I have seen this Service works fine on Windows Server but thread handle increases on Windows 10.
On Windows Server 2012, a number of thread handles stays around 30 and can be acceptable for a long-term operation.
On Windows 10, a number of thread handles increases every hour and reaches 1,000 within a month and eventually system hangs.

Someone knows the difference between Server OS and Windows10 for releasing handle resources?

This Windows Service application might not release handles correctly and manually.
Please leave aside resource leaking problem away at this time and I just would like to know the behavior of thread handling mechanism on these OS.

regards,

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,933 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.