fork download
  1. using System.Threading;
  2. using System;
  3.  
  4. class Test{
  5. public static int Hoge(int n){ return n*2; }
  6. public static void Main(){
  7. int a = 10;
  8. Thread t = new Thread(delegate(){
  9. int r = Hoge(a);
  10. Console.Write(r);
  11. });
  12. t.Start();
  13. t.Join();
  14. }
  15. }
Success #stdin #stdout 0.03s 38024KB
stdin
Standard input is empty
stdout
20