The objects reuse framework realizes the codes reuse for similar functions and is used for design of threads pool.
为避免相似功能的重复开发,实现代码重用的对象复用架构和基于该架构的线程池实现方案;
To make better use of CPU time, we can create a pool of NHRTs to process the data. By maintaining a pool of running threads, we have no thread startup and shutdown overhead when running.
为更好地利用CPU时间,我们可以创建一个nhrt池来处理数据,通过维护一个运行中线程的池,在运行的时候就不存在任何线程启动和停止开销了。
If the pool became empty, then we would miss jars because the polling threads would have nowhere to store incoming measurements.
如果池变空,那么我们就会遗漏罐子,因为轮询线程没有空间再去存储传入的度量结果。
If events are building up in this queue, but not in the queue in front of the collaboration thread pool, then increase the number of threads configured for the source adapter controller.
如果事件在此队列中堆积,但并没有在协作线程池前面的队列中堆积,则请增加为源适配器控制器配置的线程数量。
One common workaround was to use a pool of threads created at VM startup, rather than creating each new thread on demand.
一个常见的解决方案是使用VM启动时创建的线程池,而不是按需创建每个新线程。
To do this, we set the thread priority of the polling threads to 38 (the highest RT priority) and the priorities of the triage pool threads to 37.
为此,我们将轮询线程的线程优先级设置为38(最高的RT 优先级),将筛选池线程的优先级设置为 37。
For example, services waiting for asynchronous responses could release threads back into the thread pool.
例如,正在等待异步响应的服务可能会释放线程,将其放回线程池中。
If a thread pool is too large, the resources consumed by those threads could have a significant impact on system performance.
如果线程池太大,那么被那些线程消耗的资源可能严重地影响系统性能。
You might group them for purposes of convenience — for instance, all the threads in a thread pool belong to group X, while those in another pool belong to group Y — or for access control.
您可能是为了方便而将线程组合,例如,一个线程池中的所有线程都属于组x,而另一个池的所有线程则属于组y,或者是为了访问控制而将线程进行组合。
The pool grows as per the application demands for concurrency, and the threads that have finished execution are returned to the pool.
这个池依应用程序对并行的需求而增长,并且那些已完成执行的线程会被返回到这个池。
You might group them for purposes of convenience -- for instance, all the threads in a thread pool belong to group X, while those in another pool belong to group Y -- or for access control.
您可能是为了方便而将线程组合,例如,一个线程池中的所有线程都属于组X,而另一个池的所有线程则属于组Y,或者是为了访问控制而将线程进行组合。
If we have enough threads in the message listener service thread pool, then we will see four threads processing messages in parallel.
如果在消息侦听器服务线程池中有足够的线程,则将看到四个线程并行处理消息。
Like a thread pool, the TPL can perform load balancing across threads and processors.
与线程池的功能类似,TPL能够在线程和处理器之间实现负载均衡。
This causes the MDB to use two threads from the message listener service thread pool to process the messages.
这将导致MDB使用消息侦听器服务线程池中的两个线程来处理消息。
The pool is not large enough to serve the workload, if average number of active threads is constantly close to maximum size of the pool.
如果活动线程的平均数时常接近线程池的最大大小,这说明该线程池太小,不足以满足工作量。
Increasing the number of threads in the thread pool has limited benefit because application-server performance starts to degrade as the number of threads in the pool increases.
增加线程池中的线程数量收效甚微,因为当线程池中的线程数量增加时,应用程序-服务器性能将开始降低。
If an application creates a thread pool and the thread pool creates threads, the threads are resources that must be released (allowed to terminate) before the program can exit.
如果应用程序创建一个线程池,而线程池创建线程,线程是程序可以退出之前必须被释放的资源。
Another area where you can influence how many threads are available to a component (and the pool from which these threads are taken) is in messaging.
能影响一个组件可用的线程的数量(和这些线程源自的线程池)的另一个地方是消息传递。
But the application doesn't own the threads; the thread pool does, and therefore the thread pool must take responsibility for releasing them.
但是应用程序不拥有线程,而是由线程池拥有线程,因此线程池必须负责释放线程。
The pool size (orange) is the average number of threads in the pool, and the active count (red) is the number of concurrently active threads.
池大小(黄色)是池中线程数量的平均值,而活动计数(红色)是当前活动线程的数量。
This feature is particularly useful when methods are being executed on out-of-scope threads; for example, starting a thread on a thread pool.
当在范围外的线程上执行方法时,此功能特别有用;例如,启动线程池中的线程。
EJBs that are run within the container execute inside the threads that are allocated to the ORB thread pool.
运行于容器中的EJB在被分配到OR b线程池的线程中执行。
The message listener service is configured to use a thread pool that has the maximum threads property set to 4.
消息侦听器服务配置为使用最大线程属性设置为4的线程池。
In contrast, the fixed-size pool keeps all the threads around waiting for something to do when there are no tasks to complete.
相反,当没有任务要完成时,固定大小的线程池会让所有的线程等待。
The tables listed in the input files are fed to a pool of threads in a round robin fashion.
输入文件中列出的表以循环方式提供给线程池。
The pool of threads and overlapped operations guarantee a good level of performance to the ASP.NET ISAPI.
线程池和回执操作确保了ASP.NETISAPI的高性能。
Then set up another pool of threads that join on the second queue, and then do work on the Web page.
然后,对加入到第二个队列中的另一个线程池进行设置,然后对Web 页面执行相应的处理。
The aspnet_isapi module creates a fixed number of named pipes and USES overlapped operations to service simultaneous connections through a small pool of threads.
aspnet _ isapi模型创建固定数量的命名管道并且通过一个小的线程池使用重叠操作为并发的链接服务。
For the synchronous case, the servlet engine thread pool has three threads.
对于同步用例,servlet引擎线程池有三个线程。
For example, the global pool contains the message queues where poll threads for network communications deposit messages from clients.
例如,全局池包含消息队列,其中用于网络通信的poll线程存放来客户机的消息。
应用推荐