Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3.  
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. // dispara uma nova thread para executar
  9. Thread t = new Thread(NovaThread);
  10. t.Start();
  11.  
  12. Console.WriteLine("Thread Principal");
  13. }
  14.  
  15. static void NovaThread()
  16. {
  17. Console.WriteLine("Outra Thread");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement