首页 > 其他 > 详细

并行parallel和并发concurrent的区别

时间:2016-08-25 20:22:45      阅读:289      评论:0      收藏:0      [点我收藏+]

http://stackoverflow.com/questions/1050222/concurrency-vs-parallelism-what-is-the-difference

Concurrency is when two or more tasks can start, run, and complete in overlapping time periods. It doesn‘t necessarily mean they‘ll ever both be running at the same instant. Eg. multitasking on a single-core machine.

 

Parallelism is when tasks literally run at the same time, eg. on a multicore processor.

Quoting Sun‘s Multithreaded Programming Guide:

  • Concurrency: A condition that exists when at least two threads are making progress. A more generalized form of parallelism that can include time-slicing as a form of virtual parallelism.

  • Parallelism: A condition that arises when at least two threads are executing simultaneously.

 

参考:

http://www.cnblogs.com/ty408/p/5801148.html

 

并行parallel和并发concurrent的区别

原文:http://www.cnblogs.com/chucklu/p/5808080.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!