在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
对一个空方法的同步调用可能要比对一个空方法的非同步调用慢20倍,但我们多长时间才调用一次空方法呢?
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?
表格里面显示了所有配置的同步源(当然,你第一次打开这个界面的时候是空白的)。
The table shows all configured sync sources (of course, the table is empty if you start FinchSync for the first time).
如果同步化成功了,那么同步化开始的时间将会得到保存以在下一次运行期间使用,从而决定需要同步化哪些内容。
If synchronization was successful, the time at the beginning of the synchronization will be saved to be used during the next run to determine what needs to be synchronized.
这个想法是为了避免对除第一次调用外的所有调用都实行同步的昂贵代价。
The idea is to avoid the costly synchronization for all invocations of the method except the first.
因为三分之二的用户看见相同的页面,我们可以一次性同步生成页面,然后将页面作为静态HTML文件来提供给用户,这样会节约时间。
Because two out of three users see the same page, we could save time by generating a page asynchronously just once, and subsequently serving it as a static HTML file.
由于只有第一次调用执行了 //2 处的代码,而只有此行代码需要同步,因此就无需对后续调用使用同步。
Subsequent invocations do not require synchronization because the first invocation is the only invocation that executes the code at //2, which is the only line that requires synchronization.
客户机将保存最后一次成功同步的时间戳,并在请求已更新订单时使用它。
The client maintains the timestamp of the last successful sync and USES this when requesting the updated orders.
客户机从服务器请求自最后一次成功同步之后的所有已修改或创建的订单。
The client requests all orders from the server that have been modified or created since the last successful sync.
注意“发布到主干”并不是说我们仅把某个故事的代码直接拷贝到主干中,而是意味着所有的工作拷贝到主干中,做一次完整的同步。
Note that "release to trunk" doesn't mean that we are copying the code for one specific story to trunk. It means we are copying everything from work to trunk, i.e. doing a complete synchronization.
保存新的分类,在下一次运行同步之后,它会出现在WSRR中。
Save the new classification so that it will be in WSRR after the next synchronization run.
该方法将请求自最后一次成功同步之后的所有服务器更新,然后通过创建、取代或删除本地联系人来更新本地数据库。
This method requests all server updates since the last successful sync and then updates the local database by creating, replacing, or deleting local contacts.
最后一个记录的时间戳将用于下一次同步,以便找到新更新。
The last recorded timestamp is used in the next sync to find new updates.
通过使用修改记录,只加密(或删除)在上一次同步操作之后修改过的文件。
The itemized changes are used to only encrypt (or delete) files that have changed since the last synchronization.
这一次,DB 2引擎获得一个互斥捕捉,用于同步地移动数据,因此当锁超时没有发生时,其他任务将等待数据移动的完成。
At this time, an exclusive seize is acquired by the DB2 engine to synchronously move the data, so while a lock time-out will not occur, other jobs will wait for the move to complete.
手机地址簿多久同步一次?是否能够人为指定特定的同步时间?
How often is the cellphone's address book synchronized, and can someone specifically set what time this occurs?
小组发现锁相和不稳定重新同步周期的持续时间都遵守幂次定律分布。
The team found that the duration both of phase-locking and unstable resynchronisation periods followed a power-law distribution.
而被称为“同步向量”的设备能以一秒30次或更快的速度采样电压和电流——向电力公司和系统操作员提供有关电网健康状况的信息更为精确。
Devices called synchrophasors can sample voltage and current 30 times a second or faster-giving utilities and system operators a far more accurate view of the health of the grid.
然后,订单输入应用程序拉出自最后一次成功同步之后的所有更新。
The order entry application then pulls all updates since the last successful sync.
由于XSLT处理模型是“写一次读多次”的,同步逻辑可以变得更简单,使浏览树变得更快。
Because the XSLT processing model is "write-once, read-many," the synchronization logic can be much simpler, leading to faster navigation of the tree.
打电话是一次同步交互——他实时的在电话旁边。
The telephone call is a synchronous interaction-he is on the telephone in real time.
在每一次同步之前,都会创建额外的备份,在文件名后添加一个连续的数字并以' .bak '为后缀名。
Before any synchronization, an additional backup is created, adding a sequential backup number to the filename and using the suffix '.bak '.
“Scrumof Scrums”还涉及项目间的同步,这是一个每两天(或每周)一次的会议,来自每个团队的代表参加这个会议,以便在团队之间同步。
Inter-project synchronization is also covered with a "Scrum of Scrums", a bi-daily (or weekly) meeting with representatives from each team in order to synchronize across teams.
当资源与文件系统同步时,Eclipse将传递给插件一个delta,即上一次同步之后的变动列表。
When resources are synchronized with the file system, Eclipse passes the plug-in a delta, the list of changes since the last synchronization.
尽管如此,由于该方法是synchronized的,需要为该方法的每一次调用付出同步的代价,即使只有第一次调用需要同步。
However, because the method is synchronized, you pay the cost of synchronization for every invocation of the method, even though it is only required on the first invocation.
通过使用前面介绍的同步流程,我们将实际操作一次文件同步示例,该示例将说明MicrosoftSyncFramework如何枚举更改并最终应用项目数据。
Using the synchronization flow described in the previous section, we will walk through an example of how sync Framework enumerates changes and ultimately applies item data.
当第一次从ServiceRegistry执行同步后,RationalAssetManager具有分类系统的本地副本,因此您现在可以添加分类。
Rational Asset Manager has a local copy of the classification systems after the first synchronization from Service Registry, so you can now add classifications.
因此使用fence同步从本地存储向系统内存发起的一次数据传输使用的命令名应该是 MFC_PUTF_CMD。
So, the command name for a single transfer from the local store to system memory using fence synchronization would be MFC_PUTF_CMD.
这样做很简单,在你的第一次同步以后,PocketOutlook的分类就列出了所有可用的外界同步源的分类。
This should be easy, because all available categories for external sources are listed in Pocket Outlook's category selection dialog after the first synchronization.
1991年亚特兰蒂斯号第十次飞行中,于地球同步轨道上拍摄的亚洲上方的云层的形成。
A cloud forming over Asia is photographed as the space shuttle Atlantis orbits Earth on its 10th flight, in 1991.
应用推荐