Use a layered approach when multiple locks are needed.
在需要多个锁时,使用分层方式。
Some idioms are easier to code and read when they use volatile variables instead of locks.
当使用volatile变量而非锁时,某些习惯用法(idiom)更加易于编码和阅读。
To find out what locks are held when the lock wait occurs, use the db2pd utility.
要找出发生锁等待时持有哪个锁,我们使用db 2 pd实用程序。
For these reasons, you should only use locks when you have code that must be executed as a unit.
综合上述原因,您只应在具有必须以单一单位执行的程序码时使用锁定。
For these reasons, you should only use locks when you have code that must be executed as a unit.
综合上述原因,您只应在具有必须以单一单位执行的程序码时使用锁定。
应用推荐