开发者

new .net 4 multi-threading technique?

开发者 https://www.devze.com 2023-01-24 18:18 出处:网络
i sat in on part of a Microsoft PDC and heard the presenter talk about the cool new way that .net 4 and VS2010 allow for multi-threading. the code is smaller and cleaner and simpler,the logic is easie

i sat in on part of a Microsoft PDC and heard the presenter talk about the cool new way that .net 4 and VS2010 allow for multi-threading. the code is smaller and cleaner and simpler, the logic is easier and it performs better with more control with regards to thread waiting, aborting and the such...

i have not yet used multi-threading in my apps and was looking to make a sample application that would lend itself to this and came up with a screen scraper that would take a a URL and extract all the links/ urls on the page and follow them recursively all the while storing feedback of the url that is being acted o开发者_如何学Gon to a DB table or in memory list object.

can anyone post a sample code spinet or url that explains the new features of multi threading using asp.net with C# please.

(any hints on how to go about the actual screen scraping would be nice also)


Really you should check out Reed's site. He has a series of blogs explaining the topic.

Eric Lippert has examples too as he talks about the differences between C# 4 and C# 5 in this regard here.

0

精彩评论

暂无评论...
验证码 换一张
取 消