A constant used to specify an infinite waiting period, for threading methods that accept an int parameter.
Value: -1
For threading methods that accept a millisecondsTimeout parameter, such as Thread.Sleep(int) and Thread.Join(int), this value is used to suspend the thread indefinitely. However, in most cases, we recommend that you use other System.Threading classes such as System.Threading.Mutex, System.Threading.Monitor, System.Threading.EventWaitHandle, or System.Threading.Semaphore instead to sychronize threads or manage resources.