365key.com
发现·保存·分享@天天网摘

Q版365key  设为首页 加为收藏 帮助

 首页  网址  添加  我的网摘  我的订阅  最新网摘  收录榜  点击榜  同好  配置  工具箱  标签  兴趣小组 
  IT168 |  华军下载 |  猫扑 |  VeryCD |  CSDN技术 |  DoNews |  9Flash |  中金 |  游侠 |  股票天下 |  游戏公会 |  电子工程 |  白银时代 |  和365Key合作

jiangsheng的网摘列表 RSS格式输出  365Key邮件订阅,每天可以定期收到邮件通知  使用 POTU 订阅
搜索词: 时间:
分类:     排序:
 
刷新列表 共1页、2项网摘
Multithreading: Terminating Threads点击:32
 分类:Thread 时间:2005-1-23 1:53:13 jiangsheng收录 复制到我的网摘
Two normal situations cause a thread to terminate: The controlling function exits or the thread is not allowed to run to completion. If a word processor used a thread for background printing, the controlling function would terminate normally if printing completed successfully. Should the user wish to cancel the printing, however, the background printing thread would have to be terminated prematurely. This article explains both how to implement each situation and how to get the exit code of a thread after it terminates.

http://msdn.microsoft.com/library/en-us/vccore/html/_core_Multithreading.3a_.Terminating_Threads.asp
为基于 MFC 的 ISAPI Extensions 创建线程缓冲池点击:22
 分类:Thread 时间:2005-1-11 16:51:26 jiangsheng收录 复制到我的网摘
Afxpool.exe 是自解压可执行文件,其中包含演示为基于 MFC 的 ISAPI 扩展创建线程缓冲池的一个 Microsoft Visual C++ 6.0 工程所需的文件。

本文解释在 ISAPI 扩展内创建工作者线程缓冲池的步骤。通常,当 ISAPI 扩展需要大量处理时间来完成某个请求时,需要创建一个单独的控制线程来处理该过程。有关其它信息,请参见 Microsoft Knowledge Base 中的下列文章:
185518 HOWTO:使用 MFC ISAPI Extension 实现工作者线程
然而,为每个新请求创建一个新线程控制会对服务器的性能产生很大的影响。因此,最好是创建一个可以“回收”线程的工作者线程缓冲池。这个方法的作用是在处理新的请求开销中不再包含创建新线程的开销。

ISAPI 扩展在第一次初始化时需要付出创建线程的开销,但对于每个请求,它只从缓冲池中请求可用的工作者线程。
http://support.microsoft.com/kb/q197728/
页码: [1 共1页、2项网摘

使用帮助 |  如何保存网摘 |  给365Key提建议 |  媒体报道 |  站长推广须知
Copyright (C) 2004 365Key.com--天天网摘 All Rights Reserved