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

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos 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.