Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created August 7, 2013 00:42
Show Gist options
  • Select an option

  • Save kumpera/6170257 to your computer and use it in GitHub Desktop.

Select an option

Save kumpera/6170257 to your computer and use it in GitHub Desktop.
using System;
using System.Threading;
using System.Threading.Tasks;
class Driver {
static void Main () {
Task.Run (() => {
while (true) {
typeof (Driver).IsInstanceOfType (typeof (Driver));
}
});
for (int i = 0; i < 10; ++i) {
GC.Collect ();
Console.WriteLine ("GC DONE");
Thread.Sleep (100);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment