Guest User

Untitled

a guest
Nov 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. StartUp start = new StartUp(this);
  2. my = new Thread(start.Go);
  3. my.Start();
  4.  
  5. my.Abort();
  6.  
  7. public void Go ()
  8. {
  9. int max = work.max_thread;
  10. label1:
  11. if (work.keys.Count>0)
  12. {
  13. while (count_thread == 0 || count_thread < max)
  14. {
  15. Thread myThread = new Thread(web.InD);
  16.  
  17. myThread.Start();
  18. count_thread += 1;
  19. }
  20. Thread.Sleep(1000);
  21. goto label1;
  22. }
  23. }
Add Comment
Please, Sign In to add comment