fork download
  1. using System;
  2. using System.Threading;
  3.  
  4. public class Test
  5. {
  6. private static readonly int monitor_thingy_maybe = 0;
  7. public static void Main()
  8. {
  9. Monitor.Enter(monitor_thingy_maybe);
  10. try{
  11. Console.WriteLine("stuff");
  12. } finally {
  13. Monitor.Exit(monitor_thingy_maybe);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.02s 33880KB
stdin
Standard input is empty
stdout
stuff