If the application ends, the release method of each daemon Work thread in the pool will be called.
如果应用程序结束,将调用池中每个守护程序工作线程的release方法。
This allows you to create an arbitrarily complicated data structure for the thread to work on, and pass it in as a single pointer.
这样允许您创建一个任意复杂的数据结构,并将它作为一个指针传送给需要在这个数据结构上进行操作的线程。
In nearly every server application, the question of thread pools and work queues comes up.
几乎在每个服务器应用程序中都会出现线程池和工作队列问题。
There would be a bit of work involved in deciding (and programming) exactly how an arbitrary jump would interact with a linear thread queue, but nothing particularly mysterious about the work.
决定(以及编写)一个任意的跳转究竟会如何与线性线程队列交互将涉及到不少工作,不过这些工作中没有什么特别神秘的地方。
If further connections are made, and that thread is busy, then the Broker's connection manager will wait until the thread finishes its work and becomes available.
如果进一步建立连接,并且线程处于繁忙状态,那么代理的连接管理器将一直等待下去,直到线程完成工作并变为可用。
By effectively making use of the kernel debugger, you can reduce the work of the kernel thread that was described earlier.
通过有效地利用内核调试器,我们可以减少前面介绍的内核线程的工作。
In traditional mainframe applications, thread usage is not a big concern as work is initiated by a handful of applications using a handful of threads.
在传统的大型机应用程序中,对线程的使用不是很重要,因为只有少数几个应用程序使用少数几个线程启用任务。
How does the pool maintenance thread work?
池维护线程的工作原理。
There is significant overhead to suspending and rescheduling a thread, which involves work by the JVM, operating system, and hardware.
暂挂和重新调度线程的开支很显著,其中包括JVM、操作系统和硬件的工作。
The consumer is now finished and can use that thread to perform other work.
现在,使用者的工作已经完成了,可以使用该线程来执行其他工作。
Because some processing can take a long time, we need multiple processing threads per production line to make sure that a thread is always available to work on the latest measurement.
由于某些处理可能要占用较长的时间,因而需要为每条生产线使用多个处理线程,确保总有一个线程能来处理最新的度量结果。
As soon as a flow instance finishes processing its input file, it returns to the thread pool and begins work on the next input file from the list.
一旦某个流实例完成其输入文件的处理,该实例立即返回线程池,并开始处理列表中的下一个输入文件。
At first, this seems to work fine, because it creates a new thread to handle the network operation.
乍看起来,这段代码似乎能运行得很好,因为创建了一个新的线程来处理访问网络的操作。
The GC thread can also preemptively sleep if it can't complete its upcoming work item before the quantum end time.
如果gc线程无法在时间量结束前完成预定的任务项目,那么也可以抢占性地进入休眠。
Work requests queued and waited for a worker thread to become available.
工作请求进入队列,等待工作线程。
The women who work with textiles steal thread so they can make their own clothes.
纺织厂工作的女人会偷线来给自己做衣服。
The provider is now finished and can use its thread to perform other work (such as waiting for another request).
现在,提供者的工作已经完成了,可以使用其线程执行其他的工作(例如等待另一个请求)。
Work is submitted to the WorkManager thread pool (the blue box).
将工作提交给WorkManager线程池(蓝框)。
The application server then associates this transaction with the thread of execution before calling the work object's run method.
然后应用服务器会在调用工作对象的run方法之前把这个事务与执行线程关联起来。
The WorkManager lets a resource adapter schedule work for synchronous or asynchronous execution on an application-server thread.
WorkManager允许资源适配器对工作进行调度,在应用服务器线程上同步或异步执行调度。
Each worker thread performs some bit of work using the TaskHandler class.
每个工作者线程使用taskhandler类执行一部分工作。
Work back up the corresponding thread to find more information about why the error message was generated. Following the above instructions, this is what appears in the trace.log
返回对应的线程查找关于为何生成此错误消息的更多信息。
This allows the server — Geronimo — to have control over the thread management and work distribution for a compliant RA.
这样允许服务器——Geronimo——对符合RA的线程管理和工作分配进行控制。
The run() method is called when the Work object is dispatched to another thread.
当Work对象发送到另一个线程时将调用run()方法。
To achieve this, the WorkManager takes a snapshot of the J2EE context on the thread when the work is submitted.
为完成此任务,WorkManager在提交工作时会获取线程上J2EE上下文的快照。
WebSphere Application Server is designed to process a large number of parallel short-time tasks, and work queues and thread pools are two components that are used often to handle parallel workload.
WebSphereApplicationServer旨在处理大量的并行短时间任务,工作队列和线程池是两个经常用来处理并行工作负载的组件。
WebSphere Application Server for z/OS combines a work queue mechanism with the thread pool to serve the client requests.
WebSphereApplicationServerfor z/OS 将工作队列机制与线程池组合起来为客户端请求提供服务。
AWT and Swing use this model, in which there is a GUI event thread, and all work that causes changes in the user interface must execute in that thread.
AWT和Swing就使用这个模型,在这个模型中有一个GUI事件线程,导致用户界面发生变化的所有工作都必须在该线程中执行。
The PooledExecutor class from this package is an efficient, widely used, correct implementation of a thread pool based on a work queue.
该包中的PooledExecut or类是一种有效的、广泛使用的以工作队列为基础的线程池的正确实现。
The PooledExecutor class from this package is an efficient, widely used, correct implementation of a thread pool based on a work queue.
该包中的PooledExecut or类是一种有效的、广泛使用的以工作队列为基础的线程池的正确实现。
应用推荐