Open zzz6519003 opened 5 years ago
http://www.gotw.ca/publications/concurrency-ddj.htm Myths and Realities: 2 x 3GHz < 6 GHz Concurrency is the next major revolution in how we write software
Applications will increasingly need to be concurrent if they want to fully exploit continuing exponential CPU throughput gains
Efficiency and performance optimization will get more, not less, important
The biggest sea change in software development since the OO revolution is knocking at the door, and its name is Concurrency.
This article appeared in Dr. Dobb's Journal, 30(3), March 2005. A much briefer version under the title "The Concurrency Revolution" appeared in C/C++ Users Journal, 23(2), February 2005.
一个经典示例是并归排序,它将其输入分成两部分,并递归地对各部分排序。 这两部分可以独立排序,自然带来了并行的可能。 下面是代码: