C # Concurrent Programming Classic example [Mei]stephen Cleary Study notes

Source: Internet
Author: User

1. Concurrency: Do multiple things at the same time.

2. Multithreading: A form of concurrency that takes multiple threads to execute a program. Multithreading is a form of concurrency, but not the only form.

3. The thread pool holds the queue for the task, which can be adjusted to suit its needs. Correspondingly, the thread pool produces another important concurrency form: concurrent processing. Concurrent processing: A large number of tasks that are executing are split into small chunks that are allocated to multiple concurrently running threads.

4. Asynchronous programming: A form of concurrency that uses the future mode or callback (callback) mechanism to avoid generating unnecessary threads.

5. The core idea of asynchronous programming is the asynchronous operation: the initiated operation will be completed after a certain period of time.

6. Responsive programming: A declarative programming pattern in which the program responds to events.

7. There are two major benefits of asynchronous programming: The first is for GUI programs for end users: Asynchronous programming improves responsiveness. The second benefit is for server-side applications: Asynchronous programming enables extensibility.

8. Modern Asynchrony. NET program uses two keywords: async and await.

9. There are two different forms of parallelism: Data parallelism and task parallelism (parallelism).

10. The basic constituent unit of the data flow grid is the fast data flow (Dataflow block)

C # Concurrent Programming Classic example [Mei]stephen Cleary Study notes

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.