Java-related content

Source: Internet
Author: User

The previous week, Mr. Yao focused on multithreading, single-threaded. I have a certain understanding of these.

Multi-threaded: Multi-threaded operation is a process has a number of relatively independent and implementation of a specific task to compete with the CPU, in the multi-processor condition macro is concurrency, is actually time-sharing execution, but the execution of a short slice. Using multithreading is the same time that an application can use different parts of the chip. Although single-threaded chips can handle thousands of instructions per second, only one instruction can be manipulated at any one time. and multithreading technology can make the chip multi-threaded processing, so that the performance of the chip is improved. A process can have one or more threads that look like an audio playback software, while the lyrics are displayed, the audio column is displayed, and the song is being played on one side.

Single threaded: The development of a synchronous application is easier, but it is often less efficient than a multithreaded application because it requires that a new task be started after the previous task is completed. For example, our way of thinking is a single thread, we can not use the brain to think about a mathematical problem while solving a composition.

So through my synthesis: single-threaded, but take a long time. Multithreading can effectively make use of time and increase work efficiency.

Java-related content

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.