Untitled

 avatar
user_2299906
plain_text
2 years ago
404 B
2
Indexable
Never
            Task tk1 = new Task(() =>
            {
                while (true)
                {
                    Task.Delay(10000).Wait();
                    GC.Collect();
                    GC.WaitForPendingFinalizers();
                    SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1);
                }
            }); tk1.Start();