Threads, like processes, are divided into five stages: create, ready, run, block and terminate.
Multiprocess means that the operating system can run multiple tasks (programs) at the same time.
Multithreading means that there are multiple continuous streams executing in the same program.
There are two ways to realize multithreading in java, one is to inherit Thread class, and the other is to realize Runable interface. (In fact, there should be three kinds accurately, and the other is to implement callable interfaces, which are used in combination with the future and thread pools.
Youth is the surging pulse of the times; The times are also prosperous because of the efforts of young people. The younger generation exudes di