.


:




:

































 

 

 

 


Windows.




Windows .

    • . , , . , , , , .
    • (mutex). , . , .
    • - (event). , .
    • (critical section). , .

, , , .

CreateSemaphore. , , . 1, . , - null. WaitForSingleObject . . INFINITE, . , , . ReleaseSemaphore() , .

mutex CreateMutex(), null . CloseHandle(). mutex, OpenMutex(). , . , , , WaitForSingleObject WaitForMultipleObjects. mutex ReleaseMutex().

CreateEvent. null . WaitForSingleObject, . . SetEvent , WaitForSingleObject, . ResetEvent.

CRITICAL_SECTION. InitializeCriticalSection(). DeleteCriticalSection(). , . EnterCriticalSection(), LeaveCriticalSection().





:


: 2016-12-06; !; : 1101 |


:

:

, .
==> ...

1820 - | 1701 -


© 2015-2024 lektsii.org - -

: 0.027 .