zoukankan      html  css  js  c++  java
  • [Operating System]Thread Pool

    What is Thread Pool:
    a software design pattern for achieving concurrency of execution in a computer program

    It is also called:
    a replicated workers/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
    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 parallel processors, cores, memory, and network sockets.
    A common method of scheduling tasks for thread execution is a synchronized queue, known as a task queue. The threads in the pool remove waiting tasks from the queue, and place them into a completed task queue after completion of execution.

  • 相关阅读:
    Qt 智能指针学习(7种指针)
    Springmvc+Spring+Hibernate搭建方法
    DDD分层架构之领域实体(基础篇)
    LeetCode
    RabbitMQ
    Cocos2d-x环境搭建
    使用快捷键提升C#开发效率
    C# 6.0
    avalonjs 1.3.7发布
    VS2015安装
  • 原文地址:https://www.cnblogs.com/HuisClos/p/8697977.html
Copyright © 2011-2022 走看看