March 2003
Intermediate to advanced
656 pages
39h 30m
English
acquire
s.acquire(wait=True)When s’s state is greater
than 0, acquire decrements the
state by 1 and returns True.
When s’s state is
0 and wait is
True, acquire suspends the
calling thread and waits until some other thread calls
s
.release. When
s’s state is
0 and wait is
False, acquire immediately
returns False.
Read now
Unlock full access