question

NariyukiTakahashi-4248 avatar image
0 Votes"
NariyukiTakahashi-4248 asked NariyukiTakahashi-4248 commented

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

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,

dotnet-csharp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NariyukiTakahashi-4248
This problem is beyond the scope of c# but belongs to the Windows operating system.
I suggest you go to the Microsoft Community to ask your questions to get better support.

1 Vote 1 ·

Dear @TimonYang-MSFT ,

Thank you for your comment, sir.
I will ask the community.

regards,

0 Votes 0 ·

0 Answers