Concurrency and parallel 1_7_2_01_ .avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/2020031808041246.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
1_7_2_02_ process concept .avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318081742927.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
1_7_2_03_ thread concept .avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318083239413.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
1_7_2_04_ thread scheduling .avi
Wherein the scheduling priority can be modified
windows modified as follows:
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318191914676.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
1_7_2_05_ main thread .avi
1_7_2_06_ create multi-threaded programs _ the first way to create .avi
1_7_2_07_ multi-threading principles _ randomness print results .avi
1_7_2_08_ principle of multi-threaded multi-threaded memory _ graphic .avi
run method separate thread of execution will not open up new stack space, create a new thread, but a bit run separate execution method inside
1_7_2_09_Thread class _ common method to obtain thread name .avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/2020031822550546.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318225447114.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318225548611.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
Common method 1_7_2_10_Thread class _ set thread name .avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318230807639.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200318230633364.png)
Common method 1_7_2_11_Thread class _sleep.avi
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200319075819498.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
1_7_2_12_ create multi-threaded programs _ The second way to achieve .avi
Interface implemented by, there is only one run method, and rewrite it to achieve
![Here Insert Picture Description](https://img-blog.csdnimg.cn/20200319081212149.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0ODEyNzY=,size_16,color_FFFFFF,t_70)
The difference 1_7_2_13_Thread and Runnable .avi
We recommend to make use of the interface Runnable way to achieve multi-threaded
1_7_2_14_ anonymous inner class manner create .avi thread