Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. // Eta shtuka gruzit cpu na 99%
  2. // с:
  3.  
  4. namespace KEK
  5. {
  6.     class Program
  7.     {
  8.         void main(string[] args)
  9.         {
  10.             KEK_MANEGER.InitializePizdec();
  11.         }
  12.     }
  13.  
  14.     class KEK_MANEGER
  15.     {
  16.         static void MinusProcessor()
  17.         {
  18.             while (true)
  19.             {
  20.                 int i = 0;
  21.                 if (i > 0) { }
  22.             }
  23.         }
  24.  
  25.         static void InitializePizdec()
  26.         {
  27.             System.Threading.Thread[] threads = new System.Threading.Thread[12];
  28.  
  29.             for (int i = 0; i < threads.Length; i++)
  30.             {
  31.                 threads[i] = new System.Threading.Thread(MinusProcessor);
  32.                 threads[i].Start();
  33.             }
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement