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.

  • 相关阅读:
    Gridview全选
    Gridview中绑定DropDownList
    图片流Base64编码 转图片
    jQuery 效果
    纯虚函数与抽象类
    c++的内存分配
    sizeof数据对齐问题
    C++中类所占的存储空间
    成员函数实现在类定义中与在类定义外的区别
    C++成员函数的存储方式
  • 原文地址:https://www.cnblogs.com/HuisClos/p/8697977.html
Copyright © 2011-2022 走看看