Lock (computer Science)
In computer science, a lock is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy.
Other related articles:
... See also Barrier computer science)Language support for locking depends on the language used There is no API to handle mutexes in the ISO/IEC standard for C ... The current ISO C+ standard,C+11,supports threading facilities ... The OpenMP standard is supported by some compilers,and this provides critical sections to be specified using pragmas ...
Famous quotes containing the word lock:
“There warnt anybody at the church, except maybe a hog or two, for there warnt any lock on the door, and hogs likes a puncheon floor in summertime because its cool. If you notice, most folks dont go to church only when theyve got to; but a hog is different.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)