// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Threading; class WaitAllEx { private WaitHandle[] wh; private ManualResetEvent myMRE; private WaitAllEx() { myMRE = new ManualResetEvent(false); } public static int Main(string[] args) { // Check number of args if(args.Length != 2) { Console.WriteLine("USAGE: WaitAllEx6a /size: /pos:"); return -1; } // Get the args int iPos=-1, iSize = -1;; for(int i=0;i