The code change in this example did not involve any synchronization and so there are no issues with the locking behavior of the application.
本例中的这个代码更改没有涉及任何同步,因此也没有产生应用程序的锁定行为问题。
However, if reads greatly outnumber modifications, you can combine intrinsic locking and volatile variables to reduce the cost on the common code path.
然而,如果读操作远远超过写操作,您可以结合使用内部锁和volatile变量来减少公共代码路径的开销。
The snapshots are viewed using lock profiler in Terracotta administration console to find deadlocks and other locking hotspots in the application code.
我们可以利用Terracotta管理控制台的锁分析器(lock profiler)查看这些快照以找出应用中的死锁和其他可能发生死锁的地方。
If this code is interrupted by another thread after executing line C3 but before completing the constructor, double-checked locking fails.
如果此代码在执行c 3行后且在完成该构造函数前被另一个线程中断,则双重检查锁定就会失败。
Because I designed it for a maximum of one simultaneous user, I felt I could dispense with a lot of the file-locking code that might otherwise be necessary.
因为我的设计目标是只针对一个并发用户,我觉得可以省略许多似乎不必要的文件锁定代码。
These facts make a code failure due to double-checked locking very difficult to track down.
这些事实将导致代码失败,原因是双重检查锁定难于跟踪。
At first glance, this seems to take the same two server round-trips as our earlier cooperative locking code.
粗略一看,这好像使用了两次服务器循环,和前面的合作锁代码一样。
The code implements the file locking mechanism in Eucalyptus.
代码实现了Eucalyptus中的文件锁定机制。
Now you know how to install Eucalyptus in a cluster and how to modify the Walrus source code to implement or improve the file-sharing and file-locking mechanism on the cloud.
现在您已了解如何在集群中安装Eucalyptus,以及如何修改Walrus源代码来实现或改进云中的文件共享和文件锁定机制。
Learn how to modify the Walrus source code, and how to recompile and run it, in order to improve the file-sharing and file-locking mechanisms in the Eucalyptus environment.
学习如何修改walrus源代码,以及如何重编译及运行,以改进Eucalyptus环境中的文件共享和文件锁定机制。
Given that the current double-checked locking code does not work, I've put together another version of the code, shown in Listing 7, to try to prevent the out-of-order write problem you just saw.
考虑到当前的双重检查锁定不起作用,我加入了另一个版本的代码,如清单7所示,从而防止您刚才看到的无序写入问题。
Replaced touch panel locking code.
触摸屏代替锁码。
With ADL, you can secure your phone by locking it up with a secret code and stay confident that your phone will not be accessed by others even if it is lost or stolen.
与日常生活,您可以保护您的手机通过锁定它与一个秘密代码,保持信心,您的手机将无法访问其他人即使丢失或被盗。
That is why proper locking is required even if you never expect your code to run on a multiprocessor machine.
这也就解释了为什么你即使不想让你的代码运行在多处理器机器上也需要正确地使用锁定机制的原因。
Slip correlative taking and delay locked loop are used for the synchronization, taking, locking of PN code.
采用滑动相关捕获和延迟锁定环实现伪码的同步、捕获和跟踪;
Similarly locking on a string can be problematic since any other code in the process using the same string will share the same lock.
同样地,字串锁定可能会有问题,因为使用相同字串的处理序中的任何其他程序码将会共用相同的锁定。
Similarly locking on a string can be problematic since any other code in the process using the same string will share the same lock.
同样地,字串锁定可能会有问题,因为使用相同字串的处理序中的任何其他程序码将会共用相同的锁定。
应用推荐