4 // http://bugzilla.ximian.com/show_bug.cgi?id=72740
8 using System
.Threading
;
11 static int loops
= 20;
12 static int threads
= 100;
14 static void worker () {
15 // This hits alot of runtime code.
17 typeof (object).Assembly
.GetTypes ();
21 Thread
[] ta
= new Thread
[threads
];
22 for (int i
= 0; i
< threads
; ++i
) {
23 ta
[i
] = new Thread (new ThreadStart (worker
));
26 for (int i
= 0; i
< threads
; ++i
) {
30 static void Main (string[] args
) {
32 loops
= int.Parse (args
[0]);
34 threads
= int.Parse (args
[1]);
35 for (int i
= 0; i
< loops
; ++i
) {