不断地会有许多线程需要这些锁保护的数据,所以可以想象,当要取得这个锁的时候,可能不得不等候其他人用完它。
The data protected by these locks is needed constantly by many threads, and you can expect that when you go to acquire this lock, you may have to wait until someone else is done with it.
用完后容器要安全地存放在小孩碰不到的地方。
在使用完它们后,必需显式地释放它们,以释放任何相关的资源。
When finished, they both need to be released explicitly to relinquish any associated resources.
应用推荐