fork download
  1. using System;
  2. using System.ComponentModel;
  3. using System.Threading;
  4.  
  5. namespace ThreadExample
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. BackgroundWorker bw = new BackgroundWorker();
  12. bw.DoWork += delegate(object sender, DoWorkEventArgs ea)
  13. {
  14. Console.WriteLine("ALLOU YOBA ETO TI?");
  15. Thread.Sleep(1000);
  16. };
  17. Console.ReadLine();
  18. }
  19. }
  20. }
Success #stdin #stdout 0.06s 23968KB
stdin
Standard input is empty
stdout
Standard output is empty