在网上看到关于多线程下载的,说是WebRequest中不好的地方是GetResponse方法会自动阻止其他线程的访问,也就是总是只有一个线程在下载,其他都在等待GetResponse的响应。这个说法对不对?还是以前有这个问题,现在修正了?来源:http://www.codeproject.com/KB/IP/Crawler.aspx
原文:“the WebRequest class function GetResponse locks the access to all other processes, the WebRequest tells the retrieved response as closed, as in the last line in the previous code. So I noticed that always only one thread is downloading while others are waiting to GetResponse.”
原文:“the WebRequest class function GetResponse locks the access to all other processes, the WebRequest tells the retrieved response as closed, as in the last line in the previous code. So I noticed that always only one thread is downloading while others are waiting to GetResponse.”
解决方案 »
- 请教关于枚举值的问题
- 请教如梦,一个关联表数据在DataGridView的处理,谢谢!
- 请大家帮忙提出一个最好的解决方案
- c#如何显示窗体里隐藏的按钮控件?????
- 短信收发内容如何存到数据表?serialPort1_DataReceived具体如何实现?
- structs里面validator验证框架的运行机制谁了解啊~~
- 这个在C#如何写?
- 为什么打开代码管理器,出现提供的程序是object cycle,而我装的是Vss,大师请快告诉我
- 急:一个邮件地址的链接问题
- 各位大虾,请问如何让windows中的控件随windows窗口增长而变化
- C#读取数据库Datetime字段
- 大侠请进,票据打印机实现
开多个线程,每个线程都去调用下载方法(webrequest/webresponse组合处理),然后线程返回事件给调用线程
http://www.easygeteasy.com