Home >  Term: lock
lock

A data structure used to synchronize access to a shared resource. The most common use for a lock is in multithreaded programs where multiple threads need access to global data. Generally, only one thread can hold the lock at a time; by convention, this thread is the only one that can modify the data during this period. Some lock variants such as read-write locks allow multiple threads to hold a single lock under certain conditions. See also mutex lock

0 0

ผู้สร้าง

© 2024 CSOFT International, Ltd.