Created
February 10, 2016 19:23
-
-
Save Fresh-Dev/2c4938f3e2a6060a40e9 to your computer and use it in GitHub Desktop.
System-Terminator Snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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