2 using System
.Diagnostics
;
6 static int iterations
= 512;
8 public static void Main(string[] args
) {
10 iterations
= Int32
.Parse (args
[0]);
12 // Spawn threads without waiting for them to exit
13 for (int i
= 0; i
< iterations
; i
++) {
15 //Console.WriteLine("Starting: " + i.ToString());
16 using (var p
= System
.Diagnostics
.Process
.Start("echo -n")) {
17 System
.Threading
.Thread
.Sleep(10);
21 // Spawn threads and wait for them to exit
22 for (int i
= 0; i
< iterations
; i
++) {
24 //Console.WriteLine("Starting: " + i.ToString());
25 using (var p
= System
.Diagnostics
.Process
.Start("echo -n")) {