惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - H.Wong

Use Windows Live Writer Tool to post a Sina Blog. Music Radio Online 1.0.0.0 release-perview 继续更新 Music Radio Beta-Perview 1.0.0.0.(做了一个听音乐电台的东东.:>) 利用java的开源组件JExcel创建无差异的Excel文件,并且导入到.net项目中去. 利用POI创建OpenOffice中的Excel文件 java:利用jexcelapi 创建Excel C#和硬件驱动交互编程<二> --东进语音卡项目例子. C#和硬件驱动交互编程<一> --东进语音卡项目例子. javascript 无限级树形菜单. Nunit--the TDD Great Tools. [导入]Session做的购物车 [导入]C#面试的一些问题. [导入]适用于web2.0的js对话框 - H.Wong - 博客园 [导入]meta用法 [导入]前段時間做了一個168的sp接口,share代碼,用socket實現d. [导入]js 监视键盘操作 [导入]ServerVariables集合 [导入]存储过程-分隔符号-多条件查询 [导入]Sql Convert用法 [导入]WEB2.0中AJAX应用的简单探讨
NET 4 Feature Focus: Parallel Programming
H.Wong · 2008-10-23 · via 博客园 - H.Wong

The Common Language Runtime has always had basic support for parallel programming in the form of locks, threads, and thread pools. With the increasing emphasis on multi-core CPUs, there has been a renewed interest in high-level parallel programming constructs.

Many people are betting on functional programming, with its emphasis on immutable objects and their inherently thread-safe properties. Haskell and the OCaml based language F# fall in this category. Others favor languages like Erlang, which are based on message passing and lightweight processes. In addition to supporting F#, Microsoft is trying several different approaches in its efforts to find the right abstraction.

The first one announced was Parallel LINQ, also known as PLINQ. Like SQL, parallelization is handled by the language itself without effort by the developer. Simply tack on an AsParallel to the query and everything else just works. Well usually, but just like SQL there are times with additional options need to be specified.

Next up is Structured Parallelism, a technique reminiscent of OpenMP. But unlike the compiler directives used in OpenMP, Microsoft's solution is based on anonymous delegates. Superficially the code changes are minor; rather than having a block of code following the "for" line, the code is passed as an argument to the "Parallel.For" function.

For code that cannot be easily expressed as queries or iterative loops, there is the Task Parallel Library. At first glance this is just another thread pool, but it supports parent-child relationships between tasks.

For those looking for finer control over their application, there is the Coordination Data Structures. These offer thread-safe collections, futures, and improved synchronization objects.