X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=doc%2Freference.texi;h=3b28d3b6dc122cbef38a03eb23978464d69ce934;hp=c44988cf810b6e59a5f0d715b20fdd23f3779697;hb=18be77ca58ad1a721161bbd277a02d78828689c8;hpb=8bc47e15da36b072924f8281688ea92935ae1c18 diff --git a/doc/reference.texi b/doc/reference.texi index c44988c..3b28d3b 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -683,7 +683,7 @@ implementation in @file{lib/kernel/list.c}. A @dfn{lock} is like a semaphore with an initial value of 1 (@pxref{Semaphores}). A lock's equivalent of ``up'' is called -``acquire'', and the ``down'' operation is called ``release''. +``release'', and the ``down'' operation is called ``acquire''. Compared to a semaphore, a lock has one added restriction: only the thread that acquires a lock, called the lock's ``owner'', is allowed to