From a3aadccef3b509bb1ec0599652e7e3d93a3e7ed9 Mon Sep 17 00:00:00 2001 From: HiveBeats Date: Wed, 12 Feb 2025 17:12:28 +0300 Subject: [PATCH] upd: threadpool --- Threading/Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Threading/Program.cs b/Threading/Program.cs index 232b9dd..5556fd0 100644 --- a/Threading/Program.cs +++ b/Threading/Program.cs @@ -2,8 +2,10 @@ using Threading; -//Console.WriteLine("Hello, World!"); +Console.WriteLine($"There are {ThreadPool.ThreadCount} threads in the pool."); -//await WaitThread.RunTaskBlocking(); +await WaitThread.RunTaskNonBlocking(); -await ShaRunner.RunMultiple(10000); \ No newline at end of file +Console.WriteLine($"There are {ThreadPool.ThreadCount} threads in the pool."); + +//await ShaRunner.RunMultiple(10000); \ No newline at end of file