[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
《深入挖掘Windows脚本技术》是zzzevazzz写的

原文地址http://www.xfocus.net/articles/200411/752.html

作者博客http://hi.baidu.com/zzzevazzz/item/f694350395a9608a02ce1ba9

TOP

简单看了一下代码,姑且不论异步请求是否真的是多线程,假设它是多线程好了,

问题在于楼主用的是同步请求,里面的“线程”是按照顺序执行的,根本没有多线程的效果。

TOP

回复  czjt1234


    我贴的那个链接确实是多线程啊
    多进程方案貌似不在本贴讨论范围内
CrLf 发表于 2013-4-30 13:03


如何证明是多线程?

TOP

TOP

隐约记得ActiveX控件都是单线程模型?
powerbat 发表于 2013-4-30 19:29


COM有4种线程模型

ThreadingModel="Both" indicates that instances of the class can execute in either an MTA or an STA.

ThreadingModel="Free" indicates that instances of the class can execute only in an MTA.

ThreadingModel="Apartment" indicates that instances of the class can execute only in an STA.

ThreadingModel="Absent" implies that instances of the class can run only in the main STA or the first STA initialized in the process.

TOP

返回列表