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 example: visit customer found when customers to use the software operating comparative numerous locks, help put forward the improvement scheme.
例如:定期回访客户时,发现客户使用上软件操作比较众多的锁,帮助提出改进计划。
For example: visit customer found when customers to use the software operating comparative numerous locks, help put forward the improvement scheme.
例如:定期回访客户时,发现客户使用上软件操作比较众多的锁,帮助提出改进计划。
应用推荐