线程池是一种多线程处理形式,处理过程中将任务添加到队列,然后在创建线程后自动启动这些任务。线程池线程都是后台线程。每个线程都使用默认的堆栈大小,以默认的优先级运行,并处于多线程单元中。如果某个线程在托管代码中空闲(如正在等待某个事件),则线程池将插入另一个辅助线程来使所有处理器保持繁忙。如果所有线程池线程都始终保持繁忙,但队列中包含挂起的工作,则线程池将在一段时间后创建另一个辅助线程但线程的数目永远不会超过最大值。超过最大值的线程可以排队,但他们要等到其他线程完成后才启动。
线程安全 thread safety ; threadsafe ; safe ; MTsafe 线程池 Thread pool pattern ; ThreadPool ; thread pooling ; ThreadPoolExecutor 单线程 singlethreaded ; threaded ; single thread ; SingleThreadModel ...
基于2284个网页-相关网页
c) 线程池(thread pooling):线程池是存储了一系列业务处理线程的数据结 构,采用线程池技术可以极大地提高系统的吞吐量,提高系统处理的效率,当消息 队列...
基于1381个网页-相关网页
...可以通过收集子Reader将这些目录分别收集起来,如果我们在初始化一个新的IndexSearcher的时候就提供一个线程池(ExecutorService),那么Lucene就会在搜索的时候对这些目录同时并行搜索,然后将每个目录获取的结果进行加工处理(排序,过滤..
基于142个网页-相关网页
线程池和实例池 Thread Pooling and Instance Pooling
线程池类 thread pool ; class CMyThreadPool
动态线程池 dynamic thread pool
平衡负荷的线程池 balanced load thread poll
线程池线程 thread pool
线程池工厂 thread pool worker factory
把任务添加到线程池中 int AddTask
业务对象的线程池缓存 thread pooling
使用线程池 thread pool
At last gives the concrete realization of the Thread Pool.
线程池是一种为了实现多线程并发处理而设计的编程方案。
参考来源 - 基于Win32的面向对象的线程池的研究与实现—《电脑知识与技术》—2010年第20期—龙源期刊网We manage the processor resource through priority mechanism and manage the memory resource through thread-pool and request buffer.
使用优先级机制来管理处理器资源;使用了线程池和请求队列缓存来管理存储器资源。 上层应用都能够通过用户接口对他们进行控制和管理。
参考来源 - 实时CORBA资源管理的研究与实现In the holistic communications software’s design pattern, the technology such as multi-thread, thread-pool and I/O completion port used in server was emphasized.
给出了整个系统软件的设计方案,尤其在服务器端采用了多线程、完成端口和线程池技术。
参考来源 - 基于GPRS的可靠通信方案的研究与实现·2,447,543篇论文数据,部分数据来源于NoteExpress
应用推荐