, , , . , - . . , .
public Mutex(bool initiallyOwned, string )
public Mutex(bool initiallyOwned, string , out bool createdNew)
. ini tiallyOwned
true, . , false. createdNew true, , false, . Mutex, MutexSecurity. .
: , , Wait One () ReleaseMutex (), . , Wait One () , . Wait One () ReleaseMutex () .
, , , . . , . , . , . . , .
, , . , , . , . , , . , . . , , , .
, . , , . , , , . .
|
|
System. Threading. Semaphore, . :
public Semaphore(int initialCount, int maximumCount)
initialCount , .. ; maximumCount , .. , .
, . WaitOne () . Semaphore WaitHandle. WaitOne () , , . , , .