[Csapp] Concurrency and parallelism

Source: Internet
Author: User

It's been a long time learning computer, and the concept of concurrency and parallelism has not been thoroughly understood. After the examination, thought oneself understand, however until looked at the Csapp only really understand these two concepts.

concurrency (concurrency)

Flow x and stream y concurrent runs mean that the flow x starts before the end of the flow y, or the stream y starts before the end of the flow x begins.

, process A is concurrent with process B, process A is concurrent with process C, and process B is not concurrent with process C.

Parallel (parallel)

Parallelism is a true subset of concurrency.
Concurrency may occur on a single processor or on a multiprocessor. Flow A and stream B are parallel, then stream A and stream B run concurrently on different processors.



From for notes (Wiz)

[Csapp] 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.