Some concurrency bugs won't break your code, but they can lead to poor application performance. Consider the synchronized block in Listing 5
有一些并发缺陷有时不会使代码出错,但是它们可能会降低应用程序的性能。
It is critical that your assumptions be carefully documented and these patterns strongly encapsulated because very small changes can break your code!
因此,必须对假设的条件仔细证明,并且这些模式被严格地封装了起来,因为即使非常小的更改也会损坏您的代码!
It is a bad idea to rely on this kind of security, however, because skilled attackers are still going to be able to break your code if it wasn't designed properly in the first place.
但是,依靠这种安全性不是个好主意,因为如果程序码首先设计有问题的话,技术高超的攻击者仍能破坏它。
应用推荐