Reduced network latency using a background thread.
使用后台线程降低了网络延迟。
A managed thread is either a background thread or a foreground thread.
托管线程或者是后台线程,或者是前台线程。
When finished, the background thread deletes the Artist from the table.
在完成后,后台线程删除表中的艺术家。
Thus, addStock will execute on a background thread, not on the main UI thread.
如此,addStock将在一个背景线程上执行,而不是在主UI 线程上。
This IPv4 example uses the background thread itself to process all packets.
这个iPV4例子用内部线程来处理所有的分组。
It makes sense to do this type of task in a background thread using Web workers.
因而使用Webworker在后台线程中完成这类任务是很有意义的。
Listing 3 shows an example where during startup, a background thread loads some data from a database.
清单3展示了一个示例,其中后台线程在启动阶段从数据库加载一些数据。
Notice the "DONE" message being sent from each background thread through the stream to the results listener.
注意,“DONE”消息被通过数据流从每个后台线程发送到结果侦听程序。
A first-pass solution to this is to store up encoded messages while a background thread tries to upload them.
初步的解决方案是,当后台线程试图上传编码消息时对这些消息进行存储。
Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
确保适配器的内容是从后台线程不会被修改,但只能从UI线程。
Another common threading model is to have a single background thread and task queue for tasks of a certain type.
另一个常见的线程模型是为某一类型的任务分配一个后台线程与任务队列。
Back in Listing 2, you saw each background thread receive and print the results of retrieving tweets for a particular topic.
在清单2中,您看到每个后台线程接收和打印检索特定主题tweets的结果。
A background thread might read this sensor every few seconds and update a volatile variable containing the current temperature.
一个后台线程可能会每隔几秒读取一次该传感器,并更新包含当前文档的volatile变量。
However, you can also create the background thread as STA and then register a message filter for that thread to handle this case.
但是,也可以将后台线程作为STA创建,然后为该线程注册消息筛选器以处理此情况。
Start by generating an MD5 of the original file, then using a background Thread, recalculate the MD5 and compare it with the original.
首先生成md5的原始文件,然后使用一个后台线程,重新计算MD 5和比较它与原来的。
Because calls are serialized, callers might be blocked for periods of time while the server is busy or is handling other calls on a background thread.
因为调用是序列化的,所以服务器正忙时或处理后台线程上的其他调用时调用方可能会被阻塞一段时间。
One issue that was found after the release of MacRuby 0.6 seems to cause problems with scheduling a block to run on the main thread from a background thread.
MacRuby 0.6发布之后,用户发现了一个问题,在运行某代码段的时候,从后台线程切换到主线程会导致程序崩溃。
Speed is another advantage of MongoDB, mainly due to how it handles writes: they are stored in memory and later, via a background thread, written to disk.
速度是MongoDB的另外一个优势,主要是由于它处理写入的方式:它们存储在内存中,然后通过后台线程写入磁盘。
Of course, fetching images from disk is slower than loading from memory and should be done in a background thread, as disk read times can be unpredictable.
当然,从磁盘上获取这些图片要比从内存中加载慢,并且由于磁盘读取时间是不可预知的,所以也应该在后台进程中完成。
If your event manager fires events on background threads, you have to make sure your event handler somehow prevents the isolate from being disposed from another thread.
如果你的事件管理器在后台线程火灾事件,你必须确保你的事件处理程序以某种方式阻止隔离被另一个线程处理。
There's been a new "background thread" capability added which makes Eclipse much more responsive when there are long-running tasks that need to be executed from the IDE.
新版本中还添加了一种“后台线程(background thread)”功能,有了这个功能,当存在需要从ide执行的长时间运行的任务时,Eclipse能够有更好的响应时间。
The various triggering functions provide different ways of running asynchronous computations, and which one you use depends on whether you want to use the current thread, a background thread, or a.
各种触发函数提供了运行异步计算的不同方式,具体采用哪一种方式取决于您需要使用的是当前线程、后台线程还是。
More information becomes available, it is entered into the program, the calculations are modified, and the process continues (in that thread in the background).
更多信息出现了,它被输入程序,计算被修改,进程继续(因为那个线程是在后台)。
A worker thread pool, to make web applications more responsive by performing expensive operations in the background.
“工作者线程池”,通过在后台执行费时的操作使应用程序响应更加迅速。
Background tasks will use the DataFlowStream to stream result tweets back to the main thread that reads them from the stream.
后台任务将使用DataFlowStream来将结果tweets流式传输回主线程,该主线程从数据流中读取它们。
In the UI thread, populate your tree or table with placeholder values and, in a background Job, retrieve the real values and update the tree as you fetch them.
在UI线程里,用占位符填充树或表,在后台的Job中,检索真实数据并在获得数据后更新树。
In libspe2, the operation is synchronous, so if you want to run a thread in the background, you have to make your own pthread calls.
在libspe2中,这个操作变成同步的了,因此您可能会希望在后台运行一个线程,并发出自己的pthread调用。
Note that Timer creates a non-daemon thread to fire the tasks in the background, however, so in Listing 10 I have to kill the VM via a call to System.exit().
请注意Timer却创建了一个非守护线程在后台启动任务,因此在清单10 中我需要调用 System.exit() 来取消任务。
Note that Timer creates a non-daemon thread to fire the tasks in the background, however, so in Listing 10 I have to kill the VM via a call to System.exit().
请注意Timer却创建了一个非守护线程在后台启动任务,因此在清单10 中我需要调用 System.exit() 来取消任务。
应用推荐