2016-08-16 MoreFreeze
I spend some day to learn a powerful tool that is called parallel. It can help you split several tasks into multiple groups to run them parallel. Get into the car! 继续阅读 »
2014-02-01 Kun Ren
For R beginners, for loop is an elementary flow-control device that simplifies repeatedly calling functions with different parameters. A possible block of code is like this: 继续阅读 »
2015-10-28 白若水
背景 在如今的大数据时代,多核 cpu 的发展,如何利用多核,提升计算能力,成为程序开发中一个很重要的话题。随之衍生了专为多核而生的语言,比如说 Golang 和 Erlang 。曾浮光掠影的看过 Golang 的多核编程,关于它的取得 cpu 核数,背后的概念而感叹。而 Csharp 作为一个一直走在时代前沿的语言,在 .NET 4.0 后引入了 System.Threading.Tasks 提供了对多核的支持。 继续阅读 »
2015-11-30 Alex Sun
8. series/parallel/parallelLimit async.eachOfSeries(arr, iterator, callback)是对arr中的每一项,调用iterator函数,最终调用callback。也就是说,所有的异步任务都是同一种类型,只是传入的参数不同。例如对于一个目录下的所有文件,统计每个文件的size。 继续阅读 »