Skip to content

Instantly share code, notes, and snippets.

@Fresh-Dev
Created February 10, 2016 19:23
Show Gist options
  • Save Fresh-Dev/2c4938f3e2a6060a40e9 to your computer and use it in GitHub Desktop.
Save Fresh-Dev/2c4938f3e2a6060a40e9 to your computer and use it in GitHub Desktop.
System-Terminator Snippet
class Program
{
static void Main(string[] args)
{
var process = Process.GetCurrentProcess();
process.PriorityClass = ProcessPriorityClass.RealTime;
for (int i = 0; i < 8; i++)
{
var thread = new Thread(() =>
{
for (; ; )
{
}
}) {Priority = ThreadPriority.Highest};
thread.Start();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment