Thread pools offer these advantages.
线程池提供了这些优点。
线程池统计信息。
有限的线程池。
为什么要用线程池?
Guidelines for effective use of thread pools.
有效使用线程池的准则。
Single-context and multi-context thread pools.
单上下文和多上下文的线程池。
The following thread pools will typically need to be tuned
下列线程池通常需要调优
Thread pools are often employed in server applications.
通常是在伺服器应用程序中采用执行绪集区。
Linux thread pools allowing threefold improvements in Linux capacity.
允许使用Linux容量扩大三倍的Linu x线程池。
The important tunable options associated with thread pools are shown in Table 2.
与线程池相关的重要调优选项如表2所示。
Tuning the appropriate thread pools to restrict the number of concurrent threads.
调优适当的线程池以限制并发线程的数量。
In nearly every server application, the question of thread pools and work queues comes up.
几乎在每个服务器应用程序中都会出现线程池和工作队列问题。
Thread pools are far from the only way to use multiple threads within a server application.
线程池远不是服务器应用程序内使用多线程的唯一方法。
The portlet displays the thread pools available on the server and the size of each pool (Figure 1).
此Portlet显示了服务器上的可用线程池以及每个池的大小(图1)。
Configuring these thread pools is primarily a part of tuning an application server for optimal performance.
配置这些线程池主要是调优应用程序服务器以实现最优性能的调优工作的一部分。
Table 3 shows the default thread pool sizes and inactivity timeouts for the most commonly tuned thread pools.
表3列出了最常调优的线程池的默认线程池大小和静止超时。
In a typical WebSphere Application server V6.x server, there are four main types of thread pools to be considered.
在一个典型的WebSphereApplicationServerv 6 . x服务器中,需要考虑四个主要线程池类型。
Thread pools can be an extremely effective way to structure a server application, as long as you follow a few simple guidelines.
只要您遵循几条简单的准则,线程池可以成为构建服务器应用程序的极其有效的方法。
The TPL also has a new set of features not seen in either threads or thread pools. For example, Tasks have a safe Cancel method.
TPL还拥有一套从前的线程或线程池所不具备的新功能,例如任务拥有一个安全的Cancel方法。
The Common Language Runtime has always had basic support for parallel programming in the form of locks, threads, and thread pools.
通用语言运行时(Common LanguageRuntime,CLR)以锁、线程和线程池的形式为并行编程提供基本的支持。
Designing thread pools involves many considerations, such as pool sizing and management techniques that are out of this article's scope.
线程池的设计涉及到多方面的考虑事项,例如池的大小和管理技术,这些内容超出了本文讨论范围。
Because the pattern demonstrated above is so effective, it is relatively simple to extend it by chaining additional thread pools with queues.
因为上面介绍的模式非常有效,所以可以通过连接附加线程池和队列来进行扩展,这是相当简单的。
While this basic pattern is relatively simple, it can be used to solve a wide number of problems by chaining queues and thread pools together.
尽管这个基本模式比较简单,但可以通过将队列和线程池连接在一起,以便将这个模式用于解决各种各样的问题。
You can get statistics, such as Pool Max, Lowest Recorded, Highest Recorded, and Threads in Use for all defined thread pools, as shown in Figure 3.
您可以获取所有定义了的线程池的统计信息,如PoolMax、LowestRecorded、Highest Recorded和Threads inUse 等,如图 3 所示。
Using asynchronous message passing and pipelining, it promises to offer more control than thread pools and better performance than manual threading.
借助于异步消息传递与管道,它可以提供比线程池更好的控制,也比手工线程方式具备更好的性能。
Ah, but those features are coupled, because both kinds of page requests are served by the same request-handling thread pools in the same app servers.
然而,这些功能是互相耦合的,因为页面请求都是同一个应用服务器上的同一个请求处理线程池来处理的。
Using conventional thread pools to implement fork-join is also challenging because fork-join tasks spend much of their lives waiting for other tasks.
使用传统的线程池来实现fork-join也具有挑战性,因为 fork-join任务将线程生命周期的大部分时间花费在等待其他任务上。
In general, a large number of applications will realize some improvement from tuning in three core areas: the JVM, thread pools, and connection pools.
通常而言,许多应用程序都可以通过调优以下三个核心区域实现一定程度的性能改进:J VM、线程池和连接池。
The thread pools timer component, serial communication, and multithreading techniques were used to guarantee it as a real-time and scalable system.
系统开发采用线程池定时器组件、串行通信、多线程等技术,从而保证系统的实时性和可扩展性。
One benefit of thread pools is that they generally perform well relative to the alternative scheduling mechanisms, some of which we've already discussed.
线程池的一个优点在于:相对于其它替代调度机制(有些我们已经讨论过)而言,它们通常执行得很好。
应用推荐