The difference between concurrency and parallelism

Source: Internet
Author: User

Note: Reprint source http://www.cnblogs.com/taven/archive/2012/06/07/2540561.html

Concurrent English is Concurrency, parallel English is Parallel, concurrency and parallelism are two different concepts.

Parallelism means that at the same time, multiple instructions are executed simultaneously on multiple processors.

Concurrency means that at the same time, only one instruction can be executed, but multiple process instructions are executed quickly, making it possible to have multiple processes concurrently executing at the macro level.

Someone has done a metaphor, to complete the task of eating three steamed bread, a person can take a bite of this steamed bread, the steamed bread bite, so alternately, finally eat three steamed bread, this isconcurrent, because in three steamed bread on the same time the eating behavior occurred.

Three steamed bread if divided to three people to eat, such a task to complete the form called parallel.

The difference between concurrency and parallelism

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.