Each worker thread has the J2EE context of the thread pool creator component applied to it.
每个工作线程都有适用于它的线程池创建程序组件的J2EE上下文。
A single worker thread might be able to push one logic CPU to 100% utilization in the LPAR, so the total thread number is set to number of the CPUs minus 1.
单个工作线程也许就能迫使LPAR中的一个逻辑CPU达到100%的利用率,因此将总线程数量设置为CPU数量减1。
A thread pool worker thread pulls the next WWEC from the input queue and runs it.
线程池工作线程从输入队列提取下一个WWEC,并运行它。
Now the UI is safe and the code is simpler, because it separates the work into the part that should be done on a worker thread and the part that should be done on the UI thread.
现在UI是安全的,代码也得到简化,因为任务分解成了工作线程内完成的部分和UI线程内完成的部分。
If a worker thread must be blocked, you need to ensure that the thread is blocked for only a reasonable amount of time.
如果阻塞工作线程,则需要确保仅在合理的时间内阻塞线程。
The biggest difference is that System.Timers.Timer is a wrapper around Win32 waitable timer objects and raises an Elapsed event on a worker thread rather than a Tick event on the UI thread.
最大的区别就在与System.Timers.Timer类是对Win32可等待定时对象的一个包装,并在工作者线程上产生一个时间片消失事件而不是在UI线程上产生一个时间标记事件。
To handle more complex interactions with a worker thread, you might consider using a Handler in your worker thread, to process messages delivered from the UI thread.
为了用工作线程完成更加复杂的交互处理,可以考虑在工作线程中用Handler来处理UI线程分发过来的消息。
When using custom component-scoped thread pools (Figure 3), each worker thread in the pool is initialized with a daemon thread created by the WorkManager.
在使用自定义组件范围的线程池(图3)时,将使用WorkManager创建的守护程序线程初始化池中的每个工作线程。
Throughput - 5.5 times higher for the UI thread and 870 times higher for the worker thread.
对于UI线程来说提升了5.5倍,对于worker线程来说提升了870倍。
The J2EE context of the J2EE component that creates the ThreadFactory will be preserved and reapplied to the thread prior to starting a new worker thread.
创建ThreadFactory的J2EE组件的 J2EE上下文将被保留,并在启动新的工作线程之前重新应用到线程。
So, you must not manipulate your UI from a worker thread-you must do all manipulation to your user interface from the UI thread.
因此不允许从工作线程中操作ui——只能从UI线程中操作用户界面。
Keep in mind that the timer callback function is executed on a worker thread, so you'll want to ensure that you have thread-safe access to the state object.
记住定时回调功能是在一个工作者线程上执行的,所以你必须确保访问state对象的线程安全。
When a connection arrived, the accept thread would simply spin off a worker thread for processing.
当连接到达时,接受线程只是衍生一个辅助线程来进行处理。
Without the communications between main thread and worker thread, CPU would be locked for a long time.
若没有主线程与辅助线程的通信,CPU将被阻塞很长一段时间。
The main thread was a controls based on dialog, the worker thread was a circulation of counting lasting a long time.
主线程是一个基于对话框的控件,辅助线程是一个耗时很长的循环计数。
Be sure that you have a unique worker thread (see Executors and submit) that is in charge of writing the bytes told by each thread.
确保你有一个独特的工作线程(见执行人和提交),负责编写字节告诉每个线程。
The following example demonstrates how an auxiliary or worker thread can be created and used to perform processing in parallel with that of the primary thread.
下面的示例演示如何创建辅助线程,并用它与主线程并行执行处理。
Threads are divided into Worker Thread and User Interface Thread.
线程分为辅助线程(工作者线程)和用户界面线程。
When the worker thread has finished a frame, the UI thread adds changed rectangles and unlocks the buffer.
当辅助线程完成一个框架后,UI 线程添加更改的矩形并取消锁定缓冲区。
Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.
将指定的委派伫列排入执行绪集区,但不会将呼叫堆叠散布到背景工作执行绪。
However, in our scenario, the UI thread is also waiting for the worker thread to commit the transaction.
但在我们的方案中,用户界面线程还要等待辅助线程提交事务。
However, in our scenario, the UI thread is also waiting for the worker thread to commit the transaction.
但在我们的方案中,用户界面线程还要等待辅助线程提交事务。
应用推荐