上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 65 下一页
摘要: 转载与:线程池之ThreadPool类与辅助线程 - <第二篇> - 逆心 - 博客园 (cnblogs.com) 一、CLR线程池 管理线程开销最好的方式: 尽量少的创建线程并且能将线程反复利用(线程池初始化时没有线程,有程序请求线程则创建线程); 最好不要销毁而是挂起线程达到避免性能损失(线程池 阅读全文
posted @ 2021-11-23 16:43 vba是最好的语言 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 目前项目存在页面展示大量图片,效率不高,考虑优化性能,改为ashx+异步下载的方式,废话不说直接贴code: using System; using System.Web; using System.IO; using System.Web.SessionState; using System.Th 阅读全文
posted @ 2021-11-23 16:39 vba是最好的语言 阅读(89) 评论(0) 推荐(0) 编辑
摘要: delegate void MyDelegate(); class Program { static void Main(string[] args) { MyDelegate myDelegate = new MyDelegate(Show); myDelegate.Invoke();//延迟3秒 阅读全文
posted @ 2021-11-23 16:14 vba是最好的语言 阅读(73) 评论(0) 推荐(0) 编辑
摘要: [System.Security.SecurityCritical] // auto-generated_required [MethodImplAttribute(MethodImplOptions.NoInlining)] // Methods containing StackCrawlMark 阅读全文
posted @ 2021-11-23 15:50 vba是最好的语言 阅读(198) 评论(0) 推荐(0) 编辑
摘要: /* ** Returns true if the thread is a threadpool thread. */ public extern bool IsThreadPoolThread { [System.Security.SecuritySafeCritical] // auto-gen 阅读全文
posted @ 2021-11-23 15:45 vba是最好的语言 阅读(45) 评论(0) 推荐(0) 编辑
摘要: public bool IsBackground { [System.Security.SecuritySafeCritical] // auto-generated get { return IsBackgroundNative(); } [System.Security.SecuritySafe 阅读全文
posted @ 2021-11-23 15:18 vba是最好的语言 阅读(32) 评论(0) 推荐(0) 编辑
摘要: [Obsolete("The ApartmentState property has been deprecated. Use GetApartmentState, SetApartmentState or TrySetApartmentState instead.", false)] public 阅读全文
posted @ 2021-11-23 15:17 vba是最好的语言 阅读(44) 评论(0) 推荐(0) 编辑
摘要: // As the culture can be customized object then we cannot hold any // reference to it before we check if it is safe because the app domain // owning t 阅读全文
posted @ 2021-11-23 15:12 vba是最好的语言 阅读(66) 评论(0) 推荐(0) 编辑
摘要: public static Context CurrentContext { [System.Security.SecurityCritical] // auto-generated_required get { return CurrentThread.GetCurrentContextInter 阅读全文
posted @ 2021-11-23 15:07 vba是最好的语言 阅读(50) 评论(0) 推荐(0) 编辑
摘要: public static Thread CurrentThread { [System.Security.SecuritySafeCritical] // auto-generated [ReliabilityContract(Consistency.WillNotCorruptState, Ce 阅读全文
posted @ 2021-11-22 14:27 vba是最好的语言 阅读(40) 评论(0) 推荐(0) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 65 下一页