Browse Wiki & Semantic Web

Jump to: navigation, search
Http://dbpedia.org/resource/Thread pool
  This page has no properties.
hide properties that link here 
  No properties link to this page.
 
http://dbpedia.org/resource/Thread_pool
http://dbpedia.org/ontology/abstract 线程池(英語:thread pool):一种线程使用模式。线程过多会带来调度开销,进线程池(英語:thread pool):一种线程使用模式。线程过多会带来调度开销,进而影响缓存局部性和整体性能。而线程池维护着多个线程,等待着监督管理者分配可并发执行的任务。这避免了在处理短时间任务时创建与销毁线程的代价。线程池不仅能够保证内核的充分利用,还能防止过分调度。可用线程数量应该取决于可用的并发处理器、处理器内核、内存、网络sockets等的数量。 例如,对于计算密集型任务,线程数一般取cpu数量+2比较合适,线程数过多会导致额外的线程切换开销。 任务调度以执行线程的常见方法是使用同步队列,称作任务队列。池中的线程等待队列中的任务,并把执行完的任务放入完成队列中。 线程池模式一般分为两种:HS/HA半同步/半异步模式、L/F领导者与跟随者模式。 * 半同步/半异步模式又称为生产者消费者模式,是比较常见的实现方式,比较简单。分为同步层、队列层、异步层三层。同步层的主线程处理工作任务并存入工作队列,工作线程从工作队列取出任务进行处理,如果工作队列为空,则取不到任务的工作线程进入挂起状态。由于线程间有数据通信,因此不适于大数据量交换的场合。 * 领导者跟随者模式,在线程池中的线程可处在3种状态之一:领导者leader、追随者follower或工作者processor。任何时刻线程池只有一个领导者线程。事件到达时,领导者线程负责消息分离,并从处于追随者线程中选出一个来当继任领导者,然后将自身设置为工作者状态去处置该事件。处理完毕后工作者线程将自身的状态置为追随者。这一模式实现复杂,但避免了线程间交换任务数据,提高了CPU cache相似性。在ACE(Adaptive Communication Environment)中,提供了领导者跟随者模式实现。 线程池的伸缩性对性能有较大的影响。 * 创建太多线程,将会浪费一定的资源,有些线程未被充分使用。 * 銷毀太多執行緒,將導致之後浪費時間再次創建它們。 * 创建线程太慢,将会导致長時間的等待,性能變差。 * 銷毀執行緒太慢,导致其它執行緒资源饥饿。慢,将会导致長時間的等待,性能變差。 * 銷毀執行緒太慢,导致其它執行緒资源饥饿。 , In computer programming, a thread pool is In computer programming, a thread pool is a software design pattern for achieving concurrency of execution in a computer program. Often also called a replicated workers or worker-crew model, a thread pool maintains multiple threads waiting for tasks to be allocated for concurrent execution by the supervising program. By maintaining a pool of threads, the model increases performance and avoids latency in execution due to frequent creation and destruction of threads for short-lived tasks. The number of available threads is tuned to the computing resources available to the program, such as a parallel task queue after completion of execution. task queue after completion of execution. , Trådpool (från engelskans thread pool) är Trådpool (från engelskans thread pool) är ett designmönster som består av ett antal trådar (m) som skapas för att utföra ett antal uppgifter samtidigt (n). Vanligtvis motsvarar m inte n; istället är antalet trådar inställt till de tillgängliga datorresurserna för att hantera uppgifterna parallellt (processorer, kärnor, minne) medan antalet uppgifter beror på problemet och kanske inte är känt i förväg. Anledningar till att använda en trådpool, istället för att skapa en tråd per uppgift, är att förhindra overhead för tid och minne när trådar skapas, samt för att undvika att få slut på resurser såsom öppnade filer eller nätverksanslutningar (där operativsystem allokerar ett begränsat antal för att köra program). Ett vanligt sätt att distribuera uppgifterna till trådar (schemalägga uppgifterna att köras) är med hjälp av en synkroniserad kö, känd som en uppgiftskö (från engelskans task queue). Trådarna i poolen plockar uppgifter från kön, utför dem och sedan returnerar dem till kön för nästa uppgift.returnerar dem till kön för nästa uppgift. , في برمجة الحاسوب، يعد تجميع الخيوط (بالإنجليزية: thread pool)‏ أحد أنماط تصميم البرمجيات لتحقيق تزامن التشغيل في برنامج حاسوبي ما. , Un thread pool in programmazione indica un gestore software di thread utilizzato per ottimizzare e semplificare l'utilizzo dei thread all'interno di un programma.
http://dbpedia.org/ontology/thumbnail http://commons.wikimedia.org/wiki/Special:FilePath/Thread_pool.svg?width=300 +
http://dbpedia.org/ontology/wikiPageExternalLink http://doi.acm.org/10.1145/1753196.1753218 + , http://today.java.net/pub/a/today/2008/10/23/creating-a-notifying-blocking-thread-pool-executor.html + , https://www.codeproject.com/Articles/3607/Work-Queue + , https://www.codeproject.com/Articles/3631/A-Method-of-Worker-Thread-Pooling + , https://arxiv.org/abs/2105.00613 + , http://www.cs.wustl.edu/~schmidt/PDF/OM-01.pdf + , http://www.codeproject.com/Articles/6863/Windows-Thread-Pooling-and-Execution-Chaining + , http://www.codeproject.com/KB/threads/smartthreadpool.aspx + , http://www.ibm.com/developerworks/aix/library/au-threadingpython/ + , http://www.ibm.com/developerworks/java/library/j-jtp0730.html + , https://web.archive.org/web/20080207124322/http:/today.java.net/pub/a/today/2008/01/31/query-by-slice-parallel-execute-join-thread-pool-pattern.html + , http://msdn.microsoft.com/en-us/library/ms973903.aspx +
http://dbpedia.org/ontology/wikiPageID 764016
http://dbpedia.org/ontology/wikiPageLength 6717
http://dbpedia.org/ontology/wikiPageRevisionID 1061635285
http://dbpedia.org/ontology/wikiPageWikiLink http://dbpedia.org/resource/Embarrassingly_parallel + , http://dbpedia.org/resource/Category:Threads_%28computing%29 + , http://dbpedia.org/resource/Stability_Model + , http://dbpedia.org/resource/Category:Software_design_patterns + , http://dbpedia.org/resource/Staged_event-driven_architecture + , http://dbpedia.org/resource/Concurrency_pattern + , http://dbpedia.org/resource/Parallelization + , http://dbpedia.org/resource/Performance_tuning + , http://dbpedia.org/resource/Software_design_pattern + , http://dbpedia.org/resource/Douglas_C._Schmidt + , http://dbpedia.org/resource/Parallel_Extensions + , http://dbpedia.org/resource/Server_farm + , http://dbpedia.org/resource/Object_pool_pattern + , http://dbpedia.org/resource/Concurrent_computing + , http://dbpedia.org/resource/Task_%28computers%29 + , http://dbpedia.org/resource/Grand_Central_Dispatch + , http://dbpedia.org/resource/Category:Concurrent_computing + , http://dbpedia.org/resource/Computer_programming + , http://dbpedia.org/resource/Asynchrony_%28computer_programming%29 + , http://dbpedia.org/resource/Thread_%28computer_science%29 + , http://dbpedia.org/resource/Web_page + , http://dbpedia.org/resource/Category:Parallel_computing + , http://dbpedia.org/resource/Concurrency_%28computer_science%29 + , http://dbpedia.org/resource/Web_server + , http://dbpedia.org/resource/File:Thread_pool.svg +
http://dbpedia.org/property/date December 2015
http://dbpedia.org/property/reason This sounds more like pre-spawning than like a pool pattern.
http://dbpedia.org/property/wikiPageUsesTemplate http://dbpedia.org/resource/Template:Reflist + , http://dbpedia.org/resource/Template:Cn + , http://dbpedia.org/resource/Template:Disputed_inline + , http://dbpedia.org/resource/Template:Design_Patterns_patterns + , http://dbpedia.org/resource/Template:Short_description +
http://purl.org/dc/terms/subject http://dbpedia.org/resource/Category:Concurrent_computing + , http://dbpedia.org/resource/Category:Threads_%28computing%29 + , http://dbpedia.org/resource/Category:Software_design_patterns + , http://dbpedia.org/resource/Category:Parallel_computing +
http://www.w3.org/ns/prov#wasDerivedFrom http://en.wikipedia.org/wiki/Thread_pool?oldid=1061635285&ns=0 +
http://xmlns.com/foaf/0.1/depiction http://commons.wikimedia.org/wiki/Special:FilePath/Thread_pool.svg +
http://xmlns.com/foaf/0.1/isPrimaryTopicOf http://en.wikipedia.org/wiki/Thread_pool +
owl:sameAs http://zh.dbpedia.org/resource/%E7%BA%BF%E7%A8%8B%E6%B1%A0 + , http://www.wikidata.org/entity/Q3990847 + , http://ar.dbpedia.org/resource/%D8%AA%D8%AC%D9%85%D9%8A%D8%B9_%D8%A7%D9%84%D8%AE%D9%8A%D9%88%D8%B7_%28%D8%A3%D9%86%D9%85%D8%A7%D8%B7_%D8%AA%D8%B5%D9%85%D9%8A%D9%85_%D8%A7%D9%84%D8%A8%D8%B1%D9%85%D8%AC%D9%8A%D8%A7%D8%AA%29 + , http://sv.dbpedia.org/resource/Tr%C3%A5dpool + , http://yago-knowledge.org/resource/Thread_pool + , http://it.dbpedia.org/resource/Thread_pool + , http://fa.dbpedia.org/resource/%D8%A7%D9%84%DA%AF%D9%88%DB%8C_%D9%85%D8%AE%D8%B2%D9%86_%D9%86%D8%AE + , http://pt.dbpedia.org/resource/Thread_pool + , http://hu.dbpedia.org/resource/Sz%C3%A1lk%C3%A9szlet_programtervez%C3%A9si_minta + , http://rdf.freebase.com/ns/m.039gjt + , http://dbpedia.org/resource/Thread_pool + , https://global.dbpedia.org/id/3hJwG +
rdf:type http://dbpedia.org/class/yago/Structure105726345 + , http://dbpedia.org/class/yago/Form105930736 + , http://dbpedia.org/class/yago/Abstraction100002137 + , http://dbpedia.org/class/yago/PsychologicalFeature100023100 + , http://dbpedia.org/class/yago/Cognition100023271 + , http://dbpedia.org/class/yago/WikicatSoftwareDesignPatterns +
rdfs:comment Trådpool (från engelskans thread pool) är Trådpool (från engelskans thread pool) är ett designmönster som består av ett antal trådar (m) som skapas för att utföra ett antal uppgifter samtidigt (n). Vanligtvis motsvarar m inte n; istället är antalet trådar inställt till de tillgängliga datorresurserna för att hantera uppgifterna parallellt (processorer, kärnor, minne) medan antalet uppgifter beror på problemet och kanske inte är känt i förväg.roblemet och kanske inte är känt i förväg. , In computer programming, a thread pool is In computer programming, a thread pool is a software design pattern for achieving concurrency of execution in a computer program. Often also called a replicated workers or worker-crew model, a thread pool maintains multiple threads waiting for tasks to be allocated for concurrent execution by the supervising program. By maintaining a pool of threads, the model increases performance and avoids latency in execution due to frequent creation and destruction of threads for short-lived tasks. The number of available threads is tuned to the computing resources available to the program, such as a parallel task queue after completion of execution. task queue after completion of execution. , 线程池(英語:thread pool):一种线程使用模式。线程过多会带来调度开销,进线程池(英語:thread pool):一种线程使用模式。线程过多会带来调度开销,进而影响缓存局部性和整体性能。而线程池维护着多个线程,等待着监督管理者分配可并发执行的任务。这避免了在处理短时间任务时创建与销毁线程的代价。线程池不仅能够保证内核的充分利用,还能防止过分调度。可用线程数量应该取决于可用的并发处理器、处理器内核、内存、网络sockets等的数量。 例如,对于计算密集型任务,线程数一般取cpu数量+2比较合适,线程数过多会导致额外的线程切换开销。 任务调度以执行线程的常见方法是使用同步队列,称作任务队列。池中的线程等待队列中的任务,并把执行完的任务放入完成队列中。 线程池模式一般分为两种:HS/HA半同步/半异步模式、L/F领导者与跟随者模式。 线程池的伸缩性对性能有较大的影响。 * 创建太多线程,将会浪费一定的资源,有些线程未被充分使用。 * 銷毀太多執行緒,將導致之後浪費時間再次創建它們。 * 创建线程太慢,将会导致長時間的等待,性能變差。 * 銷毀執行緒太慢,导致其它執行緒资源饥饿。慢,将会导致長時間的等待,性能變差。 * 銷毀執行緒太慢,导致其它執行緒资源饥饿。 , في برمجة الحاسوب، يعد تجميع الخيوط (بالإنجليزية: thread pool)‏ أحد أنماط تصميم البرمجيات لتحقيق تزامن التشغيل في برنامج حاسوبي ما. , Un thread pool in programmazione indica un gestore software di thread utilizzato per ottimizzare e semplificare l'utilizzo dei thread all'interno di un programma.
rdfs:label Trådpool , تجميع الخيوط (أنماط تصميم البرمجيات) , Thread pool , 线程池
hide properties that link here 
http://dbpedia.org/resource/Thread_pool_pattern + , http://dbpedia.org/resource/Thread-pool + http://dbpedia.org/ontology/wikiPageRedirects
http://dbpedia.org/resource/CherryPy + , http://dbpedia.org/resource/System_call + , http://dbpedia.org/resource/Pool_%28computer_science%29 + , http://dbpedia.org/resource/Lock_convoy + , http://dbpedia.org/resource/Thread_pool_pattern + , http://dbpedia.org/resource/Iometer + , http://dbpedia.org/resource/Task_%28computing%29 + , http://dbpedia.org/resource/Fork%E2%80%93join_model + , http://dbpedia.org/resource/Work_stealing + , http://dbpedia.org/resource/Software_design_pattern + , http://dbpedia.org/resource/Features_new_to_Windows_7 + , http://dbpedia.org/resource/Green_thread + , http://dbpedia.org/resource/Command_pattern + , http://dbpedia.org/resource/Asynchronous_procedure_call + , http://dbpedia.org/resource/C%2B%2B11 + , http://dbpedia.org/resource/Thread-pool + , http://dbpedia.org/resource/Thread_pooling + http://dbpedia.org/ontology/wikiPageWikiLink
http://en.wikipedia.org/wiki/Thread_pool + http://xmlns.com/foaf/0.1/primaryTopic
http://dbpedia.org/resource/Thread_pool + owl:sameAs
 

 

Enter the name of the page to start semantic browsing from.