Concurrency and parallelism

Source: Internet
Author: User
• Concurrency:    when there are multiple threads in action, if the system has only one CPU, it is impossible to actually make more than one thread at the same time, he can only divide the CPU run time into several time periods, and then assign the time period to each thread execution, when the thread code of a time period runs, Other threads are in a suspended state, which is called concurrency. • Parallel:    When one CPU executes a thread, another CPU can execute another thread, and two threads do not preempt CPU resources, which can be done concurrently, which is called parallelism.    concurrent execution of a program is a state in which two or more two programs are processed in the computer system and are not finished.

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.