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