If in doubt, consider a synchronized wrapper.
如果情况不确定,考虑使用同步包装。
Why does a MessageBox not block the Application on a synchronized thread?
为什么一个弹出窗口不阻止应用程序在一个同步线程呢?
To illustrate an offline application in action, a synchronized contacts sample is provided.
为了演示使用中的脱机应用程序,这里给出了一个同步的联系人示例。
The compiler is allowed to move statements into a synchronized block — just not out of it.
编译器可以把语句移入synchronized块——而不仅仅是把语句移出。
When one thread is executing a synchronized block, any thread waiting to enter that block is stalled.
当一个线程正在执行一个同步块时,任何等待进入该块的线程都将被阻塞。
Asynchronous message blocks hold messages and enable agents to communicate in a synchronized manner.
异步消息块存放消息,并使通信能够以同步的方式进行通信。
For example, suppose an object provides a synchronized method that often takes a long time to return.
比如,假如有一个同步方法通常需要很长时间才返回。
The two groups' processes may not be sufficiently integrated to provide a synchronized working environment.
两个组的过程很可能无法集成以提供一个同步工作的环境。
You're doing all of the work in a synchronized method, which halts the main thread while it's running.
你正在做的所有的工作在一个同步的方法,停止了主线程的运行。
But even with a synchronized Map, a thread could sneak in during this process and seize control of the Map.
但是即使有一个同步的Map,线程还是可以在这个过程中潜入,然后夺取对Map的控制权。
The longer a synchronized code block requires for execution, the longer other threads wait to enter that block.
同步代码块所需的执行时间越长,其他线程等待进入该代码块的时间就越长。
In Listing 6, the loop is out of a synchronized block, so it can be executed by several threads in parallel.
在清单6中,循环被移出同步语句,所以它可能由多个线程并行执行。
This paper offers a new method for strain-gage measurements in which a synchronized electrical pulse is used.
本文提出了对电阻应变片采用脉冲加电来测量静态应变的方案。
Methods that are not synchronized may still execute at any time, even if a synchronized method is in progress.
如果一个同步方法正在执行中,其他的非同步方法也可以在任何时候执行。
A synchronized towing system with constant tension composed of AC Frequency conversion speed regulator is introduced.
本文介绍一种由交流变频调速器构成的恒张力同步拖动系统,应用于圆筒针织物冷轧堆设备上。
Multiple instances can be created even if you add a synchronized (this) block to the constructor call, as in Listing 4.
即使你为构造方法调用加上同步控制,多个实例的现象也会出现,见清单4。
Do code path analysis to see if there is a synchronized block in the code that is blocking requests to execute concurrently.
进行代码路径分析,以查看阻塞请求并发执行的代码中是否存在同步阻塞。
One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.
一个著名的资料来源就曾经引证说一个同步的方法调用比一个非同步的方法调用慢50倍。
A lock is acquired on entry to a synchronized method or block, and released on exit, even if the exit occurs due to an exception.
当进入一个同步方法或同步块的时候必须获得该锁,而退出的时候(即使是异常退出)必须释放这个锁。
XML Marker is an XML editor that uses a synchronized table-tree and text display to show you a hierarchal and a tabular view of your XML data.
XMLMarker是一个 XML编辑器,它使用一个同步的表树和文本显示,来向您展示 XML数据的层次视图和表视图。
Information is transported through a synchronized path, so the pulse justification and the frame justification are the mostly adopted methods.
信息传输需要在同步环境下进行,码速调整技术和帧调整技术是创造同步环境经常采用的两种技术。
With a synchronized stowage coordination system, you see how changes affect capacity, loading, and discharge at all ports in a vessel's voyage.
凭借此同步配载协调系统,您能够即时掌握变化对航程途中各港口的吞吐容量、装载和卸载负荷的影响。
A synchronized call to an empty method may be 20 times slower than an unsynchronized call to an empty method, but how often do we call empty methods?
对一个空方法的同步调用可能要比对一个空方法的非同步调用慢20倍,但我们多长时间才调用一次空方法呢?
In light of our observation it seems as if we should be able to optimize access in the case where a thread is looping over a synchronized block of code.
根据我们的观察,我们似乎需要对一些锁的访问进行优化,比如线程执行的同步块代码在一个循环体中。
It compares the cost of a synchronized method call to an equivalent unsynchronized one in several different cases and on several different platforms and JVMs.
它列举了一些不同的实例,不同的平台和不同的jvm下一个同步的方法调用相对于一个非同步的方法调用的损失。
Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
When a thread exits a synchronized block as part of releasing the associated monitor, the JMM requires that the local processor cache be flushed to main memory.
当线程为释放相关监视器而退出一个同步块时,J MM要求本地处理器缓冲刷新到主存中。
When a thread invokes a synchronized method, it automatically acquires the intrinsic lock for that method's object and releases it when the method returns.
当一个线程调用一个同步方法时,它自动请求此方法的内部锁,并在方法返回时释放。
When a thread invokes a synchronized method, it automatically acquires the intrinsic lock for that method's object and releases it when the method returns.
当一个线程调用一个同步方法时,它自动请求此方法的内部锁,并在方法返回时释放。
应用推荐