zoukankan      html  css  js  c++  java
  • 线程池(ThreadPool介绍)

    ThreadPool 类

          目地:提供執行緒的集區,可用來公佈工作項目,處理非同步的 (Asynchronous) I/O,代表其他執行緒等候,和處理計時器。

    命名空间:System.Threading

         成员:

               ThreadPool.GetMaxThreads(out int workerThreads,out int completionPortThreads)方法: 取得线程池之设定最大工作线程数与I/O线程数,可以使用 GetAvailableThreads 判定线程池中实际的线程数.
               ThreadPool.GetMinThreads(out int workerThreads,out int completionPortThreads)方法: 取得线程池之设定最小工作线程数与I/O线程数.

               ThreadPool.SetMaxThreads(int workerThreads,int completionPortThreads) 方法:设置线程池最大工作线程数与I/O线程数

               ThreadPool.SetMinThreads(int workerThreads,int completionPortThreads) 方法:设置线程池最小工作线程数与I/O线程数

               ThreadPool.GetAvailableThreads(out int workerThreads,out int completionPortThreads) 方法:取得工作线程与I/O线程的实际值与最大值之间的差异

  • 相关阅读:
    Sql Server 跨服务器连接
    ASCII码与16进制的互相转换(表)
    c#多线程 Invoke方法的使用
    登陆时验证码的制作(asp.net)
    jQ&js给label
    IT行业的一些专业术语
    html div 加边框样式
    分布式技术 memcached
    分布式技术 webservice
    MVC 绑定 下拉框数据
  • 原文地址:https://www.cnblogs.com/ybhcolin/p/1836228.html
Copyright © 2011-2022 走看看