读书笔'Real-world Concurrency'论文笔
发布时间
阅读量:
阅读量
最近读到一篇ACM Queue收录的文章—Real-World Concurrency,文中主要讨论了编写并发程序的主要原则,精读之后收获颇大,故作为笔记,记录于此。
1. Why Concurrent
并发执行以3种方式提升系统性能:
1) reduce latency
原文:make a unit of work execute faster
详解:对于一些任务(如科学计算或海量数据处理),若其容易被分割成更小任务单元(子任务间无共享资源或状态依赖),并发执行的优势极其明显,MapReduce就是这种并发情况的典型解决框架。
2) hide lantency
原文:allow the system to continue doing work during a long-latency operation
详解:IO密集型系统尤其明显。另外,并发执行耗时操作并非隐藏系统延时的唯一途径,异步IO接口或事件池(select/poll/epoll)的合理使用也能达到相同的效果。
3) increase throughout
原文:**make the system able to perform mor
全部评论 (0)
还没有任何评论哟~
