标签:extern set 清除 wait system 垃圾 int hand kernel
1 [DllImport("kernel32.dll"),EntryPoint = "SetProcessWorkingSetSize"] 2 public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize,intMaxSize); 3 4 GC.Collect(); 5 GC.WaitForPendingFinalizers(); 6 if(Environment.OSVersion.Platform == PlatformID,Win32NT) 7 { 8 SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle,-1,-1); 9 }
标签:extern set 清除 wait system 垃圾 int hand kernel
原文地址:https://www.cnblogs.com/-Neo/p/10160700.html