Concurrency and parallelism of understanding

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https: //blog.csdn.net/comingpeople/article/details/80079022
a computer operating system (4th edition, Tang Zaiying), the subtitle 'parallel and concurrent' parent entitled 'concurrent', after learning I understand that is a subset of concurrent parallel, concurrent containing parallel meaning.

"Computer Operating System" is so defined and differentiate concurrency and parallelism:

Parallelism and concurrency are two concepts of both similarity and difference. Parallelism refers to two or more events occur at the same time. The concurrency refers to two or more events occur at the same time intervals. In a multiprogramming environment, concurrency refers to a period of time in a plurality of programs run simultaneously macroscopically, but in a single processor system, but each time there is only one program execution, it is only these programs microscopically sharing can be alternately performed.
...
If a plurality of processors in a computer system, these programs can execute concurrently it can be assigned to a plurality of processors, for parallel execution. "Computer Operating System" is so defined and differentiate concurrency and parallelism:

"Concurrent art" - [US] Buleixiesi

If a system supports two or more actions (Action) exist, then the system is a concurrent system. If a system supports two or more actions performed simultaneously, then the system is a parallel system. Concurrent Systems and Parallel system key difference between these two definitions is "presence" of the word.

Summarized it:

           1. The system is capable of executing a program under the multi-core cpu blessing is capable of parallel execution

           2.

               a concurrent: Has the ability to handle multiple tasks, not necessarily at the same time (not negate performed simultaneously)

               . b parallel: have the ability to handle multiple tasks, not intervals
----------------
Disclaimer: This article is the original article CSDN bloggers "comingpeople", and follow CC 4.0 BY -SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/comingpeople/article/details/80079022

Guess you like

Origin www.cnblogs.com/zqlym/p/11442691.html