WaitHandle 类

 WaitHandle 类,封装等待对共享资源的独占访问的操作系统特定的对象。

System.Threading.EventWaitHandle
System.Threading.Mutex
System.Threading.Semaphore

以上3个类均继承与WaitHandle 

WaitHandle.WaitOne 方法 (Int32)

Blocks the current thread until the current WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval.

 System.Threading.ManualResetEvent和System.Threading.AutoResetEvent均继承于System.Threading.EventWaitHandle

你可能感兴趣的:(.net,职场,休闲)