My multithreading-multithreading must know n common sense

Source: Internet
Author: User
What is the basic knowledge of multithreading?

One line: The program body being executed has only one

Multithreaded instances: GUI applications (find and perform operations in parallel), time-consuming IO operations, multiple clients one server,

What is sequential, parallel, concurrency. What is the concurrency sequence and what is concurrency parallelism?

When is the program terminated?

How is the sleeping thread awakened?

What is a thread's mutex? What is the locking mechanism of a thread?

How does the current thread know if he or she acquires a lock on an object?

What is a wait queue?

What is a wait-for-wake mechanism?

How is the thread state migrated?

What are the conditions used by the wait method?



What are the evaluation criteria for multithreading?

What is thread compatibility? How do I safely use a non-thread-safe class?

What is the survivability of a thread?

How can I improve the reusability of classes?

What are the multi-threaded performance metrics? What is throughput? How to improve responsiveness? What is capacity? The mutual constraints of performance indicators?

The number of threads becomes twice times, so does the throughput become twice times?


My multithreading-multithreading must know n common sense

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.