.


:




:

































 

 

 

 


, SharedRes. Count , , , .




, , , . , - . . , .

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 () , , . , , .





:


: 2016-12-03; !; : 345 |


:

:

.
==> ...

1805 - | 1664 -


© 2015-2024 lektsii.org - -

: 0.011 .