Created
August 7, 2013 00:42
-
-
Save kumpera/6170257 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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