Thinking, Why use multithreading?

  • Using multiple threads can maximize the use of computer CPU resources, namely multi-core CPU can be implemented in the true sense of parallel execution.
  • Using multiple threads can improve program performance. In one application process, there will be multiple simultaneous asynchronous task execution, if a task is blocked, it will not cause other tasks depend on this task is blocked. By creating different threads for different tasks to deal with, we can improve the real-time processing program.

Guess you like

Origin www.cnblogs.com/chalice/p/11266585.html